-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix back button
- Loading branch information
Showing
48 changed files
with
644 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<html manifest="laz305.manifest"><head> | ||
<title>LAZ305 ESP32-S2 Auto PSfree</title> | ||
<link rel="stylesheet prefetch" href="Style.css"> | ||
<style> | ||
html,html, body { | ||
//background-image: url('img.jpg'); | ||
background-size: 100%; | ||
background-repeat: no-repeat; | ||
//background-color: #24272b; | ||
color: white; | ||
text-align: center; | ||
margin: 0px; | ||
overflow: hidden; | ||
} | ||
.themes { | ||
width:98%; | ||
margin:0 auto; | ||
margin-left:2%; | ||
margin-top:2%; | ||
} | ||
.theme { | ||
background:rgba(0,0,0,0.75); | ||
width:14.1%; | ||
text-align:center; | ||
display:inline-block; | ||
margin-right:2.5%; | ||
margin-bottom:2.5%; | ||
} | ||
.theme img { | ||
width:100%; | ||
} | ||
.theme span { | ||
color:white; | ||
display:block; | ||
padding:10px; | ||
} | ||
|
||
#myProgress{ | ||
border: 5px solid #FFFFFF; | ||
border-radius: 5px; | ||
background-color: #ddd; | ||
height: 45px; | ||
position: absolute; | ||
top:-130; | ||
bottom: 0; | ||
left: 150; | ||
right: 150; | ||
margin: auto; | ||
} | ||
|
||
#myBar{ | ||
width: 0%; | ||
height: 40px; | ||
background-color: #1b1b2e/*#201e45*/; | ||
text-align: center; | ||
line-height: 30px; | ||
color: white; | ||
font-size: 35px; | ||
padding-top: 5px; | ||
} | ||
</style> | ||
<script>history.replaceState(null,null,'index.html');</script> | ||
</head> | ||
|
||
<body > | ||
<script> | ||
if(window.applicationCache.status==2){localStorage.is755BCached=true;} | ||
window.applicationCache.ondownloading=function(){document.getElementById("progress").innerHTML="Page Caching Started!!";localStorage.is755BCached=false;}; | ||
window.applicationCache.onprogress=function(a){document.getElementById("myBar").style.width=(Math.round(100*(a.loaded/a.total)))+"%";document.getElementById("myBar").innerHTML=(Math.round(100*(a.loaded/a.total)))+"%";}; | ||
window.applicationCache.oncached=function(){document.getElementById("progress").innerHTML="Page Cached Successfully!!";localStorage.is755BCached=true;setTimeout(function(){window.location.reload("myBar"); }, 1500);}; | ||
window.applicationCache.onnoupdate=function(){window.location.replace("index.html");}; | ||
window.applicationCache.onerror=function(){window.location.replace("index.html");}; | ||
</script> | ||
<script> | ||
var width = 0; | ||
function frame1() { | ||
var elem = document.getElementById("myBar"); | ||
var i=0; | ||
var id = setInterval(fra, 10); | ||
function fra(){ | ||
if(i<10 && width<100){ | ||
width++; | ||
elem.style.width = width + "%"; | ||
elem.innerHTML = width + "%"; | ||
} i++; | ||
} | ||
} | ||
</script> | ||
<h1 id="progress" class="titlehead">Loading.. Please Wait !!</h1><hr><br> | ||
<h1 id="myProgress"> | ||
<div id="myBar">0%</div> | ||
</h1> | ||
<script type="text/javascript"> | ||
if(localStorage.getItem("theme")==null){ | ||
localStorage.setItem("theme","1.jpg") | ||
} | ||
document.body.style.background = "url('"+localStorage.getItem("theme")+"')" | ||
document.body.style.backgroundSize = "cover" | ||
var imgs = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg","8.jpg","9.jpg","10.jpg","11.jpg","12.jpg","13.jpg","14.jpg","15.jpg","16.jpg","17.jpg","18.jpg"]; | ||
render() | ||
function render(){ | ||
document.querySelector(".themes").innerHTML="" | ||
for(let i=0;i<imgs.length;i++){ | ||
var selectText = "Select" | ||
var textColor = "white" | ||
if(localStorage.theme==imgs[i]){ | ||
selectText="Selected" | ||
textColor="green" | ||
} | ||
document.querySelector(".themes").innerHTML+='<div class="theme" ><img src="'+imgs[i]+'" ><span style="color:'+textColor+';" onclick="set('+i+')">'+selectText+'</span></div>'; | ||
} | ||
} | ||
function set(i){ | ||
localStorage.setItem("theme",imgs[i]) | ||
render() | ||
document.body.style.background = "url('"+imgs[i]+"')" | ||
document.body.style.backgroundSize = "cover" | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CACHE MANIFEST | ||
|
||
CACHE: | ||
index.html | ||
|
||
SETTINGS: | ||
prefer-online: | ||
|
||
|
||
# Date: 2022-02-13T12:08:00Z: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html manifest="cache.manifest"> | ||
<body> | ||
<script> | ||
window.applicationCache.oncached=function(){window.location.reload();}; | ||
window.applicationCache.onnoupdate=function(){window.location.replace('http://esp32s2-laz305/cache.html');}; | ||
window.applicationCache.onerror=function(){window.location.replace('http://esp32s2-laz305/cache.html');}; | ||
</script> | ||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.