PageSourceSearch

https://tourismportdouglas.com.au/fileadmin/templates/scripts/prop_list_funcs_0.4.2.min.js?1780982127

js tourismportdouglas.com.au collected 2026-09-24 09:25:03 UTC 8,164 bytes, 1 lines download raw bytes

1var ListFilter=function(){"use strict";let u=[],m=$("#filter-modal-container"),g=m.find(".set-filter-btn"),v=m.find(".clear-filter-btn");function b(){m.addClass("out"),$("body").removeClass("modal-active")}return{init:function(t){let i=t.elFilterWidget;var e=t.elTargetList;let a=t.elTargetListItem,s=$(i),n=s.find(".list-filter-widget__feedback"),o=$(".list-filter__feedback"),l=s.find('input[type="checkbox"]'),r=$(e),c=r.find(a),d=!1,h=r.find(a).length,p;function f(){u=[],0<s.find('input[type="checkbox"]:checked').length?(g.css("visibility","visible").addClass("btn-blue"),v.css("visibility","visible"),c.hide(),l.each(function(){$(this).prop("checked")&&u.push($(this).attr("data-filter-cat"))}),r.find(a).each(function(t){var i,e=$(this).attr("data-cat-ids").split(",");i=e,0!==(e=u).length&&e.every(function(t){return i.includes(t)})&&$(this).show()}),p=r.find(a+":visible").length,n.html(p+" from "+h+" matches found"),o.html("Showing "+p+" items")):(g.css("visibility","visible").removeClass("btn-blue"),v.css("visibility","hidden"),c.show(),n.html("Showing all ("+h+") properties"),o.html("Showing "+h+" items"))}$("#filter-btn").click(function(){$("#list-view-toolbar").removeClass("fixed-p"),$("body").removeClass("has-sticky-filter-bar");var t=$(this).attr("data-modal-anim-style");m.removeAttr("class").addClass(t),$("body").addClass("modal-active")}),m.find(".close").on("click",function(){b()}),g.click(function(){b(),$("#list-view-toolbar").removeClass("fixed-p"),$("body").removeClass("has-sticky-filter-bar"),$("html, body").animate({scrollTop:$("#listing-pg-sub-header").offset().top},800,function(){window.location.hash="#listing-pg-sub-header"})}),v.on("click",function(){s.find('input[type="checkbox"]:checked').each(function(){"true"!==$(this).attr("data-querystring-assigned")&&($(this).prop("checked",!1),d=!0)}),f(),d||o.html("Showing "+h+" items")}),$(i).find('input[type="checkbox"]').click(function(){f()}),$("#selRoomConfig").on("changed.bs.select",function(t,i,e,a){var s=t.target.value.split("|"),n=s[0],s=s[1];n&&""!==n&&(t.target.value="",window.location.assign("/?id="+n+"&filterCatId="+s))}),n.html("Showing all ("+h+") properties"),o.html("Showing "+h+" items");{let t=parseURL(window.location.href).params.filterCatId;t&&$(i).find('input[type="checkbox"]').each(function(){$(this).attr("data-filter-cat")==t&&($(this).prop("checked",!0).attr("data-querystring-assigned","true"),d=!0),f()})}}}}(),ListView=function(){"use strict";let i="";function e(t){return(t=t.find(".prop-prices").text().trim().split(",").filter(function(t){return""!==t})).sort(function(t,i){return t-i}),0<t.length?t[0]:"--"}function o(t,i,e){$(t).find(i).sort(function(t,i){return"desc"===e.toLowerCase()?Math.round($(i).data("prop-low-price"))-Math.round($(t).data("prop-low-price")):Math.round($(t).data("prop-low-price"))-Math.round($(i).data("prop-low-price"))}).appendTo(t)}function l(t){return-1!==t.indexOf("youtu.be")||-1!==t.indexOf("youtube")?(void 0!==(t=t.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]?t[2].split(/[^0-9a-z_\-]/i):t)[0]:null}return{init:function(){{var e="#biz-listing",a=".listing-item";a=$(e).find(a);let t=[],i=[];function s(i){for(let t=i.length-1;0<t;t--){var e=Math.floor(Math.random()*(t+1));[i[t],i[e]]=[i[e],i[t]]}return i}a.each(function(){("yes"===$(this).data("member-priority")?t:i).push(this)});var a=s(t),n=s(i),a=a.concat(n);$(e).append(a)}$(document).ready(function(){var t,i,e;e=parseInt($("body").attr("data-page-id")),isNaN(e)||![2,3,6,4,17,5,1506,1883].includes(e)||0===(e=$("#biz-listing")).length||e.children().length<2||(t=$("<div>",{class:"broadstreet-container"}),(i=document.createElement("broadstreet-zone")).setAttribute("zone-id","187557"),e.children().eq(1).after(t),t.append(i))}),$("#sortListButton").on("click",function(t){t.preventDefault(),"asc"===i?(o("#biz-listing",".listing-item","desc"),i="desc",$(this).text("$ High - Low")):(o("#biz-listing",".listing-item","asc"),i="asc",$(this).text("$ Low - High")),$("#list-view-toolbar").hasClass("fixed-p")&&$("html, body").animate({scrollTop:$("#listing-pg-sub-header").offset().top},800,function(){window.location.hash="#listing-pg-sub-header"})}),$(".testimonial-overlay").find(".testimonial-header").find(".close").on("click",function(){$(this).parents(".testimonial-overlay").removeClass("show")}),$(".open-youtube-modal").click(function(t){var i=$("#siteModal"),e=$(this).attr("data-listing-title"),a=$(this).attr("data-url"),t=(t.preventDefault(),l(a));t&&t!==a&&(i.removeClass("has-g-map").addClass("has-video").find(".modal
1-title").html(e),a='<div class="video-container-16-9"><iframe width="560" height="315" src="'+("https://www.youtube.com/embed/"+t)+'" frameborder="0" allowfullscreen></iframe></div>',i.find("#normal-content").html(a),$("#list-view-toolbar").removeClass("fixed-p"),$("body").removeClass("has-sticky-filter-bar"),i.modal("show"))}),$("#siteModal").on("hidden.bs.modal",function(){var t=$("#siteModal");t.removeClass("has-video has-g-map").find("#normal-content").html(""),t.find("#gmap-canvas").html("").hide()}),$("#biz-listing").find(".listing-item").find(".open-youtube-modal").each(function(t){var i=$(this).attr("data-url"),e=l(i);e&&e!==i||$(this).hide()})},setCardPrices:function(){l2c("***** in setCardPrices()...");var t=$("#site-body").attr("data-site-section");t&&""!==t?(l2c("Listing type is: "+t.toLowerCase()),"accommodation"===t.toLowerCase()||"home"===t.toLowerCase()?$(".biz-listing-wrap").each(function(){$(this).find(".listing-item").each(function(){var t=e($(this));$(this).find(".pricing-box").html('<div class="price-from-text">from</div> <div class="pricing-data"><div class="price-currency">AUD</div><div class="price"> '+t+' <small style="font-size: 64%;">pn</small></div>'),t=$.isNumeric(t)?t:-1,$(this).attr("data-prop-low-price",t)})}):"dineanddrink"===t.toLowerCase()?$("#biz-listing").find(".listing-item").each(function(i){var e=$(this).find(".prop-prices").text().trim();if($.isNumeric(e)&&0<e){let t="";for(e=parseInt(e),i=1;i<=4;i++)t+=i<=e?'<i class="fas fa-dollar-sign icon-blue-dollar"></i>':'<i class="fas fa-dollar-sign icon-grey-dollar"></i>';$(this).find(".price-box .price-guide").html(t)}}):"tours"!==t.toLowerCase()&&"transport"!==t.toLowerCase()||(l2c("dealing with tours...."),$("#biz-listing").find(".listing-item").each(function(){let i=$(this);i.find(".price-box").find(".price").each(function(){let t=$(this).attr("data-price");l2c("priceData: "+t),t=(t=t.split("$").pop()).replace(",",""),l2c("priceData: "+t),$.isNumeric(t)?(t=parseFloat(t),($(this).hasClass("adult-price")||$(this).hasClass("family-price"))&&(l2c('setting price in the "data-prop-low-price" data attribute'),i.attr("data-prop-low-price",t)),t="$"+(t=t.toString()),$(this).html(t)):$(this).html(t.split("$").pop())})}))):$(".biz-listing-wrap.accomm-listing-grid").each(function(){$(this).find(".listing-item").each(function(){var t=e($(this));$(this).find(".pricing-box").html('<div class="price-from-text">from</div> <div class="pricing-data"><div class="price-currency">AU</div><div class="price">$'+t+' <small style="font-size: 64%;">pn</small></div>'),t=$.isNumeric(t)?t:-1,$(this).attr("data-prop-low-price",t)})}),l2c("***** exiting setCardPrices()...")},setGoogleMaps:function(){let s=null,n,o;var t=$("#siteModal");t.on("show.bs.modal",function(t){var i,e,a,t=$(t.relatedTarget);t.hasClass("is-gmap-btn")&&($(this).removeClass("has-video").addClass("has-g-map"),i=t.data("lat"),e=t.data("lng"),a={zoom:(a=t.data("zoom"))||14,zoomControl:!0,streetViewControl:!1,center:o=new google.maps.LatLng(i,e),mapTypeId:google.maps.MapTypeId.ROADMAP},s=new google.maps.Map(document.getElementById("gmap-canvas"),a),(n=new google.maps.Marker({position:o})).setMap(s),document.querySelector("#siteModal .modal-title").innerHTML=t.data("listing-title"),$("#location-map").css("width","100%"),$("#gmap-canvas").css("width","100%").show())}),t.on("shown.bs.modal",function(){$(event.relatedTarget).hasClass("is-gmap-btn")&&(google.maps.event.trigger(s,"resize"),s.setCenter(o))})}}}();$(document).ready(function(){"use strict";ListView.init(),ListView.setCardPrices(),ListView.setGoogleMaps()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.