Skip to content

Commit

Permalink
Update block.html
Browse files Browse the repository at this point in the history
  • Loading branch information
F1xGOD authored Nov 25, 2024
1 parent bc6f613 commit 0189818
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion private/block/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,30 @@

<title>fixcraft-vpn.onrender.com | 523: Origin is Unreachable</title>
<meta charset="UTF-8" />
<script>var host = window.location.href
<script>
function getCookie(cname) {
let name = cname + "=";
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.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 c.substring(name.length, c.length);
}
}
return "";
}

function setCookie(cname,cvalue,exdays) {
const d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
let expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
var host = window.location.href
if (host.includes("https://")){
host = host.split("https://")[1]}
if (host.includes("http://")){
Expand Down

0 comments on commit 0189818

Please sign in to comment.