ryallos.diamonikalamata.gr
Open in
urlscan Pro
2a01:4f9:2a:10ed::2
Public Scan
Submitted URL: http://ryallos.diamonikalamata.gr/wp-content/plugins/cozystay-core/assets/scripts/front/front-media.min.js?ver=2024033110
Effective URL: https://ryallos.diamonikalamata.gr/wp-content/plugins/cozystay-core/assets/scripts/front/front-media.min.js?ver=2024033110
Submission: On July 07 via api from US — Scanned from FI
Effective URL: https://ryallos.diamonikalamata.gr/wp-content/plugins/cozystay-core/assets/scripts/front/front-media.min.js?ver=2024033110
Submission: On July 07 via api from US — Scanned from FI
Form analysis
0 forms found in the DOMText Content
!function(d){"use strict";var i="devicePixelRatio"in window&&2<=parseInt(window.devicePixelRatio,10)?"data-loftocean-retina-image":"data-loftocean-normal-image",c=d("body").hasClass("rtl"),n=!1,s=!1,t=(d("head"),0);d.fn.loftoceanImageLoading=function(){var a=d(this).add(d(this).find("[data-loftocean-image=1]")).filter("[data-loftocean-image=1]"),e=d(this).add(d(this).find('img[data-loftocean-loading-image="on"]')).filter('img[data-loftocean-loading-image="on"]');return loftoceanImageLoad.lazyLoadEnabled?(a.length&&(n=n&&n.length?n.add(a):a),e.length&&(s=s&&s.length?s.add(e):e),d(window).trigger("startLazyLoad.loftocean")):(a.length&&a.each(function(){var a,e,t=d(this);t.attr("data-loftocean-image")&&(a=t.prop("tagName"),e=t.attr(i),d(new Image).on("load",function(){t.css("transition","none"),"IMG"==a?t.attr("src",e).removeAttr("style"):t.css({"background-image":"url("+e+")",filter:""}),t.css("transition",""),t.removeAttr("data-loftocean-retina-image").removeAttr("data-loftocean-normal-image").removeAttr("data-loftocean-image")}).attr("src",e))}),e.length&&e.each(function(){d(this).attr("data-loftocean-loading-image")&&(d(this).data("srcset")&&d(this).attr("srcset",d(this).data("srcset")).removeAttr("data-srcset"),d(this).data("loftocean-lazy-load-sizes")&&d(this).attr("sizes",d(this).data("loftocean-lazy-load-sizes")).removeAttr("data-loftocean-lazy-load-sizes"),d(this).data("src")&&d(this).attr("src",d(this).data("src")).removeAttr("data-src"),d(this).removeAttr("data-loftocean-loading-image").css({filter:"",opacity:""}))})),this},loftoceanImageLoad.lazyLoadEnabled&&(d(window).on("startLazyLoad.loftocean",function(a){var t=d(window).scrollTop()+d(window).height(),o=d();n&&n.length&&(n.each(function(){var a=d(this),e=a.attr(i);e&&parseInt(a.offset().top-t,10)<100&&(d(new Image).on("load",function(){a.css("transition","none"),a.css({"background-image":"url("+e+")",filter:""}),a.css("transition",""),a.removeAttr("data-loftocean-retina-image").removeAttr("data-loftocean-normal-image").removeAttr("data-loftocean-image")}).attr("src",e),o=o.add(a))}),o.length&&(n=n.not(o))),s&&s.length&&(o=d(),s.each(function(){d(this).attr("data-loftocean-loading-image")&&parseInt(d(this).offset().top-t,10)<100&&(d(this).data("srcset")&&d(this).attr("srcset",d(this).data("srcset")).removeAttr("data-srcset"),d(this).data("loftocean-lazy-load-sizes")&&d(this).attr("sizes",d(this).data("loftocean-lazy-load-sizes")).removeAttr("data-loftocean-lazy-load-sizes"),d(this).data("src")&&d(this).attr("src",d(this).data("src")).removeAttr("data-src"),d(this).removeAttr("data-loftocean-loading-image").css({filter:"",opacity:""}),o=o.add(d(this)))}),o.length&&(s=s.not(o)))}).on("scroll",function(a){var e=d(this).scrollTop();t<e&&d(this).trigger("startLazyLoad.loftocean"),t=e}).on("load",function(a){d(this).trigger("startLazyLoad.loftocean")}),d("body *").on("scroll",function(){d(window).trigger("startLazyLoad.loftocean")})),document.addEventListener("DOMContentLoaded",function(){d("body").loftoceanImageLoading(),d("body").on("click","#page .loftocean-gallery-zoom",function(a){a.preventDefault();var e=d("body"),t=d(this).parent(),a=t.children(".image-gallery").first();e.hasClass("gallery-zoom")?(e.removeClass("gallery-zoom"),t.removeClass("fullscreen")):(e.addClass("gallery-zoom"),t.addClass("fullscreen")),a.slick("slickSetOption","speed",500,!0)}).on("click",".post-content-gallery.justified-gallery-initialized .gallery-item, .portfolio-gallery.gallery-justified .gallery-item",function(a){a.preventDefault();var e,t,o=d(this).closest(".justified-gallery-initialized").data("gallery-id");o&&d(".loftocean-popup-sliders ."+o).length&&(e=d("body"),t=d(this).index(),o=(a=d(".loftocean-popup-sliders ."+o)).children(".image-gallery").first(),e.hasClass("gallery-zoom")||(e.addClass("gallery-zoom"),a.addClass("fullscreen").removeClass("hide"),o.slick("slickGoTo",t).slick("slickSetOption","speed",500,!0)))}).on("click",".loftocean-popup-sliders .loftocean-popup-gallery-close",function(a){a.preventDefault();var e=d("body"),a=d(this).parent();e.hasClass("gallery-zoom")&&(e.removeClass("gallery-zoom"),a.removeClass("fullscreen").addClass("hide"))}).on("click","#secondary .cs-form-wrap .has-dropdown",function(a){a.preventDefault(),a.stopImmediatePropagation();a=d(this).siblings(".csf-dropdown");a.length&&(a.hasClass("is-open")?a.removeClass("is-open"):(d(".csf-dropdown").removeClass("is-open"),a.addClass("is-open")))}).on("click","#secondary .cs-form-wrap .minus",function(a){if(a.preventDefault(),"on"==d(this).data("disabled"))return"";var e=d(this),t=e.parent().data("label"),o=e.parents(".field-wrap").first().find(".field-input-wrap input"),i=loftoceanImageLoad.reservation[t],n=e.siblings("input").first(),s=parseInt(n.val(),10),l=n.data("min"),r=!!i&&new RegExp("\\d+ ("+loftoceanImageLoad.reservation[t].plural+"|"+loftoceanImageLoad.reservation[t].single+")","ig");if(!n.length||!o.length)return"";a=o.val()||"",l=void 0===l||isNaN(l)||l<1?0:l,s=isNaN(s)?1:s;s=Math.max(s<1?0:s-1,l),n.val(s),a=o.hasClass("separated-guests")?s:i&&r.test(a)?a.replace(r,s+" "+loftoceanImageLoad.reservation[t][s<2?"single":"plural"]):(r=s,i?(r+=" "+loftoceanImageLoad.reservation[t][s<2?"single":"plural"],"adult"==t?r+", "+a:a+", "+r):r),o.val(a),e.siblings(".plus").removeClass("disabled").data("disabled","").removeAttr("disabled"),l===s&&e.data("disabled","on").addClass("disabled").attr("disabled","disabled")}).on("click","#secondary .cs-form-wrap .plus",function(a){if(a.preventDefault(),"on"==d(this).data("disabled"))return"";var e=d(this),t=e.parent().data("label"),o=e.parents(".field-wrap").first().find(".field-input-wrap input"),i=loftoceanImageLoad.reservation[t],n=e.siblings("input").first(),s=parseInt(n.val(),10),l=n.data("max"),r=!!i&&new RegExp("\\d+ ("+loftoceanImageLoad.reservation[t].plural+"|"+loftoceanImageLoad.reservation[t].single+")","ig");if(!n.length||!o.length)return"";a=o.val()||"";s=(s=isNaN(s)?1:s)<1?1:s+1,void 0===l||isNaN(l)||(s=Math.min(l,s)),n.val(s),a=o.hasClass("separated-guests")?s:i&&r.test(a)?a.replace(r,s+" "+loftoceanImageLoad.reservation[t][s<2?"single":"plural"]):(r=s,i?(r+=" "+loftoceanImageLoad.reservation[t][s<2?"single":"plural"],"adult"==t?r+", "+a:a+", "+r):r),o.val(a),e.siblings(".minus").removeClass("disabled").removeAttr("disabled").data("disabled","")}).on("click",function(a){var e=d(a.target),a=d(".csf-dropdown.is-open");!a.length||e.is(".cs-has-dropdown, .has-dropdown")||e.parents(".cs-has-dropdown, .has-dropdown").length||a.removeClass("is-open")});var i,n,s,l,t,o=d("body.rooms-search-results #secondary .cs-form-wrap");o.length&&(i=o.data("date-format")?o.data("date-format"):"YYYY-MM-DD",n=o.data("display-date-format")?o.data("display-date-format"):"YYYY-MM-DD",s=o.find(".field-input-wrap.checkin-date input.check-in-date"),l=o.find(".field-input-wrap.checkout-date input"),t=o.find(".date-range-picker"),s.val(moment(s.data("value")).format(n)),l.val(moment(l.data("value")).format(n)),t.daterangepicker({minDate:moment().format(i),startDate:s.data("value"),endDate:l.data("value"),locale:{format:i},autoApply:!0}).on("apply.daterangepicker",function(a,e){var t=e.startDate.format(i),o=e.endDate.format(i);d(this).val(t+" - "+o),s.val(e.startDate.format(n)).data("value",t),l.val(e.endDate.format(n)).data("value",o)}),o.find(".checkin-date, .checkout-date").on("click",function(a){var e=t.data("daterangepicker");e.setStartDate(s.data("value")),e.setEndDate(l.data("value")),e.show()})),(o=d("body.rooms-search-results #secondary .cs-reservation-form .cs-form-wrap")).length&&o.submit(function(a){["checkin-date","checkout-date"].forEach(function(a){var e;o.find(".field-input-wrap."+a+" input").length&&(e=a.split("-")[0],a=o.find(".field-input-wrap."+a+" input").last(),(o.children('input[type="hidden"][name="'+e+'"]').length?o.children('input[type="hidden"][name="'+e+'"]'):d("<input>",{type:"hidden",name:e}).appendTo(o)).val(a.data("value")))});var e="roomSearchNonce",t=o.serializeArray();(o.children('input[type="hidden"][name="'+e+'"]').length?o.children('input[type="hidden"][name="'+e+'"]'):d("<input>",{type:"hidden",name:e}).appendTo(o)).val(btoa(JSON.stringify(t)))});var e,a=d(".posts.layout-carousel .posts-wrapper");a.length&&(e=[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:800,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}],a.each(function(){var a=d(this).parent().find(".post").length,a=Math.min(Math.max(parseInt(a,10),1),4);d(this).on("init",function(a){d.fn.loftoceanImageLoading&&d(this).loftoceanImageLoading()}).slick({dots:!1,arrows:!0,infinite:!0,fade:!1,speed:700,autoplay:!0,autoplaySpeed:5e3,pauseOnHover:!0,rtl:c,slidesToShow:a,slidesToScroll:1,swipeToSlide:!0,responsive:e.slice(-a)})}));a=d(".room-top-section .cs-gallery.gallery-carousel.variable-width .cs-gallery-wrap");a.length&&a.each(function(){d(this).on("init",function(a){d(this).find(".hide").removeClass("hide")}).slick({dots:!0,arrows:!0,rtl:c,slidesToShow:1,infinite:!0,speed:500,centerMode:!0,variableWidth:!0})});var r=d(".room-top-section .cs-gallery.gallery-mosaic .cs-gallery-item > a");r.length&&(new SimpleLightbox(".room-top-section .cs-gallery.gallery-mosaic .cs-gallery-item > a",{}),d(".room-top-section .cs-gallery-view-all").on("click",function(a){a.preventDefault(),r.eq(0).find("img").trigger("click")}))})}(jQuery);