mirror of
https://github.com/JonasunderscoreJones/Website-v1.git
synced 2025-10-26 02:59:17 +01:00
Update index.html
This commit is contained in:
parent
1d18b7b7f0
commit
a0f456e93d
1 changed files with 0 additions and 54 deletions
54
index.html
54
index.html
|
|
@ -96,13 +96,6 @@ body, html {
|
||||||
<div id="navbottom"></div>
|
<div id="navbottom"></div>
|
||||||
</nav>
|
</nav>
|
||||||
<body>
|
<body>
|
||||||
<div id="myModal" class="modal">
|
|
||||||
|
|
||||||
<!-- Modal content -->
|
|
||||||
<div class="modal-content">
|
|
||||||
<span class="close">×</span>
|
|
||||||
<p>Some text in the Modal..</p>
|
|
||||||
</div>
|
|
||||||
<a href="#top" id="returntotop" title="Go to top">Return to Top<img src="src/arrow_up_icon.png" width="30px"></a>
|
<a href="#top" id="returntotop" title="Go to top">Return to Top<img src="src/arrow_up_icon.png" width="30px"></a>
|
||||||
<!-- Navbar (sit on top) -->
|
<!-- Navbar (sit on top) -->
|
||||||
<div class="w3-top custom2 top" style="padding-left: 250px;">
|
<div class="w3-top custom2 top" style="padding-left: 250px;">
|
||||||
|
|
@ -306,53 +299,6 @@ function w3_close() {
|
||||||
document.getElementById("mySidebar").style.display = "none";
|
document.getElementById("mySidebar").style.display = "none";
|
||||||
document.getElementById("myOverlay").style.display = "none";
|
document.getElementById("myOverlay").style.display = "none";
|
||||||
}
|
}
|
||||||
var mybutton = document.getElementById("myBtn");
|
|
||||||
|
|
||||||
var modal = document.getElementById("myModal");
|
|
||||||
var span = document.getElementsByClassName("close")[0];
|
|
||||||
function setCookie(cname,cvalue,exdays) {
|
|
||||||
const d = new Date();
|
|
||||||
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
|
||||||
let expires = "expires=" + d.toGMTString();
|
|
||||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
|
||||||
}
|
|
||||||
|
|
||||||
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 checkCookie() {
|
|
||||||
let user = getCookie("firstvis");
|
|
||||||
if (user != "") {
|
|
||||||
} else {
|
|
||||||
user = 0
|
|
||||||
modal.style.display = "block";
|
|
||||||
if (user != "" && user != null) {
|
|
||||||
setCookie("username", user, 30);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
span.onclick = function() {
|
|
||||||
modal.style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onclick = function(event) {
|
|
||||||
if (event.target == modal) {
|
|
||||||
modal.style.display = "none";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue