-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
156 lines (153 loc) · 6.47 KB
/
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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
</div>
<div class="container-lg py-2 px-5 position-relative d-flex justify-content-center bg-dark">
<script>
var date = new Date();
var year = date.getYear() + 1900;
document.write("<p class='py-0 my-0 text-white-50'>© " + year + " Zwamdurkel </p>")
</script>
</div>
<div id="particles-js"></div>
<div id="particles-overlap"></div>
<script src="/js/particles.js"></script>
<script src="/js/app.js"></script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
<script async>
function enlarge() {
console.log("test");
if ( document.getElementById("files").style.width == "90vw" ) {
document.getElementById("files").classList.remove("files-large");
document.getElementById("files").classList.add("files");
document.getElementById("files").style.width = "100%";
document.getElementById("enlargebtn").classList.add("fa-expand");
document.getElementById("enlargebtn").classList.remove("fa-compress");
var enlarged = "false";
} else {
document.getElementById("files").classList.remove("files");
document.getElementById("files").classList.add("files-large");
document.getElementById("files").style.width = "90vw";
document.getElementById("enlargebtn").classList.remove("fa-expand");
document.getElementById("enlargebtn").classList.add("fa-compress");
var enlarged = "true";
}
localStorage.setItem("enlarged", enlarged);
}
</script>
<script async>
var defaultenlarged = localStorage.getItem("enlarged");
console.log("default enlarged:" + defaultenlarged);
if ( defaultenlarged == "true" ) {
document.getElementById("files").classList.remove("files");
document.getElementById("files").classList.add("files-large");
document.getElementById("files").style.width = "90vw";
document.getElementById("enlargebtn").classList.remove("fa-expand");
document.getElementById("enlargebtn").classList.add("fa-compress");
}
</script>
<script async>
var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/'));
var current = document.getElementById(filename);
var inner = current.innerHTML;
var page = inner.substring(inner.lastIndexOf('> ') + 2) + " | Zwamdurkel";
document.head.innerHTML += "<title>" + page + "</title>";
current.innerHTML += "<span class='sr-only'>(current)</span>";
current.href = "javascript:void(0)";
// Check if page is in dropdown
if (current.classList.contains("in-header") ) {
current.parentElement.classList.add("active");
current.classList.add("font-weight-bold", "text-white");
current.classList.remove("text-primary");
} else {
current.parentElement.parentElement.classList.add("active", "font-weight-bold", "text-white");
current.classList.add("font-weight-bold", "text-primary");
}
</script>
<script async>
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
navbar.style.opacity = 1;
navbar.style.transition = "opacity .25s";
if (filename !== "/") {
navbar.classList.add("shadow");
}
function myFunction() {
console.log(window.pageYOffset);
/*if (window.pageYOffset >= 150 && window.pageYOffset < 300) {
navbar.style.opacity = 0;
navbar.style.transition = "opacity .25s ease 0.125s";
} else if (window.pageYOffset >= 300) {
navbar.classList.add("fixed-top", "vw-100");
navbar.classList.add("shadow");
navbar.style.opacity = 1;
} else {
navbar.classList.remove("fixed-top", "vw-100");
if (filename === "/") {
navbar.classList.remove("shadow");
}
navbar.style.opacity = 1;
navbar.style.transition = "opacity 0s";
}*/
var scrollpos = (document.documentElement.scrollTop / 2) + "px";
//console.log(scrollpos);
document.getElementById("particles-overlap").style.top = scrollpos;
}
</script>
<script async>
function copyString(str) {
var el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style = {position: 'absolute', left: '-9999px'};
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script async>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000000",
"text": "#2fac35"
},
"button": {
"background": "#2fac35",
"text": "#000000"
}
},
"theme": "classic",
"position": "top",
"static": true,
"content": {
"message": "This website uses cookies to ensure you get the best experience on my website."
}
});
</script>
<script async>
(function() {
'use strict';
window.addEventListener('load', function() {
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
</script>
</body>
</html>