summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/css/style.css8
-rw-r--r--assets/js/irssi.js13
2 files changed, 8 insertions, 13 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 7076744..6630f58 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -44,6 +44,14 @@ p.center {
text-align: center;
}
+/* collapsible navbar css */
+#navbar-toggle-cbox {
+ display: none;
+}
+#navbar-toggle-cbox:checked ~ .collapse {
+ display: block;
+}
+
/* center buttons in xs view */
@media (max-width: 767px) {
.jumbotron .col-xs-11 p {
diff --git a/assets/js/irssi.js b/assets/js/irssi.js
index 429774c..18a82c5 100644
--- a/assets/js/irssi.js
+++ b/assets/js/irssi.js
@@ -1,16 +1,3 @@
-function initMenu() {
- 'use strict';
- var toggle = document.getElementById("navbar-toggle"),
- menu = document.getElementById("navbar");
- toggle.addEventListener('click', function (event) {
- menu.classList.toggle("in");
- });
-}
-
-document.addEventListener("DOMContentLoaded", function(event) {
- initMenu();
-});
-
// http://stackoverflow.com/a/34003331
if (Element.prototype.scrollIntoView && !Element.prototype.scrollIntoViewIfNeeded) {
Element.prototype.scrollIntoViewIfNeeded = function (centerIfNeeded) {