Commit 93ac1263 by libai

测试

parent 3e28e05a
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/index.css?v=2022112313"> <link rel="stylesheet" href="css/index.css?v=2022112313">
<link rel="stylesheet" href="css/login.css?v=2022112313"> <link rel="stylesheet" href="css/login.css?v=2022112313">
<script src="index.js?v=2022112326" defer=""></script>
<link rel="manifest" href="manifest.webmanifest?v=2022112308" /> <link rel="manifest" href="manifest.webmanifest?v=2022112308" />
<script src="https://accounts.google.com/gsi/client" async defer></script> <script src="https://accounts.google.com/gsi/client" async defer></script>
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
</style> </style>
</head> </head>
<body style="background: #d9d9d9"> <body style="background: #d9d9d9">
<!-- <button class="add-button"> <button class="add-button">
<div class="add-button-close"></div> <div class="add-button-close"></div>
</button> --> </button>
<div class="bottom-nav"> <div class="bottom-nav">
<div><div class="bottom-nav-img1 bottom-nav-img1-click"></div></div> <div><div class="bottom-nav-img1 bottom-nav-img1-click"></div></div>
<div><div class="bottom-nav-img2"></div></div> <div><div class="bottom-nav-img2"></div></div>
...@@ -398,7 +398,7 @@ ...@@ -398,7 +398,7 @@
<script src="layer-v3.1.0/layer/layer.js"></script> <script src="layer-v3.1.0/layer/layer.js"></script>
<!-- <script src="lib/fingerprint2.js"></script> --> <!-- <script src="lib/fingerprint2.js"></script> -->
<script src="lib/login.js?v=2022111801"></script> <script src="lib/login.js?v=2022111801"></script>
<script src="index.js?v=2022112326" defer=""></script>
<!-- <script src="index.js" defer></script> --> <!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> --> <!-- <link rel="manifest" href="manifest.webmanifest" /> -->
......
...@@ -15,29 +15,29 @@ const addBtn = document.querySelector('.add-button'); ...@@ -15,29 +15,29 @@ const addBtn = document.querySelector('.add-button');
addBtn.style.display = 'none'; addBtn.style.display = 'none';
window.addEventListener('beforeinstallprompt', (e) => { window.addEventListener('beforeinstallprompt', (e) => {
// setTimeout(function() { setTimeout(function() {
// // Prevent Chrome 67 and earlier from automatically showing the prompt // Prevent Chrome 67 and earlier from automatically showing the prompt
// e.preventDefault(); e.preventDefault();
// // Stash the event so it can be triggered later. // Stash the event so it can be triggered later.
// deferredPrompt = e; deferredPrompt = e;
// // Update UI to notify the user they can add to home screen // Update UI to notify the user they can add to home screen
// addBtn.style.display = 'block'; addBtn.style.display = 'block';
// addBtn.addEventListener('click', () => { addBtn.addEventListener('click', () => {
// // hide our user interface that shows our A2HS button // hide our user interface that shows our A2HS button
// addBtn.style.display = 'none'; addBtn.style.display = 'none';
// // Show the prompt // Show the prompt
// deferredPrompt.prompt(); deferredPrompt.prompt();
// // Wait for the user to respond to the prompt // Wait for the user to respond to the prompt
// deferredPrompt.userChoice.then((choiceResult) => { deferredPrompt.userChoice.then((choiceResult) => {
// if (choiceResult.outcome === 'accepted') { if (choiceResult.outcome === 'accepted') {
// console.log('User accepted the A2HS prompt'); console.log('User accepted the A2HS prompt');
// } else { } else {
// console.log('User dismissed the A2HS prompt'); console.log('User dismissed the A2HS prompt');
// } }
// deferredPrompt = null; deferredPrompt = null;
// }); });
// }); });
// }, 5000); }, 5000);
}); });
\ No newline at end of file
{ {
"background_color": "purple", "background_color": "#E9408D",
"description": "my footseen", "description": "my footseen",
"display": "standalone", "display": "standalone",
"icons": [ "icons": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment