Commit
·
c13c54e
1
Parent(s):
39aecaf
Update templates/index.html
Browse files- templates/index.html +13 -0
templates/index.html
CHANGED
|
@@ -129,6 +129,12 @@
|
|
| 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,6 +157,13 @@
|
|
| 151 |
feed.src = newUrl;
|
| 152 |
});
|
| 153 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
</script>
|
| 155 |
</body>
|
| 156 |
|
|
|
|
| 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 |
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 |
+
feed.src = ""; // Clear current src
|
| 165 |
+
setTimeout(() => { feed.src = currentSrc; }, 100); // Reset src after a short delay
|
| 166 |
+
});
|
| 167 |
</script>
|
| 168 |
</body>
|
| 169 |
|