-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (60 loc) · 1.97 KB
/
index.html
File metadata and controls
69 lines (60 loc) · 1.97 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Date Displayer</title>
</head>
<style>
body{
font-family: 'Roboto', sans-serif;
}
button{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-left: 600px;
width: 150px;
height: 50px;
color: black;
background-color: #adcdee;
font-size: 20px;
}
h2{
margin-left: 550px;
color: black;
font-size: 'Roboto', sans-serif;
font-size: 40px;
}
footer{
margin-top: 20px;
text-align: center;
color: black;
font-size: 'Roboto', sans-serif;
font-size: 20px;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<body>
<h2>Date Displayer</h2>
<button id="display">Display Date</button>
<footer>
<span>Follow My Handles</span>
<a href="https://twitter.com/malikobansa">Twitter</a>
<a href="https://www.instagram.com/malikobansa/">Instagram</a>
<a href="https://web.facebook.com/abdulmalikmuhamma/">Facebook</a>
<a href="https://www.linkedin.com/in/muhammad-abdulmalik-0a2226242/">LinkedIn</a>
<a href="https://www.youtube.com/channel/UCGUtnccOmm1h4dmF-l_YHjg">Youtube</a>
<a href="https://github.com/malikobansa">Github</a>
</footer>
</body>
<script>
var display = document.getElementById('display')
display.addEventListener('click', () => {
const date = new Date();
document.write(date);
})
display.style.textAlign="center";
</script>
</html>