diff options
author | dinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com> | 2021-08-12 16:11:11 -0400 |
---|---|---|
committer | dinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com> | 2021-08-12 16:11:11 -0400 |
commit | c5ea51ff9d8c4c69c478038781c8d8100005d2fe (patch) | |
tree | ff1c357a64f0f6734ffe6ca473e47d640ff55762 /deploy/loader.js | |
parent | b3fde759b304f6401595f4e43bb00cc6fa65c915 (diff) | |
parent | 5d3c00c2b02758a644df687656097dad055d0fe1 (diff) |
Merge branch 'master' into splash-screen-3-Anh-En-Hua
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 |