summaryrefslogtreecommitdiff
path: root/assets/js/irssi.js
blob: eb088aa142044d4bd23989a20ad121249cc1f91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
});