-
Notifications
You must be signed in to change notification settings - Fork 0
/
cache.html
121 lines (118 loc) · 3.86 KB
/
cache.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<html manifest="laz305.manifest"><head>
<title>LAZ305 LilyGo-S3 Auto PSFree</title>
<link rel="stylesheet prefetch" href="Style2.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","19.jpg","20.jpg","21.jpg","22.jpg","23.jpg","24.jpg","25.jpg","26.jpg","27.jpg","28.jpg","29.jpg","30.jpg","31.jpg","32.jpg","33.jpg","34.jpg","35.jpg","36.jpg","37.jpg","38.jpg","39.jpg","40.jpg","41.jpg","42.jpg","43.jpg","44.jpg","45.jpg","46.jpg","47.jpg","48.jpg","49.jpg","50.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>