-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathcounting.html
130 lines (123 loc) · 5.77 KB
/
counting.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="DALL·E 2024-08-28 12.19.31 - A clean and moderately detailed logo for a Sanskrit education website. T.webp">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>मातृबोधः</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="animations.css">
<link rel="stylesheet" href="scontentcss.css">
<link rel="stylesheet" href="counting.css">
<link rel="stylesheet" href="footercss.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
<header>
<nav>
<!-- Wrap the logo text in an anchor tag -->
<a href="index.html" class="logo">मातृबोधः</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="#wisdom">About</a></li>
<li class="dropdown">
<a href="#">Content</a>
<ul class="dropdown-content">
<li><a href="countingpage.html">Counting</a></li>
<li><a href="#">Days</a></li>
<li><a href="#">Activities</a></li>
<li><a href="feedback.html">Feedback</a></li>
</ul>
</li>
<li><a href="login.html">Login</a></li>
<li><a href="#" >Contact</a></li>
</ul>
<div class="toggle-menu">☰</div>
</nav>
</header>
<div class="game-container"></div>
<!-- Lotus buttons will be dynamically added here -->
</div>
<div class="counting">
<h2>Counting Practice</h2>
<p>Practice counting here...</p>
</div>
<footer class="main-footer">
<div class="footer-content">
<div class="footer-section">
<h3>मातृबोधः</h3>
<p>Educating children through India's timeless wisdom and cultural heritage.</p>
<div class="social-links">
<a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank" aria-label="Facebook"><i class="fab fa-facebook"></i></a>
<a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
<a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
<a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank" aria-label="YouTube"><i class="fab fa-youtube"></i></a>
<a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank" aria-label="Linkedin"><i class="fa-brands fa-linkedin-in"></i></a>
</div>
</div>
<div class="footer-section">
<h4>Quick Links</h4>
<ul>
<li><a href="/index.html#hero">Home</a></li>
<li><a href="/index.html#wisdom">About Us</a></li>
<li><a href="/index.html#content">Our Courses</a></li>
<!-- need to add contact page link -->
<li><a href="/index.html#hero">Contact</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Learning Paths</h4>
<ul>
<!-- need to add respective page link -->
<li><a href="countingpage.html">Counting</a></li>
<li><a href="#hero">Days</a></li>
<li><a href="#hero">Activities</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Contact Us</h4>
<ul class="contact-info">
<li><i class="fas fa-envelope"></i> <a href="mailto:info@matrubodhah.edu">info@matrubodhah.edu</a></li>
<li><i class="fas fa-map-marker-alt"></i><span>India</span></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 मातृबोधः. Made with <span class="heart">❤️</span> by <a href="https://github.com/Anjaliavv51/Matrubodhah" target="_blank">@Sakthi</a></p>
</div>
</footer>
<script src="scrollscript.js"></script>
<script src="audio.js"></script>
<script>
const gameContainer = document.querySelector('.game-container');
const blast = document.querySelector('.blast');
function createLotus(number) {
const lotus = document.createElement('div');
lotus.className = 'lotus';
lotus.innerHTML = `
<div class="petal" style="transform: rotate(0deg)"></div>
<div class="petal" style="transform: rotate(72deg)"></div>
<div class="petal" style="transform: rotate(144deg)"></div>
<div class="petal" style="transform: rotate(216deg)"></div>
<div class="petal" style="transform: rotate(288deg)"></div>
${number}
`;
lotus.addEventListener('click', () => {
lotus.classList.add('open');
setTimeout(() => {
blast.classList.add('show');
setTimeout(() => {
blast.classList.remove('show');
lotus.classList.remove('open');
}, 1500);
}, 300);
});
return lotus;
}
for (let i = 1; i <= 10; i++) {
gameContainer.appendChild(createLotus(i));
}
</script>
<script src="index.js"></script>
</body>
</html>