aboutsummaryrefslogtreecommitdiff
path: root/_includes/footer.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/footer.html')
-rw-r--r--_includes/footer.html78
1 files changed, 39 insertions, 39 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index 7a4c478..9d95bac 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,59 +1,59 @@
1<!-- Global site tag (gtag.js) - Google Analytics --> 1<!-- Global site tag (gtag.js) - Google Analytics -->
2<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12769079-10"></script> 2<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12769079-10"></script>
3<script> 3<script>
4 window.dataLayer = window.dataLayer || []; 4 window.dataLayer = window.dataLayer || [];
5 function gtag(){dataLayer.push(arguments);} 5 function gtag() {
6 gtag('js', new Date()); 6 dataLayer.push(arguments);
7 gtag('config', 'UA-12769079-10'); 7 }
8 gtag('js', new Date());
9 gtag('config', 'UA-12769079-10');
8</script> 10</script>
9 11
10<!-- Responsive tables --> 12<!-- Responsive tables -->
11<script> 13<script>
12 document.querySelectorAll('table').forEach(function(element) { 14 document.querySelectorAll('table').forEach(function(element) {
13 if (!element.classList.contains('rouge-table')) { 15 if (!element.classList.contains('rouge-table')) {
14 let parent = element.parentNode; 16 let parent = element.parentNode;
15 let wrapper = document.createElement('div'); 17 let wrapper = document.createElement('div');
16 wrapper.classList.add('responsive-table'); 18 wrapper.classList.add('responsive-table');
17 parent.replaceChild(wrapper, element); 19 parent.replaceChild(wrapper, element);
18 wrapper.appendChild(element); 20 wrapper.appendChild(element);
19 } 21 }
20 }); 22 });
21</script> 23</script>
22 24
23<!-- Open external links in new tab --> 25<!-- Open external links in new tab -->
24<script> 26<script>
25 let links = document.links; 27 let links = document.links;
26 for (let i = 0, linksLength = links.length; i < linksLength; i++) { 28 for (let i = 0, linksLength = links.length; i < linksLength; i++) {
27 if (links[i].hostname != window.location.hostname) { 29 if (links[i].hostname != window.location.hostname) {
28 links[i].target = '_blank'; 30 links[i].target = '_blank';
29 links[i].setAttribute('rel', 'noopener'); 31 links[i].setAttribute('rel', 'noopener');
30 } 32 }
31 } 33 }
32</script> 34</script>
33 35
34<!-- Linked data - Social profile --> 36<!-- Linked data - Social profile -->
35<script type="application/ld+json"> 37<script type="application/ld+json">
36{ 38 {
37 "@context": "http://schema.org", 39 "@context": "http://schema.org",
38 "@type": "Person", 40 "@type": "Person",
39 "name": "Mitja Felicijan", 41 "name": "Mitja Felicijan",
40 "jobTitle": "Embedded systems developer", 42 "jobTitle": "Embedded systems developer",
41 "url": "https://mitjafelicijan.com", 43 "url": "https://mitjafelicijan.com",
42 "sameAs": [ 44 "sameAs": [
43 "https://github.com/mitjafelicijan", 45 "https://github.com/mitjafelicijan",
44 "https://twitter.com/mitjafelicijan", 46 "https://twitter.com/mitjafelicijan",
45 "https://plus.google.com/+MitjaFelicijan" 47 "https://plus.google.com/+MitjaFelicijan"
46 ] 48 ]
47} 49 }
48</script> 50</script>
49 51
50<!-- Service worker --> 52<!-- Service worker -->
51<script> 53<script>
52 if('serviceWorker' in navigator) { 54 if ('serviceWorker' in navigator) {
53 navigator.serviceWorker 55 navigator.serviceWorker.register('/sw.js').then(function() {
54 .register('/sw.js') 56 console.log('Service Worker Registered');
55 .then(function() { 57 });
56 console.log('Service Worker Registered'); 58 }
57 });
58 }
59</script> 59</script>