diff options
author | bobzel <zzzman@gmail.com> | 2021-08-01 22:43:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-08-01 22:43:48 -0400 |
commit | 077723a6863bbb537756180450bdf9addeec021a (patch) | |
tree | 6655fe862a38dc85e32fc7dcc9d3e052f410d23f /deploy/loader.js | |
parent | 0546ecf205b7d2b76f341a7157beebf95fb888a8 (diff) | |
parent | b1361eec6d3f554d4927931c339b5c169b9a54a7 (diff) |
Merge branch 'master' of https://github.com/brown-dash/Dash-Web
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 |