-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
175 lines (158 loc) · 5.82 KB
/
index.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#000000" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<title>Device Info</title>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script defer="defer" src="/static/js/main.d2d72bf3.js"></script>
<link href="/static/css/main.658b38dc.css" rel="stylesheet" />
<meta itemprop="name" content="T Rohan Kini - Device Info - https://www.rohantkini.in/">
<meta itemprop="description" content="T Rohan Kini - Device Info - https://www.rohantkini.in/" />
<link rel="stylesheet" href="static/css/style.css" />
</head>
<body class="rk1">
<style>
.transparent-list {
background-color: rgba(255, 255, 255, 0.1); /* 10% white background */
backdrop-filter: blur(5px); /* Optional: adds blur effect to background */
border-radius: 8px; /* Rounded corners */
padding: 15px;
color: white; /* White text for better visibility on a transparent background */
}
.transparent-list li {
margin-bottom: 10px;
}
</style>
<div id="root"></div>
<div class="container">
<main>
<div class="details">
<br />
<br />
<h2>Your <p class="rk">Device Info</p></h2>
<div id="device"></div>
<br>
<br>
<!-- rk9 -->
<div id="battery">
<center><div id="cell" height="100%"></div></center>
<div id="indicator"><br><br><img src="charge.png"></div>
</div>
<!-- rk10 -->
<br>
<br>
<h2>Your <p class="rk">IP & Location</p></h2>
<div id="iplocation"></div>
<div class="container">
<div class="loader-widget">
<div class="loader-content">
<div class="content"></div>
</div>
<div class="loader" style="display: none"></div>
<button class="btn btn-primary" type="button">Check Internet Speed</button>
</div>
<br><br>
</div>
</div>
</main>
<footer></footer>
</div>
<!-- rk1 -->
<script src="https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.2/src/ua-parser.min.js"></script>
<script type="module" src="main1.js"></script>
<script type="module" src="main2.js"></script>
<script>
document.querySelector("button").addEventListener("click", (e) => {
var imageLink =
"https://upload.wikimedia.org/wikipedia/commons/3/3e/Tokyo_Sky_Tree_2012.JPG",
downloadSize = 8185374,
time_start,
time_end,
downloadSrc = new Image();
time_start = new Date().getTime();
var cacheImg = "?nn=" + time_start;
downloadSrc.src = imageLink + cacheImg;
downloadSrc.onload = function () {
time_end = new Date().getTime();
var timeDuration = (time_end - time_start) / 1000;
(loadedBytes = downloadSize * 8),
(totalSpeed = (loadedBytes / timeDuration / 1024 / 1024).toFixed(
2
));
let i = 0,
speedOut;
document.querySelector(".loader").style.display = "";
document.querySelector(".btn").style.display = "none";
const animate = () => {
if (i < totalSpeed) {
document.querySelector(".content").innerHTML =
"<h3>Network speed:" + " " + i.toFixed(2) + "<b>Mbps</b></h3>";
setTimeout(animate, 60);
i += 1.02;
} else {
document.querySelector(".loader").style.display = "Loading";
document.querySelector(".content").innerHTML =
"<h3>Network speed:" + " " + totalSpeed + "<b>Mbps</b></h3>";
document.querySelector(".btn").style.display = "";
}
};
animate();
document.querySelector(".content").innerHTML =
"<h3>Network speed:" + " " + totalSpeed + "<b>Mbps</b></h3>";
document.querySelector(".loader-content").classList.add("result");
e.target.innerText = "Check Again";
};
});
</script>
<!-- rk7 -->
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {
m[i] =
m[i] ||
function () {
(m[i].a = m[i].a || []).push(arguments);
};
m[i].l = 1 * new Date();
(k = e.createElement(t)),
(a = e.getElementsByTagName(t)[0]),
(k.async = 1),
(k.src = r),
a.parentNode.insertBefore(k, a);
})(
window,
document,
"script",
"https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js",
"ym"
);
ym(87657634, "init", {
clickmap: false,
trackLinks: true,
accurateTrackBounce: false,
trackHash: true,
});
</script>
<noscript
><div>
<img
src="https://mc.yandex.ru/watch/87657634"
style="position: absolute; left: -9999px"
alt=""
/></div
></noscript>
<footer class="bg-dark text-center text-white">
<!-- Grid container -->
<!-- Grid container -->
<!-- Copyright -->
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.5);">
© 2024 Copyright:
<a class="text-white" href="https://www.rohantkini.in/">T Rohan Kini</a>
</div>
<!-- Copyright -->
</footer>
</body>
</html>