Skip to content
Snippets Groups Projects
Commit 1b16dbce authored by Tibo's avatar Tibo
Browse files

buble view : reload page after 5 min

parent b25c6074
No related branches found
No related tags found
1 merge request!6Bubble view
Pipeline #7342 failed
......@@ -6,6 +6,23 @@
<div style="width: 100%; height: 800px" id="svg-container">
</div>
<div class="text-muted bottom-right">
Reload in <span id="reload-countdown">300</span> seconds
</div>
<script type="text/javascript">
var reload_countdown = 300;
setInterval(function() {
reload_countdown -= 1;
$('#reload-countdown').text(reload_countdown);
if (reload_countdown === 0) {
console.log('reload...');
location.reload();
}
}, 1000);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.1.1/d3.min.js"
integrity="sha512-COTaPOlz12cG4fSfcBsxZsjauBAyldqp+8FQUM/dZHm+ts/jR4AFoJhCqxy8K10Jrf3pojfsbq7fAPTb1XaVkg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
......
  • Tibo @tibo

    mentioned in issue #39

    ·

    mentioned in issue #39

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment