Commit
·
1abd420
1
Parent(s):
ef88e89
Update templates/index.html
Browse files- templates/index.html +29 -9
templates/index.html
CHANGED
|
@@ -153,6 +153,16 @@
|
|
| 153 |
#share:hover {
|
| 154 |
opacity: 0.5;
|
| 155 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
@media only screen and (orientation: portrait) {
|
| 158 |
.body {
|
|
@@ -219,15 +229,19 @@
|
|
| 219 |
<i id="share" class="fa-solid fa-link" data-id="{{ id }}"></i>
|
| 220 |
<p id="copied" class="tag" style="visibility: hidden;">copied</p>
|
| 221 |
</div>
|
| 222 |
-
|
| 223 |
-
<
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
|
| 232 |
<!--
|
| 233 |
<div class="map-div">
|
|
@@ -411,6 +425,12 @@
|
|
| 411 |
window.location.href = '/?new=true';
|
| 412 |
}
|
| 413 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
|
| 415 |
</script>
|
| 416 |
</body>
|
|
|
|
| 153 |
#share:hover {
|
| 154 |
opacity: 0.5;
|
| 155 |
}
|
| 156 |
+
#info-container {
|
| 157 |
+
overflow: hidden;
|
| 158 |
+
max-height: auto;
|
| 159 |
+
transition: max-height 0.3s ease;
|
| 160 |
+
}
|
| 161 |
+
.collapsed {
|
| 162 |
+
max-height: 0;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
|
| 166 |
|
| 167 |
@media only screen and (orientation: portrait) {
|
| 168 |
.body {
|
|
|
|
| 229 |
<i id="share" class="fa-solid fa-link" data-id="{{ id }}"></i>
|
| 230 |
<p id="copied" class="tag" style="visibility: hidden;">copied</p>
|
| 231 |
</div>
|
| 232 |
+
|
| 233 |
+
<button id="toggle-button">more info</button>
|
| 234 |
+
<div id="info-container">
|
| 235 |
+
<p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
|
| 236 |
+
owner: {{ owner }}<br>
|
| 237 |
+
ip: {{ ip }}<br>
|
| 238 |
+
lat, lon: {{ loc }}<br>
|
| 239 |
+
time: <span id="time"></span><br><br>
|
| 240 |
+
|
| 241 |
+
<span class="tag">a brayden moore website<br></span>thanks for visiting
|
| 242 |
+
</p>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
|
| 246 |
<!--
|
| 247 |
<div class="map-div">
|
|
|
|
| 425 |
window.location.href = '/?new=true';
|
| 426 |
}
|
| 427 |
});
|
| 428 |
+
|
| 429 |
+
// Toggle info on click
|
| 430 |
+
document.getElementById('toggle-button').addEventListener('click', function() {
|
| 431 |
+
const container = document.getElementById('info-container');
|
| 432 |
+
container.classList.toggle('collapsed');
|
| 433 |
+
});
|
| 434 |
|
| 435 |
</script>
|
| 436 |
</body>
|