-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
144 lines (137 loc) · 5.14 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Apro's Startpage</title>
<meta charset='utf-8'>
<link rel='stylesheet' href='catppuccin.css'>
<script src="https://kit.fontawesome.com/497f4f4907.js" crossorigin="anonymous"></script>
</head>
<body class='flexbox' onload="startTime()">
<div class="mainbox">
<h1 class='title'>Welcome back, <span class='hl'>Apro</span>.</h1>
<table>
<tr>
<td>
<div style='margin-bottom: 64px;'>
<h1 id='clock' style='margin: 0px;'></h1>
<h2 id='cal' ></h1>
</div>
<div class='cat'>
/l、<br>
(⠁、.7<br>
|、 ~ヽ<br>
じしf_,)ノ<br>
</div>
</td>
<td>
<nav class='flexbox' style='flex-direction: column;'>
<div class='flexbox' style='flex-direction: row; align-items: flex-start; justify-content: space-evenly;'>
<div>
<b>~/media</b>
<ul>
<li><a href='https://www.youtube.com/'>/youtube</a></li>
<li><a href='https://www.netflix.com/'>/netflix</a></li>
<li><a href='https://www.odysee.com/'>/odysee</a></li>
<li><a href='http://192.168.1.7:8084'>/jellyfin</a></li>
</ul>
</div>
<div>
<b>~/reddit</b>
<ul>
<li><a href='https://www.reddit.com/r/unixporn/'>/unixporn</a></li>
<li><a href='https://www.reddit.com/r/linuxmasterrace/'>/linuxmasterrace</a></li>
<li><a href='https://www.reddit.com/r/mechanicalkeyboards/'>/mechkeebs</a></li>
<li><a href='https://www.reddit.com/r/traaaaaaannnnnnnnnns/'>/traa</a></li>
</ul>
</div>
<div>
<b>~/dev</b>
<ul>
<li><a href='https://www.github.com/'>/github</a></li>
<li><a href='https://www.stackoverflow.com/'>/stack-overflow</a></li>
<li><a href='https://www.mankier.com/'>/mankier</a></li>
</ul>
</div>
</div>
<div class='flexbox' style='flex-direction: row; align-items: flex-start; justify-content: space-evenly; width:100%;'>
<div>
<b>~/school</b>
<ul>
<li><a href='https://www.gmail.com/'>/gmail</a></li>
<li><a href='https://classroom.google.com/'>/classroom</a></li>
<li><a href='https://vsps-su.bakalari.cz/baka/login'>/bakalari</a></li>
</ul>
</div>
<div>
<b>~/misc</b>
<ul>
<li><a href='https://www.monkeytype.com/'>/monkeytype</a></li>
<li><a href='https://www.cstimer.net'>/cstimer</a></li>
<li><a href='https://wiki.archlinux.org/'>/archwiki</a></li>
<li><a href='https://distrowatch.com/'>/distrowatch</a></li>
</ul>
</div>
</div>
</nav>
</td>
</tr>
<tr>
<td colspan='2'>
<div class='flexbox search'>
<form onsubmit="return searchDDG()" style='width: 80%;'>
<input type="text" placeholder="Search..." id='search_box'>
<button type="submit"><i class="fas fa-search"></i></button>
</form>
</div>
<div class='flexbox' style='padding: 15px;'>
<div class='colcir' style='background-color:var(--black); '></div>
<div class='colcir' style='background-color:var(--red); '></div>
<div class='colcir' style='background-color:var(--green); '></div>
<div class='colcir' style='background-color:var(--yellow); '></div>
<div class='colcir' style='background-color:var(--blue); '></div>
<div class='colcir' style='background-color:var(--magenta);'></div>
<div class='colcir' style='background-color:var(--cyan); '></div>
<div class='colcir' style='background-color:var(--fg); '></div>
</div>
</td>
</tr>
</table>
</div>
<script>
function startTime() {
const today = new Date();
let hour = today.getHours();
let minute = today.getMinutes();
let day = today.getDate();
let month = today.getMonth();
let year = today.getFullYear();
let weekDay = today.getDay();
let weekDays = [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ];
let months = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ];
let daySuf = numSuf(day);
minute = checkTime(minute);
document.getElementById('clock').innerHTML = hour + "<span class='hl'>:</span>" + minute;
document.getElementById('cal').innerHTML = weekDays[weekDay] + ", " + daySuf + " " + months[month] + " " + year;
setTimeout(startTime, 1000);
}
function numSuf(i) {
if (i > 10 && i < 21) return i + 'th';
switch (i % 10) {
case 1: return i + 'st';
case 2: return i + 'nd';
case 3: return i + 'rd';
default: return i + 'th';
}
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
function searchDDG() {
search_term = document.getElementById('search_box').value;
window.location.href = "https://duckduckgo.com/?q=" + encodeURI(search_term);
return false;
}
</script>
</body>
</html>