Skip to content

Instantly share code, notes, and snippets.

@josephhinson
Last active January 7, 2018 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephhinson/d7b8c5b8869d66241235cc2bee54ece6 to your computer and use it in GitHub Desktop.
Save josephhinson/d7b8c5b8869d66241235cc2bee54ece6 to your computer and use it in GitHub Desktop.
Search Campendium
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