-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreen2.html
76 lines (66 loc) · 2.72 KB
/
Screen2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movieto - Languages</title>
<link rel="stylesheet" href="s2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Marcellus&display=swap" rel="stylesheet">
<!-- title logo -->
<link rel="icon" type="image/png" href="images/play.png">
</head>
<body>
<div class="start">
<!-- top header -->
<div class="header">
<div class="top_logo">
<img src="Images/play.png" alt="">
</div>
<div class="top_heading">
<a href="index.html">
<h1>movieto</h1>
</a>
</div>
</div>
<!-- language buttons -->
<h3>Language Preference</h3>
<div class="frame">
<button type="submit" class="custom-btn btn-1" id="English">ENGLISH</button>
<button type="submit" class="custom-btn btn-1" id="Hindi">HINDI</button>
<button type="submit" class="custom-btn btn-1" id="Punjabi">PUNJABI</button>
<button type="submit" class="custom-btn btn-1" id="Tamil">TAMIL</button>
<button type="submit" class="custom-btn btn-1" id="Telugu">TELUGU</button>
<button type="submit" class="custom-btn btn-1" id="Marathi">MARATHI</button>
<button type="submit" class="custom-btn btn-1" id="All">ALL</button>
</div>
<!-- <button class="custom-btn btn-7">ALL</button> -->
<!-- footer -->
<div class="footer">
</div>
</div>
</body>
<script>
// Get all the button elements by class name
var buttons = document.getElementsByClassName("custom-btn btn-1");
// Add an event listener to each button
for (var i = 0; i < buttons.length; i++) {
buttons[i].addEventListener("click", function(event) {
// Get the ID of the button that was clicked
var language = event.target.id;
console.log("Button clicked: " + language);
//redirect to the new screen.
window.location.href = "Screen3.html";
});
}
// Export the JavaScript
module.exports = {
language: "World"
}
</script>
</html>