diff _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
line wrap: on
line diff
--- a/_includes/footer.html	Wed Sep 28 11:30:27 2016 +0200
+++ b/_includes/footer.html	Wed Sep 28 21:51:37 2016 +0200
@@ -13,4 +13,18 @@
     x.className = "topnav";
   }
 }
+
+function openCity(evt, cityName) {
+  var i, tabcontent, tablinks;
+  tabcontent = document.getElementsByClassName("tabcontent");
+  for (i = 0; i < tabcontent.length; i++) {
+    tabcontent[i].style.display = "none";
+  }
+  tablinks = document.getElementsByClassName("tablinks");
+  for (i = 0; i < tablinks.length; i++) {
+    tablinks[i].className = tablinks[i].className.replace(" active", "");
+  }
+  document.getElementById(cityName).style.display = "block";
+  evt.currentTarget.className += " active";
+}
 </script>