-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
40 lines (32 loc) · 982 Bytes
/
footer.php
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
<?php echo '
<footer>
<!-- <p>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>-->
</footer>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
<script>
var acc = document.getElementsByClassName("clickablerow");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
var win = window.open(this.getAttribute("href"), "_blank");
//window.location = this.getAttribute("href");
});
}
</script>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight){
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
</script>
'
?>