From 333d5803e74336f505fec6f5c0498a0f30feb145 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 21 Mar 2016 16:54:49 -0400 Subject: [PATCH] adjusting map position and making it responsive --- footer.php | 6 ++++-- js/app.js | 35 +++++++++++++++++++---------------- js/custom/pageSetup.js | 35 +++++++++++++++++++---------------- parts/client-info-footer.php | 12 ++++++++---- 4 files changed, 50 insertions(+), 38 deletions(-) diff --git a/footer.php b/footer.php index 138a01a..bbfe75a 100644 --- a/footer.php +++ b/footer.php @@ -44,8 +44,10 @@
-
- +
+ + +
diff --git a/js/app.js b/js/app.js index d940b98..f8582c8 100644 --- a/js/app.js +++ b/js/app.js @@ -30,24 +30,27 @@ $(document).ready(function () { //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); }); - var toggleSitelist = true; - $('#emmet').on('click',function(e) { + var toggleSitelist = true; + $('#emmet').on('click',function(e) { // var footerPosition = get_footer_position(); - var footerPosition = 'fixed'; - if (footerPosition === 'fixed') { - if (toggleSitelist) { - $("#sitelist").animate({'height': 53}, 600); - toggleSitelist = false; - } else { + var footerPosition = 'fixed'; + if (footerPosition === 'fixed') { + if (toggleSitelist) { + $("#sitelist").animate({'height': 53}, 600); + toggleSitelist = false; + } else { + $("#sitelist").animate({'height': 0}, 600); + toggleSitelist = true; + } + $('#connect').bind('mouseleave', function () { + if (!toggleSitelist) { $("#sitelist").animate({'height': 0}, 600); toggleSitelist = true; } - $('#connect').bind('mouseleave', function () { - if (!toggleSitelist) { - $("#sitelist").animate({'height': 0}, 600); - toggleSitelist = true; - } - }); - } - }); + }); + } + }); + + var iframe = $("#main-content").children("p").find('iframe'); + iframe.css("display", "block").css("max-width", "100%").css("margin", "0 auto"); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index bc0753e..c1b171d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -21,24 +21,27 @@ $(document).ready(function () { //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); }); - var toggleSitelist = true; - $('#emmet').on('click',function(e) { + var toggleSitelist = true; + $('#emmet').on('click',function(e) { // var footerPosition = get_footer_position(); - var footerPosition = 'fixed'; - if (footerPosition === 'fixed') { - if (toggleSitelist) { - $("#sitelist").animate({'height': 53}, 600); - toggleSitelist = false; - } else { + var footerPosition = 'fixed'; + if (footerPosition === 'fixed') { + if (toggleSitelist) { + $("#sitelist").animate({'height': 53}, 600); + toggleSitelist = false; + } else { + $("#sitelist").animate({'height': 0}, 600); + toggleSitelist = true; + } + $('#connect').bind('mouseleave', function () { + if (!toggleSitelist) { $("#sitelist").animate({'height': 0}, 600); toggleSitelist = true; } - $('#connect').bind('mouseleave', function () { - if (!toggleSitelist) { - $("#sitelist").animate({'height': 0}, 600); - toggleSitelist = true; - } - }); - } - }); + }); + } + }); + + var iframe = $("#main-content").children("p").find('iframe'); + iframe.css("display", "block").css("max-width", "100%").css("margin", "0 auto"); }); diff --git a/parts/client-info-footer.php b/parts/client-info-footer.php index 7ba5b36..6c302eb 100644 --- a/parts/client-info-footer.php +++ b/parts/client-info-footer.php @@ -1,6 +1,7 @@ @@ -21,11 +23,12 @@
-
-
+ +
+
-
+
@@ -34,6 +37,7 @@
+ -- 2.17.1