<?php glm_page_menu(); ?>
</aside>
<aside class="right-off-canvas-menu">
- <div style="padding: 15px;">
+ <div id="gg-open-table-mobile-container" style="padding: 15px;">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Off-Right Sidebar')) : ?>
<?php dynamic_sidebar( 'off_right_sidebar' ); ?>
<?php endif; ?>
</head>
<body>
<div class="off-canvas-wrap" data-offcanvas>
- <div class="inner-wrap">
+ <div class="inner-wrap">
<header>
<div class="row">
<div class="show-for-medium-up medium-2 large-1 columns">
</ul>
</aside>
<aside class="right-off-canvas-menu">
-
+
</aside>
<div class="row collapse" id="expanded">
<div class="show-for-medium-up medium-3 large-offset-1 large-2 columns">
</div>
</footer>
</div>
- </div>
+ </div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/foundation/js/foundation.min.js"></script>
<script src="js/app.js"></script>
$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
+ // need to move the widget for open table from the sidebar to the right off
+ // canvas nav when going to mobile.
+ $(window).on('resize', Foundation.utils.throttle(function(e){
+ // Do responsive stuff
+ var isSmall = Foundation.utils.is_small_only();
+ if (isSmall) {
+ $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container');
+ console.log('small');
+ } else {
+ $("#gg-open-table-container").detach().appendTo('#primary-sidebar');
+ console.log('not small');
+ }
+ }, 900));
});
\ No newline at end of file
$(this).toggleClass('open');
$(this).siblings('ul').toggleClass('open');
});
+ // need to move the widget for open table from the sidebar to the right off
+ // canvas nav when going to mobile.
+ $(window).on('resize', Foundation.utils.throttle(function(e){
+ // Do responsive stuff
+ var isSmall = Foundation.utils.is_small_only();
+ if (isSmall) {
+ $("#gg-open-table-container").detach().appendTo('#gg-open-table-mobile-container');
+ console.log('small');
+ } else {
+ $("#gg-open-table-container").detach().appendTo('#primary-sidebar');
+ console.log('not small');
+ }
+ }, 900));
});
\ No newline at end of file