Sha256: 7779c43fe3a0ae86ad3f7e2b5e53e8c6f3c9c2e6f5b6f2609d1ff58128c4dcca
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
/** * Expand or close the sidebar in mobile screens. */ $(function() { const sidebarUtil = (function () { const ATTR_DISPLAY = "sidebar-display"; let isExpanded = false; const body = $("body"); return { toggle() { if (isExpanded === false) { body.attr(ATTR_DISPLAY, ""); } else { body.removeAttr(ATTR_DISPLAY); } isExpanded = !isExpanded; } }; }()); $("#sidebar-trigger").click(sidebarUtil.toggle); $("#mask").click(sidebarUtil.toggle); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redeyed-jekyll-theme-0.1.2 | _javascript/common/sidebar.js |
redeyed-jekyll-theme-0.1.1 | _javascript/common/sidebar.js |