PageSourceSearch

https://www.woodhousewest.org.uk/_includes/js/content-blocks.min.js?cache=260715

js woodhousewest.org.uk collected 2026-09-29 11:32:07 UTC 10,068 bytes, 1 lines download raw bytes

1startAlbumSlideshow=function(){var e=setInterval((function(){"function"==typeof Galleria&&(clearInterval(e),$(".content__block__album--slideshow .content__block__album__list").each((function(){var e,t,a=$(this);a.attr("slide-transition")&&(e=(e=a.attr("slide-transition")).replace(" ","")),""==e&&(e="slide"),a.attr("slide-autoplay")&&(t=a.attr("slide-autoplay")),t=""==t?7e3:Number(t),a.hasClass("galleria--running")||(a.addClass("galleria--running"),Galleria.run(a,{theme:"picture-block-slideshow",height:.75,wait:!0,autoplay:t,maxScaleRatio:1,transition:e,extend:function(){var e=this,t=a.find(".galleria-stage");$('<div class="galleria-theme-picture-block-slideshow__fullscreen"><a role="button" tabindex="0" title="Toggle fullscreen view"></a></div>').on("click",(function(t){e.toggleFullscreen()})).insertAfter(t);var l=$('<div class="galleria-theme-picture-block-slideshow__playpause"></div').insertAfter(t),s="galleria--playing";$('<a role="button" tabindex="0" title="Play/pause slideshow">').on("click",(function(){$(this).hasClass(s)?($(this).removeClass(s),e.pause()):($(this).addClass(s),e.play())})).appendTo(l),a.find(".galleria-theme-picture-block-slideshow__fullscreen a, .galleria-theme-picture-block-slideshow__playpause a").on("keydown",(function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),$(this).click())}))}}))})))}),500)},startSocialSlider=function(e){e=null==e?"":"--"+e,$(".content__block__social"+e+"--cycle").each((function(){var t=Array.from($(this)[0].classList).filter((function(e){return e.includes("instagram")}));if(0===$(this).find(".content__block__social__list__error").length&&!$(this).find("ul").data("cycle.opts")){var a=$(this).attr("id"),l=$('<button  id="'+a+'--prev" class="content__block__cycle'+e+"__button content__block__cycle"+e+'__button--prev" title="View previous slide"/>').html('<i class="fa fa-angle-left"></i>').on("click",(function(){$("#"+a).find("ul").cycle("prev")})),s=$('<button id="'+a+'--next" class="content__block__cycle'+e+"__button content__block__cycle"+e+'__button--next" title="View next slide" />').html('<i class="fa fa-angle-right"></i>').on("click",(function(){$("#"+a).find("ul").cycle("next")}));$(this).append(l).append(s),$(this).find("ul").cycle({timeout:8e3,slides:"> li",autoHeight:t.length?"container":"calc"})}}))},startAlbumLightbox=function(){$(".mason").hasClass("mason--admin")||$(".content__block__album--grid, .content__block__album--list").each((function(){if(!$(this).find("ul").data("lightGallery")){var e=lightGallery($(this).find("ul")[0],{download:!1,licenseKey:"7DB49AAF-8BB9-4316-A46F-BD7D786BC346",plugins:[lgAutoplay,lgFullscreen,lgHash,lgThumbnail,lgZoom]});"undefined"==typeof arrParentPortalLightGalleries&&(arrParentPortalLightGalleries=[]),arrParentPortalLightGalleries.push(e)}}))},startLesson=function(){$.get("/admin/general/json/websiteSettings.asp?name=remoteLearning",(function(e){"success"===e.status&&e.data.keys.length>0?$(".web-component-lesson").each((function(t){var a="",l="",s="",i="default",n=this;if("local-website-key"===$(n).attr("data-api"))a="local";else for(var r=0;r<e.data.keys.length;r++)if(e.data.keys[r].title.replace(/\s/g,"_").toLowerCase()===$(n).attr("data-api")){a=e.data.keys[r].key,l=""!==e.data.keys[r].url?e.data.keys[r].url:"";break}"remote"===e.data.layout&&(s=l),$(this).attr("data-template")&&(i=$(this).attr("data-template")),jsLoadTemplate(s,i,["lesson_groups","lesson","lesson_completion","learning_palettes"],(function(t){for(var i=$(n).attr("data-type"),r={},o=0;o<t.length;o++)r[t[o].type]=t[o];switch(i){case"lessonGroup":i="group";break;case"learning_palettes":i="palette";break}var c={};if(r.lesson_groups&&(c.group={class:r.lesson_groups.blockClass,template:r.lesson_groups.template}),r.lesson&&(c.lesson={class:r.lesson.blockClass,template:r.lesson.template}),r.lesson_completion&&(c.completion={class:r.lesson_completion.blockClass,template:r.lesson_completion.template}),r.lesson_palettes&&(c.palette={class:r.palette.blockClass,template:r.palette.template}),""===a)$(n).append("<p>Unable to find API</p>");else{var d={breadcrumbs:".mason__breadcrumbs",target:n,limit:$(n).attr("data-limit"),source:$(n).attr("data-source"),apiKey:a,type:i,sort:$(n).attr("data-sort")?$(n).attr("data-sort"):"",templates:c,requireLogin:!1,requireName:!1};l&&(d.siteUrl=l),"remote"===e.data.layout&&(d.cssUrl=s),new remoteLearning(d)}}))})):$(".web-component-lesson").append("<p>Unable to find API</p>")}
1))};var objLoadedTemplateFiles={};jsLoadTemplate=function(e,t,a,l){var s=e+"/_includes/template_component/getComponents.asp";t&&(s+="?name="+t),a&&(s+=t?"&":"?",s+="type="+a),objLoadedTemplateFiles[s]?l(objLoadedTemplateFiles[s]):$.get(s,(function(e){objLoadedTemplateFiles[s]=e,l(e.data)}),"json")},cbResizeImage=function(e,t){if(void 0!==e.attr("src")){var a=new Image;a.onload=function(){var l=a.width/a.height,s=t.width()+10,i=t.height()+10;a=null,parseInt(s/l)<i?e.css({width:parseInt(i*l)+"px",height:parseInt(i)+"px",opacity:1,position:"absolute",top:"50%",left:"50%","margin-top":"-"+parseInt(i/2)+"px","margin-left":"-"+parseInt(i*l/2)+"px"}):e.css({width:parseInt(s)+"px",height:parseInt(s/l)+"px",opacity:1,position:"absolute",top:"50%",left:"50%","margin-top":"-"+parseInt(s/l/2)+"px","margin-left":"-"+parseInt(s/2)+"px"})},a.src=e.attr("src")}},SAMPeople=function(){if(!$(".mason").hasClass("mason--admin")){let e=[];e.push(new Promise(((e,t)=>{jsLoadTemplate("","default","sampeople_vacancy",(function(t){e(t[0])}))}))),e.push(new Promise(((e,t)=>{fetch("/_includes/code/scripts/get_sampeople.filters.asp",{method:"GET",headers:{Accept:"application/json"}}).then((e=>e.json())).then((t=>e(t)))}))),Promise.all(e).then((e=>{const t=e[0];let a=e[1];const l=t.blockClass+"__filters";document.querySelectorAll("."+t.blockClass).forEach(((e,s)=>{const i=e.querySelector("form."+l),n=e.querySelector("."+t.blockClass+"__list"),r=i.getAttribute("data-limit"),o=i.getAttribute("data-establishment");let c=1,d=function(e){let t=[10,20,50,100];return""!=e&&(t.includes(e)||(t.push(parseInt(e)),t.sort((function(e,t){return e-t})))),t}(r),u=function(e){const t={0:0,"10,000":1e4,"20,000":2e4,"30,000":3e4,"40,000":4e4,"50,000":5e4,"60,000":6e4,"70,000 and higher":9999999999999};return{"Sort order and paging":{"Sort by":{value:"sortField",items:{"Closing Date":"closingDate","Date Added":"creationTime",Location:"location",Salary:"salaryRangeLower",Title:"jobTitle","Work Pattern":"jobType"}},"Sort direction":{value:"order",items:{Ascending:"ASC",Descending:"DESC"}},"Number of results":{value:"limit",items:e}},"Filter by salary range":{"Salary minimum":{value:"filter-salaryrangelower",items:t},"Salary maximum":{value:"filter-salaryrangeupper",items:t,initialValue:9999999999999}}}}(d),p="";""!=o&&a.establishmentName.items.includes(o)&&(a.establishmentName.items=[o],a.establishmentName.initialValue=o),i.querySelector("."+l+'--basic button[type="submit"]').removeAttribute("disabled"),p+='<div class="'+l+'--advanced ui_card"><div class="ui_card">';for(const[e,t]of Object.entries(u)){p+='<div class="ui_group">',p+="<h3>"+e+'</h3><div class="ui_group">';for(const[e,a]of Object.entries(t)){let t=e.toLowerCase().replace(/\s/g,"_")+"_"+s;if(Array.isArray(a.items)){var m={};a.items.forEach((e=>{m[e]=e})),a.items=m}let l='<div><label for="'+t+'">'+e+'</label><select id="'+t+'" name="'+(a.value||e)+'">';for(const[e,t]of Object.entries(a.items)){let s="";a.initialValue==t&&(s="selected"),l+='<option value="'+t+'" '+s+">"+e+"</option>"}l+="</select></div>",p+=l}p+="</div></div>"}p+='<div class="'+l+'--advanced__fieldsets ui_group">';for(const[e,t]of Object.entries(a))if(t.items){let a="<fieldset><legend>"+(t.displayName||e)+"</legend>";t.items.forEach((l=>{let i=l.toLowerCase().replace(/\s/g,"_")+"_"+s,n=e.toLowerCase(),r="";"establishmentname"!=n&&(n="filter-"+n),t.initialValue==l&&(r="checked"),a+='<div><input type="'+("single"==t.selectType?"radio":"checkbox")+'" id="'+i+'" name="'+n+'" value="'+l+'" '+r+'/><label for="'+i+'">'+l+"</label></div>"})),a+="</fieldset>",p+=a}p+='</div><div class="'+l+'--advanced__submit ui_group"><button class="ui_button" type="submit" title="Perform search">Search <i class="fa fa-search" aria-hidden="true"></i></button></div>',p+="</div></div>",i.insertAdjacentHTML("beforeend",p);let _=i.querySelector("."+l+"--basic__toggle");_.removeAttribute("disabled"),_.addEventListener("click",(e=>{e.preventDefault(),i.classList.toggle("expanded")}));let g=i.querySelector("#salary_minimum_"+s),f=i.querySelector("#salary_maximum_"+s);g&&f&&(g.addEventListener("change",(e=>
1{f.childNodes.forEach((t=>{t.value<e.target.value?t.setAttribute("disabled",""):t.removeAttribute("disabled")}))})),f.addEventListener("change",(e=>{g.childNodes.forEach((t=>{t.value>e.target.value?t.setAttribute("disabled",""):t.removeAttribute("disabled")}))}))),e.addEventListener("click",(e=>{var t;"BUTTON"==e.target.nodeName&&"page"in e.target.dataset?t=e.target:"BUTTON"==e.target.parentNode.nodeName&&"page"in e.target.parentNode.dataset&&(t=e.target.parentNode),t&&(e.preventDefault(),c=t.getAttribute("data-page"),i.requestSubmit())})),i.addEventListener("click",(()=>{c=1})),i.addEventListener("submit",(a=>{a.preventDefault(),n.classList.add("loading"),setTimeout((()=>{let a=new FormData(i),l=new URLSearchParams,s=[];i.classList.remove("expanded");for(const[e,t]of a.entries())if(e.includes("filter-")&&!s.includes(e)){let t=e.replace("filter-","");"establishmentname"!=t&&(s.includes(t)||s.push(t),l.append(t,a.getAll(e).toString()))}else l.append(e,a.getAll(e).toString());l.append("listclass",t.listClass),l.append("page",c),l.append("filters",s.toString()),fetch(`/_includes/code/scripts/get_sampeople.vacancies.asp?${l}`,{method:"GET",headers:{Accept:"application/json"}}).then((e=>e.json())).then((t=>{e.querySelector(".content__block__recruitment_adverts__list__btns")&&e.querySelector(".content__block__recruitment_adverts__list__btns").remove(),n.innerHTML=t.vacancies,n.insertAdjacentHTML("afterend",t.pagination),n.classList.remove("loading")}))}),120)}))}))}))}};

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.