我的切换导航菜单正在处理桌面视图,但是当我在移动视图上运行此演示时,它无法正常工作。
请找到网址:http://dev.genuusdemo.com/msite/index1.html
请找到这个代码:
脚本:
<script type="text/javascript">
$(function() {
$('#gx-sidemenu').gxSideMenu({
mode: isMobile.any() ? 'tiny' : 'normal', // normal | tiny
interval: 300, // animations' interval
direction: 'left', // left | right
openOnHover: false, // true | false
clickTrigger: true, // true | false
followURLs: true, // true | false
trigger: ".gx-menu-open.list", // class or id of trigger element
startFrom: 60, // start pixel from corner on hover trigger
startClosed: true, // menu opens on document load
scrolling: true, // menu scrollable (iScroll plugin needed!)
urlBase: '/sidemenu/', // document base URL
backText: 'Prev | Back', // Back button text
onOpen: function() { }, // Open callback
onClose: function() { } // Close callback
});
$('pre.snippet').snippet("javascript", { style: 'ide-kdev' });
$('pre.snippet-html').snippet("html", { style: 'ide-kdev' });
});
</script>