-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvanced.html
87 lines (87 loc) · 2.57 KB
/
advanced.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Homepage</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: black;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
background-image: url('https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif');
background-size: cover;
}
.container {
max-width: 800px;
padding: 20px;
background: rgba(0, 0, 0, 0.7);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
h1 {
font-size: 3em;
margin-bottom: 20px;
}
p {
font-size: 1.2em;
margin-bottom: 40px;
}
a {
color: #1abc9c;
text-decoration: none;
font-size: 1.2em;
margin: 0 10px;
transition: color 0.3s;
}
a:hover {
color: #16a085;
}
.search-bar {
margin: 20px 0;
}
.clock {
font-size: 1.5em;
margin-top: 20px;
}
</style>
<script>
function updateClock() {
const clockElement = document.getElementById('clock');
const now = new Date();
clockElement.textContent = now.toLocaleTimeString();
}
setInterval(updateClock, 1000);
</script>
</head>
<body>
<div class="container">
<h1>Welcome to Your Advanced Homepage</h1>
<p>Here are some quick links to get you started:</p>
<div>
<a href="https://www.google.com">Google</a>
<a href="https://www.facebook.com">Facebook</a>
<a href="https://www.twitter.com">Twitter</a>
</div>
<div class="search-bar">
<input type="text" id="search" placeholder="Search...">
<button onclick="search()">Go</button>
</div>
<div id="clock" class="clock"></div>
</div>
<script>
function search() {
const query = document.getElementById('search').value;
window.location.href = 'https://www.google.com/search?q=' + query;
}
updateClock();
</script>
</body>
</html>