mirror of
https://github.com/SrIzan10/mainwebsite.git
synced 2026-06-06 00:56:58 +00:00
61 lines
1.2 KiB
HTML
Executable File
61 lines
1.2 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<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"/>
|
|
<title>Sr Izan's website.</title>
|
|
<!--Scripts and styles-->
|
|
<script>
|
|
function myFunction() {
|
|
var element = document.body;
|
|
element.classList.toggle("dark-mode");
|
|
}
|
|
</script>
|
|
<style>
|
|
body {
|
|
background-color: white;
|
|
color: black;
|
|
font-size: 25px;
|
|
overflow: hidden;
|
|
}
|
|
.corner{
|
|
position: absolute;
|
|
right: 0px;
|
|
bottom: 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%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div class="lefttorighttext">
|
|
<h1>Sr Izan's Website.</h1>
|
|
</div>
|
|
|
|
<div class="corner"><button onclick="myFunction()">Cambiar a modo oscuro</button></div>
|
|
|
|
</body>
|
|
</html> |