console.log('PHP: {"ostrovok":"https:\/\/ostrovok.ru\/hotel\/russia\/st._petersburg\/mid7842297\/motel\/","booking":"https:\/\/www.booking.com\/hotel\/ru\/m.ru.html","oktogo":"http:\/\/oktogo.ru\/gostinica-m-otel-sankt-peterburg\/","trivago":"https:\/\/www.trivago.ru\/%D1%81%D0%B0%D0%BD%D0%BA%D1%82-%D0%BF%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3-86676\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C\/%D0%BE%D1%82%D0%B5%D0%BB%D1%8C-%22%D0%BC-%D0%BE%D1%82%D0%B5%D0%BB%D1%8C%22-1436582"}');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; });