Commit 1413590b authored by carboncrafters's avatar carboncrafters
Browse files

getcookie fix

parent 2554c4bc
Pipeline #7 canceled with stages
......@@ -3,6 +3,13 @@ require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';?>
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
<script src="https://cdn.emalm.com/js/include.js"></script>
<script src="https://cdn.emalm.com/js/setlang.js"></script>
<script>
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
</script>
</head>
<div include="/menu.html"></div>
<aside class="right" >
......
......@@ -3,6 +3,13 @@ include $_SERVER["DOCUMENT_ROOT"].'/cookie.php';?>
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
<script src="https://cdn.emalm.com/js/include.js"></script>
<script src="https://cdn.emalm.com/js/setlang.js"></script>
<script>
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<script src='https://www.google.com/recaptcha/api.js'></script>
......
......@@ -4,6 +4,13 @@ require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
<script src="https://cdn.emalm.com/js/include.js"></script>
<script src="https://cdn.emalm.com/js/setlang.js"></script>
<script>
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
</script>
<html lang="en">
<head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment