-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.html
83 lines (72 loc) · 2.49 KB
/
code.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cozmo AI Code</title>
<!-- Link to the CSS file -->
<link rel="stylesheet" href="main.css">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DZ6L7F7JXS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DZ6L7F7JXS');
</script>
<body>
<header>
<h1>Cozmo AI Code</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="features.html">Features</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="contact.html">Contact</a></li>
<li id="installTab" class="hidden"><a href="install.html">How to Install</a></li> <!-- Hidden tab for installation -->
</ul>
</nav>
</header>
<section>
<h2>Cozmo AI Code</h2>
<p>Download the code for Cozmo AI project:</p>
<a href="cozmo_ai_code.zip" download>
<button>Download Code</button>
</a>
</section>
<footer id="contact">
<h3>Contact Us</h3>
<p>If you have any questions or suggestions, feel free to reach out to us via email:</p>
<p>Email: [email protected]</p>
</footer>
<!-- JavaScript for Countdown Timer -->
<script>
// Function to calculate remaining time until target date
function calculateTimeDifference(targetDate) {
var now = new Date();
return targetDate - now;
}
// Function to update the countdown
function updateCountdown() {
var targetDate;
var savedTargetDate = localStorage.getItem('cozmoTargetDate');
if (savedTargetDate) {
targetDate = new Date(savedTargetDate);
} else {
targetDate = new Date();
targetDate.setDate(targetDate.getDate() + 21); // 3 weeks
targetDate.setMinutes(targetDate.getMinutes() + 17); // 17 minutes
targetDate.setDate(targetDate.getDate() + 1); // 1 day
localStorage.setItem('cozmoTargetDate', targetDate);
}
var timeDifference = calculateTimeDifference(targetDate);
if (timeDifference <= 0) {
document.getElementById("installTab").classList.remove("hidden"); // Show install tab
}
}
// Update the countdown when the page loads
updateCountdown();
</script>
</body>
</html>