-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·29 lines (28 loc) · 879 Bytes
/
index.html
File metadata and controls
executable file
·29 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
layout: default
title: Buffy
---
{% include header.html %}
<div class="main">
{% include front.html %}
</div>
<script type="text/javascript">
var cookies = document.cookie;
if(cookies.indexOf("visited")==-1){
console.log("not visited0");
document.getElementById("header").style.display = "none";
console.log("not visited1");
document.getElementsByClassName("main")[0].style.display = "none";
console.log("not visited2");
} else {
document.getElementById("landing-page").style.display = "none";
console.log("visited");
}
function start() {
document.cookie = "visited = true;"
document.getElementById("landing-page").style.display = "none";
document.getElementById("header").style.display = "block";
document.getElementsByClassName("main")[0].style.display = "block";
console.log(document.cookie);
}
</script>