-
Notifications
You must be signed in to change notification settings - Fork 0
/
Screen3.html
95 lines (82 loc) · 3.36 KB
/
Screen3.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
<!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 - Categories</title>
<link rel="stylesheet" href="s3.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="Screen2.html">
<h1>movieto</h1>
</a>
</div>
</div>
<h3>Which type ?</h3>
<!-- content -->
<div class="content">
<div class="card" id="Movies">
<div class="wrapper">
<img src="Images/dark_rider-cover.jpg" alt=""
class='cover-image'>
</div>
<button type="submit" class='title'><img src="Images/movies-logo.png" alt=""></button>
<img src="Images/dark_rider-hover-img.webp" alt=""
class="character">
</div>
<div class="card" id="Web Series">
<div class="wrapper">
<img src="Images/vampire-bg-img_cleanup.jpg" alt="" class='cover-image'>
</div>
<button type="submit" class='title'><img src="Images/webseries-logo.png" alt=""></button>
<img src="Images/vampire-hover-img.png" alt="" class="character">
</div>
<div class="card" id="All">
<div class="wrapper">
<img src="Images/thor-categories-bg.jpg" alt="" class='cover-image'>
</div>
<button type="submit" class='title'><img src="Images/Both-logo.png" alt=""></button>
<img src="Images/thor-hover-bg.webp" alt="" class="character">
</div>
</div>
<!-- footer -->
<div class="footer">
<!-- <a href="Screen4.html">Next<i class="fa-solid fa-arrow-right"></i></a> -->
</div>
</div>
</body>
<script>
// Get all the div elements by class name
var divs = document.getElementsByClassName("card");
// Add an event listener to each div
for (var i = 0; i < divs.length; i++) {
divs[i].addEventListener("click", function(event) {
// Get the ID of the button that was clicked
var buttonId = event.currentTarget.id;
console.log("Button clicked in div with ID: " + event.currentTarget.id);
//redirect to the new screen.
window.location.href = "Screen4.html";
});
}
// Export the JavaScript
module.exports = {
type: "buttonId"
}
</script>
</html>