-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrop.html
219 lines (205 loc) · 8.38 KB
/
drop.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic UI</title>
<style>
.method {
margin-bottom: 30px;
border: 1px solid #ddd;
padding: 15px;
}
iframe {
width: 100%;
height: 320px;
border: 1px solid #ccc;
}
table {
margin-top:10px;
border-collapse: collapse;
width: 100%;
color:black;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
}
.expandable-container {
border-top: 1px solid black;
border-right: 1px solid black;
border-left: 1px solid black;
width: 1000px;
margin: 0 auto;
background-color: white;
/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
margin-bottom: 10px;
color:grey;
}
.expandable-header {
height:20px;
border-bottom: 1px solid black;
font-size: 1.1rem;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
transition: background-color 0.3s ease;
color:black;
}
.expandable-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.15s ease-out ,padding 0.15s ease-out;;
padding: 0 10px;
opacity: 0;
border-bottom: 1px solid black;
}
.expandable-content.expanded {
max-height: 1000px; /* Adjust this value based on your content's max potential height */
opacity: 1;
padding: 10px;
}
.arrow {
transition: transform 0.3s ease;
}
.expanded .arrow {
transform: rotate(180deg);
}
</style>
</head>
<body>
<style>
.button-container {
perspective: 1000px; /* Enable 3D perspective */
}
.back-button {
width: auto;
height: 80px;
padding: 10px 20px;
background-color: #f4f4f4;
font-size: 1.2rem;
border: none;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: transform 0.2s, box-shadow 0.2s, padding 0.2s;
cursor: pointer;
border : 1px solid black;
}
.back-button:active {
transform: translateY(5px) scale(0.95); /* Push down and shrink slightly */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduce shadow for depth effect */
padding: 10px 18px; /* Slightly reduce padding to simulate pressing */
}
</style>
<div style="display: flex; justify-content: space-between; margin-bottom: 20px;">
<a href='./index.html' style="text-decoration: none;">
<button class="back-button"> <i class="fas fa-arrow-left"></i> Back to Home </button>
</a>
<h1> PERFLOGS 🛠️ </h1> </spam>
<a href='./future.html' style="text-decoration: none;">
<button class="back-button"> <i class="fas fa-arrow-left"></i> Switch to <br> Advance UI </button>
</a>
</div>
<h5 style="text-align: center;">For low end devices</h5>
<iframe src="./score.html" style="background-color: white;border:none;"></iframe>
<div class="expandable-container">
<div class="expandable-header" onclick="toggleContent(this)">
<span>🟩 Website performance -- <span style="background-color: #d4f1d2; color:rgb(0, 0, 0);border:1px solid rgb(71, 137, 83); border-radius:5px;font-weight: bold;">Reflecthub</span></span>
<span class="arrow">▼</span> <!-- Down arrow -->
</div>
<div class="expandable-content">
<iframe src="https://reflecthub.github.io" style="background-color: white;border:none;"></iframe>
</div>
</div>
<div class="expandable-container">
<div class="expandable-header" onclick="toggleContent(this)">
<span>🔎 Insights -- pagespeed.web.dev <sup style="color:rgb(0, 0, 0);font-weight: bold;"> @Google inc</sup></span>
<span class="arrow">▼</span> <!-- Down arrow -->
</div>
<div class="expandable-content">
<p> <b>Google PageSpeed Insights is a tool that empowers you to make your website faster. It evaluates your website's performance and provides suggestions to improve it. </b></p>
<a href="https://pagespeed.web.dev/analysis/https-reflecthub-github-io/2nqko721uv?form_factor=desktop" target="_blank" style="color: blue;display: flex; justify-content: center; align-items: center;">Perflogs</a>
</div>
</div>
<div class="expandable-container">
<div class="expandable-header" onclick="toggleContent(this)">
<span>🟨 JavaScript execution time -- 0.1s</span>
<span class="arrow">▼</span> <!-- Down arrow -->
</div>
<div class="expandable-content">
<p><b>Consider reducing the time spent parsing, compiling, and executing JS. You may find delivering smaller JS payloads helps with this. Learn how to reduce Javascript execution time.<span style="border:0.1px solid black;border-radius:5px;padding:2px;font-size:smaller">TBT </span></b>
</p>
<a href="https://pagespeed.web.dev/analysis/https-reflecthub-github-io/2nqko721uv?form_factor=desktop" target="_blank" style="color: blue;display: flex; justify-content: center; align-items: center;">Perflogs</a>
<table>
<thead>
<tr>
<th>URL</th>
<th>Total CPU Time</th>
<th>Script Evaluation</th>
<th>Script Parse</th>
</tr>
</thead>
<tbody>
<tr>
<td>GitHub utility 1st party</td>
<td>2,184 ms</td>
<td>45 ms</td>
<td>2 ms</td>
</tr>
<tr>
<td>https://reflecthub.github.io</td>
<td>2,112 ms</td>
<td>13 ms</td>
<td>0 ms</td>
</tr>
<tr>
<td>/index.js (reflecthub.github.io)</td>
<td>71 ms</td>
<td>33 ms</td>
<td>1 ms</td>
</tr>
<tr>
<td>Unattributable</td>
<td>243 ms</td>
<td>9 ms</td>
<td>0 ms</td>
</tr>
<tr>
<td>jQuery CDN cdn</td>
<td>54 ms</td>
<td>47 ms</td>
<td>5 ms</td>
</tr>
<tr>
<td>/jquery-3.5.1.slim.min.js (code.jquery.com)</td>
<td>54 ms</td>
<td>47 ms</td>
<td>5 ms</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--A fixed footnote on bottom right saying Developed and controlled by Abdullah-->
<div style="position: fixed; bottom: 0; right: 0; padding: 10px; background-color: #f0f0f0; color: #333; font-size: 12px;">
Developed and controlled by Abdullah
</div>
<script>
function toggleContent(header) {
const content = header.nextElementSibling; // Get the next sibling (expandable-content)
const arrow = header.querySelector('.arrow'); // Get the arrow element
// Toggle expanded class
content.classList.toggle('expanded');
header.querySelector('.arrow').classList.toggle('expanded');
}
</script>
</body>
</html>