Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +6 -6
templates/index.html
CHANGED
@@ -12,6 +12,7 @@
|
|
12 |
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
|
13 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
14 |
<link rel="preload" href="{{ url_for('static', filename='eye.gif') }}" as="image">
|
|
|
15 |
<link rel="icon" type="image/png" href="https://i.ibb.co/gvKPXJD/eye.gif">
|
16 |
<title>{{ page_title|safe }}</title>
|
17 |
<style>
|
@@ -55,7 +56,6 @@
|
|
55 |
h3 {
|
56 |
margin-bottom: 0px;
|
57 |
margin-top: 0px !important;
|
58 |
-
border-bottom: 1px solid white;
|
59 |
color:var(--text-color);
|
60 |
font-family: 'Andale Mono';
|
61 |
font-weight: normal;
|
@@ -110,7 +110,7 @@
|
|
110 |
margin: 0px;
|
111 |
margin-top: 20px;
|
112 |
font-weight: normal;
|
113 |
-
font-size:
|
114 |
}
|
115 |
.feed {
|
116 |
transition: opacity 0.3s ease;
|
@@ -250,7 +250,7 @@
|
|
250 |
|
251 |
|
252 |
<div class="info" id="info">
|
253 |
-
<h1 id="country" style="color:var(--text-color); margin-top: 10px; font-family: 'Andale Mono'; margin-bottom:
|
254 |
<a href="{{ ip_link }}" target="_blank"> <h3 style="border-bottom: 1px solid white;" id="location-name">{{ page_title|safe }}</h3></a>
|
255 |
|
256 |
<div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
|
@@ -335,7 +335,7 @@
|
|
335 |
if (xhr.getResponseHeader('Content-Type') === 'image/jpeg') {
|
336 |
img.src = newUrl + "?r=" + new Date().getTime();
|
337 |
if (firstLoad){
|
338 |
-
countryElement.textContent = "
|
339 |
}
|
340 |
isJpeg = true;
|
341 |
contentTypeChecked = true;
|
@@ -382,7 +382,7 @@
|
|
382 |
|
383 |
const urlParams = new URLSearchParams(window.location.search);
|
384 |
if (urlParams.get('new') === 'false') {
|
385 |
-
countryElement.textContent = "
|
386 |
}
|
387 |
else {
|
388 |
window.location.href = "?new=true";
|
@@ -435,7 +435,7 @@
|
|
435 |
const countryElement = document.getElementById("country");
|
436 |
|
437 |
if (urlParams.get('new') === 'false') {
|
438 |
-
countryElement.textContent = "
|
439 |
}
|
440 |
});
|
441 |
|
|
|
12 |
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
|
13 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
|
14 |
<link rel="preload" href="{{ url_for('static', filename='eye.gif') }}" as="image">
|
15 |
+
<link rel="preload" href="{{ url_for('static', filename='andalemono.ttf') }}" as="font" type="font/ttf" crossorigin>
|
16 |
<link rel="icon" type="image/png" href="https://i.ibb.co/gvKPXJD/eye.gif">
|
17 |
<title>{{ page_title|safe }}</title>
|
18 |
<style>
|
|
|
56 |
h3 {
|
57 |
margin-bottom: 0px;
|
58 |
margin-top: 0px !important;
|
|
|
59 |
color:var(--text-color);
|
60 |
font-family: 'Andale Mono';
|
61 |
font-weight: normal;
|
|
|
110 |
margin: 0px;
|
111 |
margin-top: 20px;
|
112 |
font-weight: normal;
|
113 |
+
font-size: 10pt;
|
114 |
}
|
115 |
.feed {
|
116 |
transition: opacity 0.3s ease;
|
|
|
250 |
|
251 |
|
252 |
<div class="info" id="info">
|
253 |
+
<h1 id="country" style="color:var(--text-color); margin-top: 10px; font-family: 'Andale Mono'; margin-bottom: 2px;"> searching...</h1>
|
254 |
<a href="{{ ip_link }}" target="_blank"> <h3 style="border-bottom: 1px solid white;" id="location-name">{{ page_title|safe }}</h3></a>
|
255 |
|
256 |
<div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
|
|
|
335 |
if (xhr.getResponseHeader('Content-Type') === 'image/jpeg') {
|
336 |
img.src = newUrl + "?r=" + new Date().getTime();
|
337 |
if (firstLoad){
|
338 |
+
countryElement.textContent = "connecting...";
|
339 |
}
|
340 |
isJpeg = true;
|
341 |
contentTypeChecked = true;
|
|
|
382 |
|
383 |
const urlParams = new URLSearchParams(window.location.search);
|
384 |
if (urlParams.get('new') === 'false') {
|
385 |
+
countryElement.textContent = "couldn't connect.";
|
386 |
}
|
387 |
else {
|
388 |
window.location.href = "?new=true";
|
|
|
435 |
const countryElement = document.getElementById("country");
|
436 |
|
437 |
if (urlParams.get('new') === 'false') {
|
438 |
+
countryElement.textContent = "connecting...";
|
439 |
}
|
440 |
});
|
441 |
|