aboutsummaryrefslogtreecommitdiff
path: root/deploy/loader.js
blob: b3508c5c6c4bfd7e00be0d75e443f3f2b1a7a279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function getCookie(cname) {
    let name = cname + '=';
    let ca = document.cookie.split(';');
    for (let i = 0; i < ca.length; i++) {
        let 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;
}