-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcc_TributePage.html
66 lines (60 loc) · 2.85 KB
/
cc_TributePage.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
<!DOCTYPE html>
<html>
<head>
<title>Tribute Page</title>
<link rel="stylesheet" href="CSS/cc_TributePage.css">
</head>
<body id="main">
<div class="grid-container">
<div id="img-div">
<img id="image" src="https://image0.uhdpaper.com/wallpaper/bard-lol-splash-art-uhdpaper.com-4K-696.jpg"><p id="img-caption">A splash image of Bard</p>
</div>
<div id="title">Bard Page</div>
<div id="tribute-info">BARD IS COOL HE FIGHTS HALO AND DOSENT AFRAID OF ANYTHING</div>
<div class="title"><a id="tribute-link" target="_blank" href="">Link button</a>></div>
</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>Tribute Page</h4>
<p>A tribute page created for the FCC Responsive Web Design Course. of the best champion in Leauge of legends<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>
<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>
</body>