-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
103 lines (85 loc) · 3.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" >
<script src="https://kit.fontawesome.com/f5133033bd.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:100" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="container" id="main-div">
<div id="clock" class="text-center p-5 text-light display-3">0:00:00 PM</div>
<div class="container mt-4 pt-4" id="searchinput" >
<form action="https://duckduckgo.com/" method="GET" class="form-group">
<div class="input-group">
<span class="input-group-btn">
<button id="bttns" class="btn btn-dark" type="button"><i class="fa fa-search"></i></button>
</span>
<input type="text" class="form-control" name="q" placeholder="Duck duck go!" aria-label="Search the web">
<span class="input-group-btn">
<button id="bttns" class="btn btn-dark" type="submit">Go!</button>
</span>
</div>
<small class="form-text text-muted">
Powered by <a href="https://ddg.gg">DuckDuckGo!</a>
</small>
</form>
</div>
<div class="container text-center p-0" id="linksDiv">
<div class="btn-group">
<a class="btn btn-dark" href="https://google.com"><i class="fa-brands fa-google"></i></a>
<a class="btn btn-dark" href="https://youtube.com"><i class="fa-brands fa-youtube"></i></a>
<a class="btn btn-dark" href="https://twitter.com"><i class="fa-brands fa-twitter"></i></a>
<a class="btn btn-dark" href="https://netflix.com" id="netflix"> N </a>
<a class="btn btn-dark" href="https://reddit.com/"><i class="fa-brands fa-reddit"></i></a>
<a class="btn btn-dark" href="https://instagram.com/"><i class="fa-brands fa-instagram"></i></a>
<a class="btn btn-dark" href="https://tumblr.com/"><i class="fa-brands fa-tumblr"></i></a>
<a class="btn btn-dark" href="https://twitch.tv"><i class="fa-brands fa-twitch"></i></i></a>
<a class="btn btn-dark" href="https://github.com"><i class="fa-brands fa-github"></i></i></a>
<a class="btn btn-dark" href="https://mail.google.com"><i class="fa-regular fa-envelope"></i></i></a>
<!-- <a class="btn btn-dark" href="https://link.to.something">#Add a icon or an initial here#</a> -->
</div>
</div>
</div>
<script>
function clock(){
//Save the times in variables
var today = new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
//Set the AM or PM time
if (hours >= 12){
meridiem = " PM";
}
else {
meridiem = " AM";
}
//convert hours to 12 hour format and put 0 in front
if (hours>12){
hours = hours - 12;
}
else if (hours===0){
hours = 12;
}
//Put 0 in front of single digit minutes and seconds
if (minutes<10){
minutes = "0" + minutes;
}
else {
minutes = minutes;
}
if (seconds<10){
seconds = "0" + seconds;
}
else {
seconds = seconds;
}
document.getElementById("clock").innerHTML = (hours + ":" + minutes + ":" + seconds + meridiem);
}
setInterval('clock()', 1000);
</script>
</body>
</html>