Created
August 19, 2019 16:07
-
-
Save jbd91/a38f8e21b608c552fb9eb7d5e1225634 to your computer and use it in GitHub Desktop.
Detect Query String and append to iframe src Solution 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($("body").hasClass("page-id-3421")) { | |
if (document.location.search.length) { | |
document.getElementById('impactMap').src = 'https://www.abodo.com/search-widget?' + window.location.search; | |
} else { | |
document.getElementById('impactMap').src = 'https://www.abodo.com/search-widget'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment