aboutsummaryrefslogtreecommitdiff
path: root/deploy/loader.js
diff options
context:
space:
mode:
authorAubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>2021-07-31 12:46:59 -0700
committerAubrey-Li <63608597+Aubrey-Li@users.noreply.github.com>2021-07-31 12:46:59 -0700
commit23f5f7362cb8deaaff805cd6b8dc0c8ae9e2f3b7 (patch)
treeb91e6ffe50433184fbc55b0271729d721fcf4737 /deploy/loader.js
parentd470a08e9ce329f1a6ff9a4591c41e1e04fb62bb (diff)
parent41ccf50f2b551edd6827c9fd6296b9ff87a65915 (diff)
Merge branch 'master' into trails-aubrey
Diffstat (limited to 'deploy/loader.js')
-rw-r--r--deploy/loader.js14
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