-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcc_LandingPage.html
77 lines (73 loc) · 3.17 KB
/
cc_LandingPage.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
<!DOCTYPE html>
<html>
<head>
<title>Experience Rads</title>
<link rel="stylesheet" href="CSS/cc_LandingPage.css">
</head>
<body>
<header id="header">
<img id="header-img" src="/Images/ER logo.gif" >
<nav id="nav-bar">
<a class="nav-link" href="#video-div">Video</a>
<a class="nav-link" href="#form">Form</a>
<a class="nav-link" href="#content">Content</a>
</nav>
</header>
<div id="video-div">
<video id="video" src="/Video/Gordon Ramsay Masterclass Episode 1 _ Breaking Down A Whole Fish.mp4"></video>
</div>
<h3>Video of product</h3>
<div id="content"></div>
<div id="form-container">
<form id="form"action="">
<label for="email">if you would like to know more <br> please enter your email here:</label><br>
<input id="email" type="email" name="email" placeholder="[email protected]"><br>
<input id="submit" type="submit" value="submit">
</form>
</div>
<!-- Start of Button w/ Modal Component -->
<button id="myBtn">Site<br>Info</button>
<div id="myModal" class="modal">
<div class="modal-content"> <!-- Modal content -->
<span class="close">×</span>
<h4>Landing Page</h4>
<p>A Landing Page I made for the FCC Responsive Website Design Course.<br> Code: HTML, CSS and JavaScript (Only for this button so far).<br> Hosting: nginx.<br> Misc: Git, GitHub.<br>Last Updated: 14/07/2020. </p>
</div>
</div>
<!-- End of Button w/ Modal Component -->
<footer id="ER-footer">
<h6 id="ER-footer-header">experience<strong>Rads</strong> network</h6>
<div id="ER-footer-div">
<a class="ER-footer-link" href="index.nginx-debian.html">experienceRads</a>
<a class="ER-footer-link" href="cc_Portfolio.html">Jai's Portfolio</a>
<a class="ER-footer-link" href="cc_TechnicalPage.html">Technical Page</a>
<a class="ER-footer-link" href="cc_LandingPage.html">Landing Page</a>
<a class="ER-footer-link" href="cc_Survey.html">Survey Form</a>
<a class="ER-footer-link" href="cc_TributePage.html">TributePage</a>
</div>
</footer>
</body>
<script>
// Start of Button w/ Modal component
// Get the modal
var modal = document.getElementById("myModal");
// Get the button that opens the modal
var btn = document.getElementById("myBtn");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks the button, open the modal
btn.onclick = function() {
modal.style.display = "block";
}
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}}
// End of Button w/ Modal component
</script>
</html>