Commit
·
b44051a
1
Parent(s):
1bf4745
Update templates/index.html
Browse files- templates/index.html +4 -2
templates/index.html
CHANGED
|
@@ -187,7 +187,7 @@
|
|
| 187 |
</div>
|
| 188 |
|
| 189 |
|
| 190 |
-
<div class="info">
|
| 191 |
<h1 id="country" style="color:rgb(83, 83, 83); margin-top: 1%; font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> searching...</h1>
|
| 192 |
<a href="{{ ip_link }}" target="_blank"> <h3 style="border-bottom: 2px solid yellow; color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ name }}</h3></a>
|
| 193 |
|
|
@@ -240,6 +240,7 @@
|
|
| 240 |
feed.src = loadingGif;
|
| 241 |
feed.style.opacity = "0.2";
|
| 242 |
|
|
|
|
| 243 |
const infoText = document.getElementById("info-text");
|
| 244 |
infoText.style.opacity = "0";
|
| 245 |
|
|
@@ -264,13 +265,14 @@
|
|
| 264 |
|
| 265 |
const img = new Image();
|
| 266 |
img.onload = function() {
|
| 267 |
-
|
| 268 |
old = newUrl;
|
| 269 |
setTimeout(() => {
|
| 270 |
feed.src = this.src;
|
| 271 |
feed.style.width = "100%";
|
| 272 |
feed.style.height = "70%";
|
| 273 |
feed.style.opacity = "1";
|
|
|
|
| 274 |
}, 100);
|
| 275 |
|
| 276 |
const infoText = document.getElementById("info-text");
|
|
|
|
| 187 |
</div>
|
| 188 |
|
| 189 |
|
| 190 |
+
<div class="info" id="info">
|
| 191 |
<h1 id="country" style="color:rgb(83, 83, 83); margin-top: 1%; font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> searching...</h1>
|
| 192 |
<a href="{{ ip_link }}" target="_blank"> <h3 style="border-bottom: 2px solid yellow; color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;">{{ name }}</h3></a>
|
| 193 |
|
|
|
|
| 240 |
feed.src = loadingGif;
|
| 241 |
feed.style.opacity = "0.2";
|
| 242 |
|
| 243 |
+
const infoDiv = document.getElementById("info");
|
| 244 |
const infoText = document.getElementById("info-text");
|
| 245 |
infoText.style.opacity = "0";
|
| 246 |
|
|
|
|
| 265 |
|
| 266 |
const img = new Image();
|
| 267 |
img.onload = function() {
|
| 268 |
+
infoDiv.style.opacity = "0";
|
| 269 |
old = newUrl;
|
| 270 |
setTimeout(() => {
|
| 271 |
feed.src = this.src;
|
| 272 |
feed.style.width = "100%";
|
| 273 |
feed.style.height = "70%";
|
| 274 |
feed.style.opacity = "1";
|
| 275 |
+
infoDiv.style.opacity = "1";
|
| 276 |
}, 100);
|
| 277 |
|
| 278 |
const infoText = document.getElementById("info-text");
|