Commit
·
7e37821
1
Parent(s):
4257bdd
Update templates/index.html
Browse files- templates/index.html +0 -13
templates/index.html
CHANGED
|
@@ -129,12 +129,6 @@
|
|
| 129 |
another
|
| 130 |
</button>
|
| 131 |
</a>
|
| 132 |
-
|
| 133 |
-
<a href="#" id="refreshButton" style="margin-left: 10px; display: inline-block;">
|
| 134 |
-
<button style="border: 1px solid yellow; background-color: transparent; color: rgb(83, 83, 83); padding: 10px;">
|
| 135 |
-
refresh
|
| 136 |
-
</button>
|
| 137 |
-
</a>
|
| 138 |
|
| 139 |
<div class="map-div">
|
| 140 |
<img id="map" src="{{ url_for('static', filename='map_populated.png') }}" style="width: 100%; height: 100%;" />
|
|
@@ -157,13 +151,6 @@
|
|
| 157 |
feed.src = newUrl;
|
| 158 |
});
|
| 159 |
});
|
| 160 |
-
|
| 161 |
-
document.getElementById("refreshButton").addEventListener("click", function() {
|
| 162 |
-
const feed = document.getElementById("feed");
|
| 163 |
-
const currentSrc = feed.src;
|
| 164 |
-
const timestamp = new Date().getTime(); // Generate a unique timestamp
|
| 165 |
-
feed.src = `${currentSrc.split('?')[0].split('&')[0]}?t=${timestamp}`; // Append timestamp to the URL
|
| 166 |
-
});
|
| 167 |
</script>
|
| 168 |
</body>
|
| 169 |
|
|
|
|
| 129 |
another
|
| 130 |
</button>
|
| 131 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
<div class="map-div">
|
| 134 |
<img id="map" src="{{ url_for('static', filename='map_populated.png') }}" style="width: 100%; height: 100%;" />
|
|
|
|
| 151 |
feed.src = newUrl;
|
| 152 |
});
|
| 153 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
</script>
|
| 155 |
</body>
|
| 156 |
|