function switchcontainermaps(){ $('.zweiklickgoogle').after('
'); $('.zweiklickgoogle').remove(); loadpaketshopsuche(); } $(document).ready(function(){ $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } } $('button[data-loadfinder]').click(function(){ switchcontainermaps(); days=90; var d = new Date; d.setTime(d.getTime() + 24*60*60*1000*days); document.cookie = "googlemapsok=1; expires=" + d.toGMTString() + ";"; }) if (document.cookie.split(';').some(function(item) { return item.trim().indexOf('googlemapsok=') == 0 })) { switchcontainermaps(); } else{ $('.zweiklickgoogle').css('display','block'); } }); function loadpaketshopsuche(){ $(window).bind("hermespsf-searchBox_loaded", function () { $("#head").append(window.hermes.parcelshop.searchBoxElement); $('input[name="city"]').attr('id','adresseingabeinput'); //Create the label element $('