From e9161a0cac063ac8be7dfb2afe7b58ddaee10393 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 2 Jan 2015 09:28:39 -0500 Subject: [PATCH] Update from dos to unix files and adding better support for open table Moving the widget for OpenTable from main area to the mobile area on resize. --- header.php | 2 +- interior.html | 6 +++--- js/app.js | 13 +++++++++++++ js/custom/pageSetup.js | 13 +++++++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/header.php b/header.php index 4c85dcd..11608ab 100755 --- a/header.php +++ b/header.php @@ -46,7 +46,7 @@
@@ -98,7 +98,7 @@
- + diff --git a/js/app.js b/js/app.js index c962076..7277098 100755 --- a/js/app.js +++ b/js/app.js @@ -17,4 +17,17 @@ $(document).ready(function () { $(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 diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index eb80746..a51644a 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -9,4 +9,17 @@ $(document).ready(function () { $(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 -- 2.17.1