-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (74 loc) · 2.85 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
<!DOCTYPE html>
<html>
<head>
<title>Lavisha Andri Serrao</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<header class ="girly-header">
<h1>Coral</h1>
</header>
<nav>
<ul class="navigation">
<li><a href="index.html">Home</a></li>
<li><a href="qualifications.html">Qualifications</a></li>
<li><a href="achievements.html">Achievements</a></li>
<li><a href="hobbies.html">Works</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<main class>
<section class="hero-section">
<div class="hero-content">
<h2>Welcome to My Personal Website!</h2><br><h3>About me</h3>
<p>Hello, I'm Lavisha Andri Serrao. I am a 20 years old tech enthusiast studying in India. I am currently pursuing Engineering in computer science at SJEC. I am a very simple human with simple thoughts and desires with an urge to learn something more each day and be a little better than I was yesterday.I like to listen to people's stories.</p>
<p>Stay tuned for updates and new content!</p>
</div>
<div class="hero-image">
<img src="p311.jpg" alt="Profile Photo">
</div>
</section>
</main>
<footer>
<div class="counter-section">
<div id="visit-count"></div>
<div id="server-time"></div>
</div>
<p>© 2023 Lavisha Andri Serrao</p>
</footer>
<script>
// Retrieve the current visit count from local storage
let visitCount = localStorage.getItem('visitCount');
// Check if visitCount exists in local storage
if (!visitCount) {
// Set initial visit count to 1 if it doesn't exist
visitCount = 1;
} else {
// Increment the visit count if it exists
visitCount = parseInt(visitCount) + 1;
}
// Update the visit count in local storage
localStorage.setItem('visitCount', visitCount);
// Display the visit count on the page
document.getElementById('visit-count').textContent = 'Page visits: ' + visitCount;
</script>
<script>
// Function to update the server time display
function updateServerTime() {
// Retrieve the current server time
var serverTime = new Date();
// Format the server time as a digital clock
var hours = serverTime.getHours().toString().padStart(2, '0');
var minutes = serverTime.getMinutes().toString().padStart(2, '0');
var seconds = serverTime.getSeconds().toString().padStart(2, '0');
var formattedTime = hours + ':' + minutes + ':' + seconds;
// Update the server time display on the page
document.getElementById('server-time').textContent = formattedTime;
}
// Call the updateServerTime() function initially to display the server time immediately
updateServerTime();
// Update the server time display every second (1000 milliseconds)
setInterval(updateServerTime, 1000);
</script>
</body>
</html>