forked from SIH2024heritage/Melodies-of-India
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
42 lines (32 loc) · 1.18 KB
/
main.js
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
import "./base.css";
import './style.css';
import app from './app'
app();
document.querySelector('.button-74').addEventListener('click', sayAlert);
document.querySelector('.navbar a:nth-child(3)').addEventListener('click', sayAlert);
document.querySelector('.navbar a:nth-child(2)').addEventListener('click', sayAlert);
document.querySelector('.navbar a:nth-child(1)').addEventListener('click', sayAlert);
document.querySelector('.navbar a:nth-child(4)').addEventListener('click', sayAlert);
function sayAlert() {
alert("work in progress");
console.log("hiii");
}
function redirect() {
// Redirects to the second HTML page
window.location.href = "reviews.html";
}
// document.getElementById("intro-link").addEventListener("click", function (e) {
// e.preventDefault();
// document.getElementById("page2").scrollIntoView({
// behavior: "smooth",
// });
// });
// document.getElementById("intro-link").addEventListener("click", function (e) {
// e.preventDefault();
// const page2 = document.getElementById("page2");
// const offset = 100;
// window.scrollTo({
// top: page2.offsetTop - offset,
// behavior: "smooth"
// });
// });