From 731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 23 Jan 2018 14:23:39 +0100 Subject: update mostly all GUI forms to split JavaScript and CSS from html code to support "Content Security-Policy" http headers --- .../data/deploy/conf/moa-id/htmlTemplates/slo.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 id/server/data/deploy/conf/moa-id/htmlTemplates/slo.js (limited to 'id/server/data/deploy/conf/moa-id/htmlTemplates/slo.js') diff --git a/id/server/data/deploy/conf/moa-id/htmlTemplates/slo.js b/id/server/data/deploy/conf/moa-id/htmlTemplates/slo.js new file mode 100644 index 000000000..c85837c8a --- /dev/null +++ b/id/server/data/deploy/conf/moa-id/htmlTemplates/slo.js @@ -0,0 +1,20 @@ +function sloTimeOut() { + document.getElementById("timeoutURL").click(); +} +function RestartAfterDelay() { + var eDate = null; + var MilliSekZeit = 0; + var SysDatumJetzt = new Date(); + var SysDatumJetztMilli = SysDatumJetzt.getTime(); + + do { + eDate = new Date(); + MilliSekZeit = eDate.getTime(); + } while ((MilliSekZeit-SysDatumJetztMilli) < $timeout); + + sloTimeOut(); +} + +document.addEventListener('DOMContentLoaded', function () { + setTimeout(sloTimeOut, 30000); +}); \ No newline at end of file -- cgit v1.2.3