Spaces:
Running
Running
Commit
·
ad998a1
1
Parent(s):
61219ad
Update templates/index.html
Browse files- templates/index.html +21 -3
templates/index.html
CHANGED
@@ -153,6 +153,10 @@
|
|
153 |
#share:hover {
|
154 |
opacity: 0.5;
|
155 |
}
|
|
|
|
|
|
|
|
|
156 |
|
157 |
|
158 |
|
@@ -223,12 +227,14 @@
|
|
223 |
</div>
|
224 |
|
225 |
<p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
|
226 |
-
|
|
|
|
|
227 |
<span id="additional-info">
|
228 |
owner: {{ owner }}<br>
|
229 |
ip: {{ ip }}<br>
|
230 |
-
lat, lon: {{ loc }}
|
231 |
-
|
232 |
</span>
|
233 |
|
234 |
<span class="tag">a brayden moore website<br></span>thanks for visiting
|
@@ -417,6 +423,18 @@
|
|
417 |
window.location.href = '/?new=true';
|
418 |
}
|
419 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
|
421 |
</script>
|
422 |
</body>
|
|
|
153 |
#share:hover {
|
154 |
opacity: 0.5;
|
155 |
}
|
156 |
+
#additional-info {
|
157 |
+
display: none;
|
158 |
+
}
|
159 |
+
|
160 |
|
161 |
|
162 |
|
|
|
227 |
</div>
|
228 |
|
229 |
<p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
|
230 |
+
|
231 |
+
time: <span id="time"></span><br>
|
232 |
+
<span id="show-more">...</span>
|
233 |
<span id="additional-info">
|
234 |
owner: {{ owner }}<br>
|
235 |
ip: {{ ip }}<br>
|
236 |
+
lat, lon: {{ loc }}
|
237 |
+
<br><br>
|
238 |
</span>
|
239 |
|
240 |
<span class="tag">a brayden moore website<br></span>thanks for visiting
|
|
|
423 |
window.location.href = '/?new=true';
|
424 |
}
|
425 |
});
|
426 |
+
|
427 |
+
// Show more info
|
428 |
+
document.addEventListener('DOMContentLoaded', function() {
|
429 |
+
const infoText = document.getElementById('info-text');
|
430 |
+
const additionalInfo = document.getElementById('additional-info');
|
431 |
+
|
432 |
+
additionalInfo.style.display = 'none';
|
433 |
+
|
434 |
+
infoText.addEventListener('click', function() {
|
435 |
+
additionalInfo.style.display = (additionalInfo.style.display === 'none') ? 'block' : 'none';
|
436 |
+
});
|
437 |
+
});
|
438 |
|
439 |
</script>
|
440 |
</body>
|