Spaces:
Running
Running
Commit
·
4257bdd
1
Parent(s):
c6f268b
Update templates/index.html
Browse files- templates/index.html +6 -6
templates/index.html
CHANGED
@@ -158,12 +158,12 @@
|
|
158 |
});
|
159 |
});
|
160 |
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
</script>
|
168 |
</body>
|
169 |
|
|
|
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 |
|