This commit is contained in:
oitsjustjose 2020-02-27 11:56:49 -05:00
commit 13aede1519
5 changed files with 139 additions and 42 deletions

View file

@ -1,18 +1,7 @@
const isMobile = () => {
return window.innerWidth < 767;
};
$(document).ready(() => {
if (isMobile()) {
// alert("'Detected' mobile device; fixing things up");
let titlebars = document.querySelectorAll(".titlebar");
titlebars.forEach((titlebar) => {
// TODO: Auto-convert to mobile-friendly bar
});
}
});
$(document).ready(function () {
$('.dropdown-submenu a.test').on("click", function (e) {
$(this).next('ul').toggle();
e.stopPropagation();
e.preventDefault();
});
});