From: Anthony Talarico Date: Mon, 21 Mar 2016 20:54:49 +0000 (-0400) Subject: adjusting map position and making it responsive X-Git-Tag: v1.0.0^2~25 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=333d5803e74336f505fec6f5c0498a0f30feb145;p=WP-Themes%2Fcamppetosega.git adjusting map position and making it responsive --- 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 @@
+