Update from dos to unix files and adding better support for open table
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Jan 2015 14:28:39 +0000 (09:28 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Jan 2015 14:28:39 +0000 (09:28 -0500)
Moving the widget for OpenTable from main area to the mobile area on
resize.

header.php
interior.html
js/app.js
js/custom/pageSetup.js

index 4c85dcd..11608ab 100755 (executable)
@@ -46,7 +46,7 @@
                     <?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; ?>
index 97d72b9..395e431 100755 (executable)
@@ -9,7 +9,7 @@
   </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">
@@ -50,7 +50,7 @@
                     </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">
@@ -98,7 +98,7 @@
                 </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>
index c962076..7277098 100755 (executable)
--- 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
index eb80746..a51644a 100644 (file)
@@ -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