diff --git a/public/a.html b/public/a.html index 1facba8d..0946165e 100644 --- a/public/a.html +++ b/public/a.html @@ -138,6 +138,7 @@ + \ No newline at end of file diff --git a/public/b.html b/public/b.html index 03936546..03ecc715 100644 --- a/public/b.html +++ b/public/b.html @@ -138,6 +138,7 @@ + \ No newline at end of file diff --git a/public/expr/auth.js b/public/expr/auth.js index b0d560d6..a00d0446 100644 --- a/public/expr/auth.js +++ b/public/expr/auth.js @@ -1,9 +1,25 @@ +function $(id) { + return document.getElementById(id); +}; + +$('nprox').onclick = function nu() { + document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; +} + +$('al').onclick = function nu() { + document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; +} + +$('pmprox').onclick = function nu() { + document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; +} + +$('pdprox').onclick = function nu() { + document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; +} + var host = location.hostname.split('.'); var auth = location.hostname; if (host.length == 3) { auth = `${host[1]}.${host[2]}`; -} - -function nu() { - document.cookie = 'auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; } \ No newline at end of file diff --git a/public/expr/bp.js b/public/expr/bp.js index 091dbf32..d82acf57 100644 --- a/public/expr/bp.js +++ b/public/expr/bp.js @@ -29,12 +29,6 @@ $('pmprox').onclick = function() { return false; }; -// AL Auth -$('al').onclick = function() { - document.cookie = 'al_auth=yes; expires=' + (Date.now() + 259200) + '; sameSite=none; domain=.' + auth + '; path=/; secure;'; - return false; -}; - // Cookie Auth var host = location.hostname.split('.'); var auth = location.hostname;