Subversion Repositories oidplus

Rev

Rev 1173 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1173 Rev 1349
Line 86... Line 86...
86
                target.textContent = "";
86
                target.textContent = "";
87
        }
87
        }
88
        return succeed;
88
        return succeed;
89
}
89
}
90
 
90
 
91
function isInternetExplorer() {
-
 
92
        // see also includes/functions.inc.php
-
 
93
        var ua = window.navigator.userAgent;
-
 
94
        return ((ua.indexOf("MSIE ") > 0) || (ua.indexOf("Trident/") > 0));
-
 
95
}
-
 
96
 
-
 
97
function getMeta(metaName) {
91
function getMeta(metaName) {
98
        const metas = $('meta[name='+metaName+']');
92
        const metas = $('meta[name='+metaName+']');
99
        return (metas.length == 0) ? '' : metas[0].content;
93
        return (metas.length == 0) ? '' : metas[0].content;
100
}
94
}
101
 
95
 
Line 172... Line 166...
172
        d.setTime(d.getTime() + (exdays*24*60*60*1000));
166
        d.setTime(d.getTime() + (exdays*24*60*60*1000));
173
        var expires = exdays == 0 ? "" : "; expires="+d.toUTCString();
167
        var expires = exdays == 0 ? "" : "; expires="+d.toUTCString();
174
        document.cookie = cname + "=" + cvalue + expires + ";path=" + path + ";SameSite=" + samesite_policy;
168
        document.cookie = cname + "=" + cvalue + expires + ";path=" + path + ";SameSite=" + samesite_policy;
175
}
169
}
176
 
170
 
177
 
-
 
178
 
-
 
179
function isNull(val, def) {
171
function isNull(val, def) {
180
        // For compatibility with Internet Explorer, use isNull(a,b) instead of a??b
172
        // Deprecated. Use "val??def" instead of isNull(val,def)
181
        if (val == null) {
173
        if (val == null) {
182
                // since null==undefined, this also works with undefined
174
                // since null==undefined, this also works with undefined
183
                return def;
175
                return def;
184
        } else {
176
        } else {
185
                return val;
177
                return val;