diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2021-08-02 15:44:44 -0400 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2021-08-02 15:44:44 -0400 |
commit | 94705e6cf119b9cdfcc0d857f71051eac10235c9 (patch) | |
tree | 2d399160a319b7931b22f7b7fd38e9ad3483ea33 /deploy/loader.js | |
parent | 1291e8a45ec9e3aeccd2ca74c0f549a18a16f0d7 (diff) | |
parent | 44ed361a9f59a16bbd1b5f2483ba7eb10df2fa82 (diff) |
Merge branch 'master' into sharing_scenario
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 |