-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.html
36 lines (31 loc) · 1.72 KB
/
footer.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
<div class="footer-content container">
<div class="social-icons" style="float: left">
<a href="https://www.facebook.com/princetonscioly" target="_blank" style="font-size: 20px;"><i class="fa fa-facebook-square" aria-hidden="true"></i> </a>
<a href="https://www.instagram.com/princetonscioly" target="_blank" style="font-size: 20px;"><i class="fa fa-instagram" aria-hidden="true"></i> </a>
<a href="https://www.twitter.com/princetonscioly" target="_blank" style="font-size: 20px;"><i class="fa fa-twitter-square" aria-hidden="true"></i></a>
<a id="hidden-icon" href="mailto:[email protected]" style="font-size: 20px; display:none"><i class="fa fa-envelope-square" aria-hidden="true"></i></a>
</div>
<div id="hidden-text" style="margin:0 auto; width: 450px; display: none">
<p>Have questions? Want to sponsor? Contact us at <a href="mailto:[email protected]">[email protected]</a>.</p>
</div>
</div>
<script>
checkSize = function(){
if (window.innerWidth < 624) {
document.querySelector("#hidden-text").style.display = "none";
document.querySelector("#hidden-icon").style.display = "inline-block";
}
else {
document.querySelector("#hidden-text").style.display = "block";
document.querySelector("#hidden-icon").style.display = "none";
}
if (window.innerWidth < 768) {
document.querySelector(".footer, .footer-inverse").style.bottom = "-50px";
}
else {
document.querySelector(".footer, .footer-inverse").style.bottom = "-40px";
}
}
window.addEventListener('load', checkSize);
window.addEventListener('resize', checkSize);
</script>