Files
mainwebsite/index.html
2021-04-16 16:46:12 +02:00

116 lines
3.2 KiB
HTML
Executable File

<!doctype html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="favicon.jpg"/>
<link href="css/addaptphone.css" rel="stylesheet" type="text/css">
<!--If it's a phone, addapt it (and did some code in css/addaptphone.css to be future-proof)-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="Home - Sr Izan's Website." content="Homepage for Sr Izan's Website" />
<link rel="canonical" href="https://srizan.ml/index.html" />
<title>Sr Izan's website.</title>
<!--Scripts and styles-->
<script>
function myFunction() {
var element = document.body;
element.classList.toggle("dark-mode");
}
function changeImg(imgNumber) {
var myImages =
['content/background/bliss.jpg',
'content/background/bridge.jpg',
'content/background/connections.png',
'content/background/debian.svg',
'content/background/forest.jpg',
'content/background/lookdown.jpg',
'content/background/macos.jpg',
'content/background/mountain.jpg',
'content/background/windows95setup.png'];
var imgShown = document.body.style.backgroundImage;
var newImgNumber =Math.floor(Math.random()*myImages.length);
document.body.style.backgroundImage = 'url('+myImages[newImgNumber]+')';
}
window.onload=changeImg;
document.addEventListener("DOMContentLoaded", randomImage);
</script>
<style>
body {
background-color: white;
color: black;
font-size: 25px;
overflow: hidden;
}
.corner{
position: absolute;
right: 0px;
bottom: 0px;
}
.htmlapprovalcorner{
position: absolute;
left: 0px;
bottom: 0px;
}
.contact{
position: absolute;
right: 0px;
top: 0px;
}
.dark-mode {
background-color: #23272A;
color: white;
}
.lefttorighttext{
position: absolute;
white-space: nowrap;
animation: floatText 5s infinite alternate ease-in-out;
}
@-webkit-keyframes floatText{
from {
left: 00%;
}
to {
/* left: auto; */
left: 100%;
}
}
img { border: 0; }
/*.home-intro{
background-image: url("../images/1.png");
background-color:grey;
height:500px;
color:white;
text-align:center;
}*/
.bg {
background-attachment:fixed;
/*background-repeat: no-repeat;*/
}
</style>
</head>
<body class="bg">
<div class="home-intro show-for-medium-up" id="home-intro"></div>
<a href="contact"><p class="contact">Contact me</p></a>
<marquee behavior="alternate" direction="right"><h1>Sr Izan's Website.</h1></marquee>
<!--I'm questioning my life rn-->
<br>
<br>
<br>
<br>
<br>
<a href="blog" style="text-decoration: none;"><p style="text-align: center; color: #a03131; font-size: 40px;">Blog</p></a>
<a href="downloads" style="text-decoration: none;"><p style="text-align: center; color: #2E38A8; font-size: 40px;">Downloads</p></a>
<a href="projects/" style="text-decoration: none;"><p style="text-align: center; color: #FF0000; font-size: 40px;">Projects</p></a>
<div class="corner"><button onclick="myFunction()">Toggle dark mode</button></div>
<!--<div class="htmlapprovalcorner"><a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fsrizan.ml%2F" target="_blank" rel="noopener" rel="noreferrer"><img alt="HTML5 badge" src="content/img/badge_html5.svg" width="88" height="31"></a></div>-->
</body>
</html>