annotate _includes/footer.html @ 51:40cbddf42ce4 kai

Repair download tabs.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Wed, 28 Sep 2016 21:51:37 +0200
parents 171ca967fcc9
children 2e2e9feba1f3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
1 <footer>
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
2 Copyright © 1998-2016 John W. Eaton.
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
3 Verbatim copying and distribution is permitted in any medium,
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
4 provided this notice is preserved.
5
e210b708b330 fill in site content
Alex Krolick <whokilledtheelectricmonk@gmail.com>
parents: 0
diff changeset
5 </footer>
0
7abe02bf29ec initial commit
Alex Krolick <whokilledtheelectricmonk@gmail.com>
parents:
diff changeset
6
5
e210b708b330 fill in site content
Alex Krolick <whokilledtheelectricmonk@gmail.com>
parents: 0
diff changeset
7 <script>
46
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
8 function myFunction() {
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
9 var x = document.getElementById("myTopnav");
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
10 if (x.className === "topnav") {
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
11 x.className += " responsive";
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
12 } else {
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
13 x.className = "topnav";
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
14 }
171ca967fcc9 Start new development branch closer to the current website,
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 35
diff changeset
15 }
51
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
16
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
17 function openCity(evt, cityName) {
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
18 var i, tabcontent, tablinks;
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
19 tabcontent = document.getElementsByClassName("tabcontent");
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
20 for (i = 0; i < tabcontent.length; i++) {
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
21 tabcontent[i].style.display = "none";
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
22 }
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
23 tablinks = document.getElementsByClassName("tablinks");
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
24 for (i = 0; i < tablinks.length; i++) {
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
25 tablinks[i].className = tablinks[i].className.replace(" active", "");
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
26 }
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
27 document.getElementById(cityName).style.display = "block";
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
28 evt.currentTarget.className += " active";
40cbddf42ce4 Repair download tabs.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents: 46
diff changeset
29 }
5
e210b708b330 fill in site content
Alex Krolick <whokilledtheelectricmonk@gmail.com>
parents: 0
diff changeset
30 </script>