mirror of
https://github.com/SrIzan10/mainwebsite.git
synced 2026-06-06 00:56:58 +00:00
116 lines
3.2 KiB
HTML
Executable File
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 maked 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" />
|
|
<title>Sr Izan's website.</title>
|
|
<!--Scripts and styles-->
|
|
<script>
|
|
function myFunction() {
|
|
var element = document.body;
|
|
element.classList.toggle("dark-mode");
|
|
}
|
|
function randomImage(){
|
|
var images = [
|
|
'content/background/bliss.jpg',
|
|
'content/background/bridge.jpg',
|
|
'content/background/connections.jpg',
|
|
'content/background/debian.svg',
|
|
'content/background/forest.jpg',
|
|
'content/background/lookdown.jpg',
|
|
'content/background/macos.jpg',
|
|
'content/background/mountain.jpg',
|
|
'content/background/waterfall.jpg',
|
|
'content/background/windows95setup.jpg'];
|
|
var size = images.length;
|
|
var x = Math.floor(size * Math.random());
|
|
console.log(x);
|
|
var element = document.getElementsByClassName('home-intro');
|
|
document.getElementById("homeintro").style.height="1000px";
|
|
document.getElementById("homeintro").style.backgroundImage =
|
|
"url("+images[x] +")";
|
|
}
|
|
console.log(element);
|
|
element[0].style["background-image"] = "url("+ images[x] + ") no-repeat;";
|
|
}
|
|
|
|
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;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="home-intro show-for-medium-up" id="home-intro"></div>
|
|
<a href="contact"><p class="contact">Contact me</p></a>
|
|
<div class="lefttorighttext">
|
|
<h1>Sr Izan's Website.</h1>
|
|
</div>
|
|
<!--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>
|