-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (97 loc) · 2.49 KB
/
index.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<title>Regular website</title>
<link rel="shortcut icon" type="image/jpg" href="/pictures/favicon.jpg"/>
<div id="left-side" class="side">
<h2 class="title">
<p><a href="blog/posts.html" class="link-1" >_blog</a>
<p><a href="insertcoin.html" class="link-1">_curriculum-vitae</a></p>
<p><a href="links.html" class="link-1" >_links</a></p>
<p><a href="contact.html" class="link-1" >_contact</a></p>
<p style="font-family: Arial, sans-serif; font-size: 20px;">#### ### ######</p>
</h2>
</div>
<style>
body {
font-family: "Courier New", Courier, monospace;
}
:root {
--dark: rgb(20, 20, 20);
--yellow: rgb(253, 216, 53);
--blue: rgb(98, 0, 234);
--c1: #000;
--c2: rgb(248, 248, 248);
--left-color: var(--c1);
--right-color: var(--c2);
}
body {
background-color: var(--dark);
margin: 0px;
}
.link-1 {
color: #ebe1e1;
text-decoration: none;
}
.link-2 {
color: #070707;
text-decoration: none;
}
.link-2:hover {
color: #070707;
border: 2px solid #070707;
}
.side {
display: grid;
height: 100vh;
overflow: hidden;
place-items: center;
position: absolute;
width: 100%;
}
.side .title {
margin: 0px 10vw;
width: 80vw;
}
.side .fancy {
line-height: 0.6em;
}
#left-side {
background-color: var(--left-color);
width: 60%;
z-index: 2;
}
#left-side .title {
color: white;
}
#left-side .fancy {
color: var(--right-color);
}
#right-side {
background-color: var(--right-color);
}
#right-side .title {
color: var(--dark);
}
#right-side .fancy {
color: white;
}
</style>
<script>
const left = document.getElementById("left-side");
const handleMove = e => {
left.style.width = `${e.clientX / window.innerWidth * 100}%`;
}
document.onmousemove = e => handleMove(e);
document.ontouchmove = e => handleMove(e.touches[0]);
function playAudio() {
var audio = document.getElementById("myAudio");
audio.play();
}
</script>
<div id="right-side" class="side">
<h2 class="title">
<p><a href="blog/posts.html" class="link-2" onmouseover="playAudio()" >_blog</a>
<p><a href="insertcoin.html" class="link-2" onmouseover="playAudio()">_curriculum-vitae </a></p>
<p><a href="links.html" class="link-2" onmouseover="playAudio()">_links</a></p>
<p><a href="contact.html" class="link-2" onmouseover="playAudio()">_contact</a></p>
<p style="font-family: Arial, sans-serif; font-size: 20px;">Hack the world!</p>
</h2>
</div>