From: Anthony Talarico Date: Wed, 23 Mar 2016 16:00:30 +0000 (-0400) Subject: using jquery to create equal height in weather widget and map X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=d578636b88086fdcb61d371f465363c59f30d242;p=WP-Themes%2Fglmthemes%2Fpellstonairport.git using jquery to create equal height in weather widget and map --- diff --git a/footer.php b/footer.php index 14e3427..fa3e38a 100644 --- a/footer.php +++ b/footer.php @@ -1,12 +1,12 @@ -
-
+
+

Local Weather

-
+

Getting Here

-
siteground namecheap
+
siteground namecheap
diff --git a/js/app.js b/js/app.js index d7fd0dc..0aee2dc 100644 --- a/js/app.js +++ b/js/app.js @@ -167,4 +167,6 @@ $(document).ready(function () { }); } }); + $("#embedded-map-display").height($(".wu-wrapper").outerHeight()); + $("#embedded-map-display").find("iframe").height($(".wu-wrapper").outerHeight()); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index aa5ab8d..1ccf9db 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -42,4 +42,6 @@ $(document).ready(function () { }); } }); + $("#embedded-map-display").height($(".wu-wrapper").outerHeight()); + $("#embedded-map-display").find("iframe").height($(".wu-wrapper").outerHeight()); }); diff --git a/scss/_main.scss b/scss/_main.scss index 4ad4303..a2ee9e2 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -58,3 +58,4 @@ main { #weatherWidget{ min-height: 250px; } +