|
|
@@ -1,14 +1,9 @@
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
- function checkMQ() {
|
|
|
- //check if mobile or desktop device
|
|
|
- return window.getComputedStyle(document.querySelector('.cd-main-content'), '::before').getPropertyValue('content').replace(/'/g, "").replace(/"/g, "");
|
|
|
- }
|
|
|
-
|
|
|
$(document).ready(function () {
|
|
|
- var mq = checkMQ();
|
|
|
- if (mq != 'mobile')
|
|
|
- $("#bx-logo-container").prependTo("#bx-sliding-menu-sys_site .bx-sliding-menu-main-cnt");
|
|
|
-
|
|
|
+ var mq = bx_check_mq();
|
|
|
+ if (mq != 'mobile')
|
|
|
+ $("#bx-logo-container").prependTo("#bx-sliding-menu-sys_site .bx-sliding-menu-main-cnt");
|
|
|
+
|
|
|
if(mq == 'mobile') {
|
|
|
// hide toolbar on scrolldown, show - on scroll up
|
|
|
new Headroom($('#bx-toolbar').get(0), {
|
|
|
@@ -28,7 +23,6 @@
|
|
|
var sidebar = $('.cd-side-nav');
|
|
|
if(sidebar.hasClass('nav-is-visible'))
|
|
|
sidebar.toggleClass('nav-is-visible');
|
|
|
-
|
|
|
}
|
|
|
}).init();
|
|
|
}
|