From d578636b88086fdcb61d371f465363c59f30d242 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 23 Mar 2016 12:00:30 -0400 Subject: [PATCH] using jquery to create equal height in weather widget and map --- footer.php | 8 ++++---- js/app.js | 2 ++ js/custom/pageSetup.js | 2 ++ scss/_main.scss | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) 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; } + -- 2.17.1