console.log('PHP: {"ostrovok":"https:\/\/ostrovok.ru\/hotel\/russia\/moscow\/mid7597493\/korston_hotel_moscow\/","booking":"https:\/\/www.booking.com\/hotel\/ru\/korston-casino.ru.html","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%BE%D1%82%D0%B5%D0%BB%D1%8C-%D0%BA%D0%BE%D1%80%D1%81%D1%82%D0%BE%D0%BD-%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0-149466"}');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; });