diff options
author | geireann <geireann.lindfield@gmail.com> | 2021-07-30 13:26:25 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2021-07-30 13:26:25 -0400 |
commit | c9f379adab864132e6cf044f808a43254601e4bb (patch) | |
tree | 9474a6e05be18f9bd626f4cae616be3513dbc4ad /deploy/loader.js | |
parent | b33e45f1f839b3c6eaf1076e605abacd1bc6883c (diff) |
major UI / updates + refactoring
Diffstat (limited to 'deploy/loader.js')
-rw-r--r-- | deploy/loader.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy/loader.js b/deploy/loader.js new file mode 100644 index 000000000..0be421e14 --- /dev/null +++ b/deploy/loader.js @@ -0,0 +1,14 @@ +function getCookie(cname) { + var name = cname + "="; + var ca = document.cookie.split(';'); + for (var i = 0; i < ca.length; i++) { + var c = ca[i]; + while (c.charAt(0) == ' ') { + c = c.substring(1); + } + if (c.indexOf(name) == 0) { + return Number(c.substring(name.length, c.length)); + } + } + return 3000; +}
\ No newline at end of file |