Added cookies

This commit is contained in:
moanos [he/him] 2019-09-24 19:14:21 +02:00
parent 343a2bb2f5
commit 33f31185c6

View File

@ -25,7 +25,6 @@ The Hy stayed as I always had a close connection to water.
I feel like I overexplained this a bit, so poor you if you read till the end.
Have a cookie
<script>
function createCookie(name, value, days){
var expires;
@ -41,11 +40,6 @@ function createCookie(name, value, days){
}
</script>
<html>
</head>
<body>
<button onclick="createCookie('you_earned_it', 'cookie', 1)">Get your cookie</button>
</body>
</html>
Have a <button onclick="createCookie('you_earned_it', 'cookie', 1)">cookie</button>