diff --git a/AKPlan/templates/AKPlan/plan_wall.html b/AKPlan/templates/AKPlan/plan_wall.html index 2ff5eeaf0eebd09ccdfc60b26277ccfa7fa17af2..0034af43b4bff4eb9eb668f39218ddc854da8df2 100644 --- a/AKPlan/templates/AKPlan/plan_wall.html +++ b/AKPlan/templates/AKPlan/plan_wall.html @@ -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 %}