Skip to content
Snippets Groups Projects
Commit fac115f9 authored by Felix Homa's avatar Felix Homa Committed by Nadja Geisler
Browse files

Added autoreload using `?autoreload=1`

parent 40b927d3
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,25 @@
}
});
</script>
<script>
// function from: https://stackoverflow.com/questions/5448545/how-to-retrieve-get-parameters-from-javascript/
function findGetParameter(parameterName) {
var result = null,
tmp = [];
location.search
.substr(1)
.split("&")
.forEach(function (item) {
tmp = item.split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
});
return result;
}
if(findGetParameter("autoreload")==1) {
window.setTimeout ( function() { window.location.reload(true); }, 300000);
console.log("Autoreload active");
}
</script>
</head>
<body>
{% timezone event.timezone %}
......
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