aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2018-01-23 14:23:39 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2018-01-23 14:23:39 +0100
commit731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb (patch)
tree52ce23ebe8191f99a187b9ff90af8cef01d63030 /id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js
parent869a07573fb6295174fd57aced1ba888f3015910 (diff)
downloadmoa-id-spss-731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb.tar.gz
moa-id-spss-731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb.tar.bz2
moa-id-spss-731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb.zip
update mostly all GUI forms to split JavaScript and CSS from html code to support "Content Security-Policy" http headers
Diffstat (limited to 'id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js')
-rw-r--r--id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js b/id/server/moa-id-frontend-resources/src/main/resources/mainGUI/slo.js
new file mode 100644
index 000000000..c85837c8a
--- /dev/null
+++ b/id/server/moa-id-frontend-resources/src/main/resources/mainGUI/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