Spaces:
Running
Running
Commit
·
547afc5
1
Parent(s):
175c2da
Update templates/index.html
Browse files- templates/index.html +5 -1
templates/index.html
CHANGED
@@ -124,7 +124,7 @@
|
|
124 |
<body style="background-color: black;">
|
125 |
<div class="outer-container">
|
126 |
<p style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;"> a random unsecured camera in</p>
|
127 |
-
<h1 style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> {{ country }}</h1>
|
128 |
<div class="flex-container">
|
129 |
<img id="feed" class="feed" src="" />
|
130 |
<div class="info">
|
@@ -172,6 +172,9 @@
|
|
172 |
const feed = document.getElementById("feed");
|
173 |
feed.src = "{{ url_for('static', filename='loading.gif') }}";
|
174 |
|
|
|
|
|
|
|
175 |
const newUrl = "{{ url }}";
|
176 |
|
177 |
function refreshImage() {
|
@@ -193,6 +196,7 @@
|
|
193 |
img.onload = function() {
|
194 |
feed.src = this.src;
|
195 |
setTimeout(refreshImage, 1000);
|
|
|
196 |
};
|
197 |
|
198 |
img.onerror = function() {
|
|
|
124 |
<body style="background-color: black;">
|
125 |
<div class="outer-container">
|
126 |
<p style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50;"> a random unsecured camera in</p>
|
127 |
+
<h1 id="country-name" style="color:rgb(83, 83, 83); font-family: 'Helvetica'; font-weight: 50; margin-bottom: 3%;"> {{ country }}</h1>
|
128 |
<div class="flex-container">
|
129 |
<img id="feed" class="feed" src="" />
|
130 |
<div class="info">
|
|
|
172 |
const feed = document.getElementById("feed");
|
173 |
feed.src = "{{ url_for('static', filename='loading.gif') }}";
|
174 |
|
175 |
+
const country = document.getElementById("feed");
|
176 |
+
country.text = "attempting to connect..."
|
177 |
+
|
178 |
const newUrl = "{{ url }}";
|
179 |
|
180 |
function refreshImage() {
|
|
|
196 |
img.onload = function() {
|
197 |
feed.src = this.src;
|
198 |
setTimeout(refreshImage, 1000);
|
199 |
+
country.text = "{{ country }}"
|
200 |
};
|
201 |
|
202 |
img.onerror = function() {
|