Commit
·
930564b
1
Parent(s):
83892b4
Update templates/index.html
Browse files- templates/index.html +4 -3
templates/index.html
CHANGED
|
@@ -203,7 +203,7 @@
|
|
| 203 |
|
| 204 |
<div class="info" id="info">
|
| 205 |
<h1 id="country" style="color:rgb(53, 53, 53); margin-top: 10px; font-family: 'Helvetica'; font-weight: 50; margin-bottom: 10px;"> searching...</h1>
|
| 206 |
-
<a href="{{ ip_link }}" target="_blank"> <h3><span id="location-name">{{ page_title }}</span</h3></a>
|
| 207 |
|
| 208 |
<div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
|
| 209 |
<a href="?new=true" style="margin-right: 10px; display: inline-block;">
|
|
@@ -259,8 +259,8 @@
|
|
| 259 |
const infoText = document.getElementById("info-text");
|
| 260 |
infoText.style.opacity = "0";
|
| 261 |
|
| 262 |
-
const locationName = document.
|
| 263 |
-
locationName.textContent = "{{
|
| 264 |
|
| 265 |
const newUrl = "{{ url }}";
|
| 266 |
|
|
@@ -288,6 +288,7 @@
|
|
| 288 |
old = newUrl;
|
| 289 |
setTimeout(() => {
|
| 290 |
feed.src = this.src;
|
|
|
|
| 291 |
feed.style.width = "100%";
|
| 292 |
feed.style.height = "70%";
|
| 293 |
feed.style.opacity = "1";
|
|
|
|
| 203 |
|
| 204 |
<div class="info" id="info">
|
| 205 |
<h1 id="country" style="color:rgb(53, 53, 53); margin-top: 10px; font-family: 'Helvetica'; font-weight: 50; margin-bottom: 10px;"> searching...</h1>
|
| 206 |
+
<a href="{{ ip_link }}" target="_blank"> <h3><span id="location-name" class="js-target">{{ page_title }}</span</h3></a>
|
| 207 |
|
| 208 |
<div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
|
| 209 |
<a href="?new=true" style="margin-right: 10px; display: inline-block;">
|
|
|
|
| 259 |
const infoText = document.getElementById("info-text");
|
| 260 |
infoText.style.opacity = "0";
|
| 261 |
|
| 262 |
+
const locationName = document.querySelector('.js-target');;
|
| 263 |
+
locationName.textContent = "{{ page_title }}";
|
| 264 |
|
| 265 |
const newUrl = "{{ url }}";
|
| 266 |
|
|
|
|
| 288 |
old = newUrl;
|
| 289 |
setTimeout(() => {
|
| 290 |
feed.src = this.src;
|
| 291 |
+
locationName.textContent = "{{ name }}";
|
| 292 |
feed.style.width = "100%";
|
| 293 |
feed.style.height = "70%";
|
| 294 |
feed.style.opacity = "1";
|