console.log('PHP: {"ostrovok":"https:\/\/ostrovok.ru\/hotel\/russia\/moscow\/mid7788792\/gostinitsa_moskomsporta\/","booking":"https:\/\/www.booking.com\/hotel\/ru\/dd-d1-4d-d1-2d-nnnddegnd-d2d1-2d3-4-d3d3-4nnd-d1-2d-nd1-2nd1-dod3-4nd-nn-ddddps-d-d-d3-4nnd-d2d1-2d3-4-d-dud-ddegd3d3-4d3d-ndundod3-4d3d3-4-dod3-4d-d-dud-dpddeg-dd3-4ndod3-4d1-4nd-d3-4nnddeg.ru.html","oktogo":"http:\/\/oktogo.ru\/gostinica-moskomsporta-moskva\/","trivago":"https:\/\/www.trivago.ru\/%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0-86737\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C\/%D0%B3%D0%BE%D1%81%D1%82%D0%B8%D0%BD%D0%B8%D1%86%D0%B0-%D0%BC%D0%BE%D1%81%D0%BA%D0%BE%D0%BC%D1%81%D0%BF%D0%BE%D1%80%D1%82%D0%B0--473576"}');console.log('PHP: h');$('#topad').html("
Найти лучшую цену на гостиницу на Booking.com
");jQuery.getScript("http://sopt.ru/pimcore/static/js/frontend/geoip.js/", function(){ //alert(pimcore["location"]); }); $( "#searchprices" ).click(function() { if (typeof metrikaCounter != "undefined") {metrikaCounter.reachGoal('bookingbuttonclick');} $.get( "http://sopt.ru/offers-notify.php?host=" ); var mainlink="h"; var checkin_date=jQuery("#dateFrom").val(); var checkout_date=jQuery("#dateTo").val(); mainlink=mainlink.replace("CHECKINDAY", checkin_date.split(".")[0]); mainlink=mainlink.replace("CHECKINMONTH", checkin_date.split(".")[1]); mainlink=mainlink.replace("CHECKINYEAR", checkin_date.split(".")[2]); mainlink=mainlink.replace("CHECKOUTDAY", checkout_date.split(".")[0]); mainlink=mainlink.replace("CHECKOUTMONTH", checkout_date.split(".")[1]); mainlink=mainlink.replace("CHECKOUTYEAR", checkout_date.split(".")[2]); window.open(mainlink, 'booking', 'window settings'); var secoundlink="h"; secoundlink=secoundlink.replace("CHECKINDAY", checkin_date.split(".")[0]); secoundlink=secoundlink.replace("CHECKINMONTH", checkin_date.split(".")[1]); secoundlink=secoundlink.replace("CHECKINYEAR", checkin_date.split(".")[2]); secoundlink=secoundlink.replace("CHECKOUTDAY", checkout_date.split(".")[0]); secoundlink=secoundlink.replace("CHECKOUTMONTH", checkout_date.split(".")[1]); secoundlink=secoundlink.replace("CHECKOUTYEAR", checkout_date.split(".")[2]); window.location = secoundlink; return false; });