PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.8
Patchstack – WordPress & Plugins Security v2.2.8
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
patchstack / assets / js / public.js

public.js in Patchstack – WordPress & Plugins Security 2.2.8, at assets/js/public.js

32 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function setCookieForNotice(e) {
2 var t = new Date, i = t.getTime();
3 "1week" == e && (i += 6048e5), "1month" == e && (i += 2629743e3), "1year" == e && (i += 31556916e3), t.setTime(i), document.cookie = "after_exit" == e ? "cookie_notice_seen=1; path=/" : "cookie_notice_seen=1; expires=" + t.toUTCString() + "; path=/", document.getElementById("patchstack-cookie-notice").style.cssText = "visibility:hidden !important"
4 }
5
6 (function(window, document, undefined){
7
8 function getCookie(cname) {
9 var name = cname + "=";
10 var decodedCookie = decodeURIComponent(document.cookie);
11 var ca = decodedCookie.split(';');
12 for(var i = 0; i <ca.length; i++) {
13 var c = ca[i];
14 while (c.charAt(0) == ' ') {
15 c = c.substring(1);
16 }
17 if (c.indexOf(name) == 0) {
18 return c.substring(name.length, c.length);
19 }
20 }
21 return "";
22 }
23
24 window.onload = init;
25
26 function init(){
27 if(getCookie('cookie_notice_seen') !== '1' && document.getElementById('patchstack-cookie-notice') !== null){
28 document.getElementById('patchstack-cookie-notice').style.visibility = 'visible';
29 }
30 }
31
32 })(window, document, undefined);