Last active
January 7, 2018 15:23
-
-
Save josephhinson/d7b8c5b8869d66241235cc2bee54ece6 to your computer and use it in GitHub Desktop.
Search Campendium
This file contains 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
jQuery('body').on('click', '.leaflet-popup-content > div > a:first', function(e) { | |
e.preventDefault(); | |
var t = jQuery(this); | |
var str = t.text(); | |
//alert(tText); | |
var newStr = str.replace(" - Full Details", ""); | |
var urlstr = 'https://www.google.com/search?q=site:campendium.com '; | |
urlstr = urlstr + newStr; | |
window.open(urlstr); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment