summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/footer.html3
-rw-r--r--_includes/header.html2
-rw-r--r--assets/js/irssi.js15
3 files changed, 17 insertions, 3 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index 977b78f..2cdbf6f 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -7,5 +7,4 @@
</p>
</div>
</footer>
-<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
-<script src="/assets/js/bootstrap.min.js"></script>
+<script src="/assets/js/irssi.js"></script>
diff --git a/_includes/header.html b/_includes/header.html
index 3f50832..8f49adb 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -1,7 +1,7 @@
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+ <button type="button" class="navbar-toggle" id="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
diff --git a/assets/js/irssi.js b/assets/js/irssi.js
new file mode 100644
index 0000000..b892254
--- /dev/null
+++ b/assets/js/irssi.js
@@ -0,0 +1,15 @@
+function initMenu() {
+ 'use strict';
+ var toggle = document.getElementById("navbar-toggle"),
+ menu = document.getElementById("navbar");
+ // IE9+
+ toggle.addEventListener('click', function () {
+ // IE10+
+ menu.classList.toggle("collapse");
+ });
+};
+
+// IE9+
+document.addEventListener("DOMContentLoaded", function(event) {
+ initMenu();
+});