1 2var heroInit={init:function(){$("html").addClass("loaded"),$(".loader-screen").fadeOut()}},hero_area={video_delay:0,startx:0,crt_img:0,images:0,image_list:[],autoplay_timeout:"",fileType:"",time:4e3,crt_time:3990,timer:0,timer_step:30,animation_delay:800,pause:0,desktop_movie:"",text_step:0,init:function(){if(lg("Init Hero area.",1),hero_area.time=AutoScrollDelay,$(".hero_area_box").length>0){if(-1!=window.location.href.indexOf("videofile")&&(lg(" - testing video file"),$("#video_file").val("https://player.vimeo.com/external/575410194.hd.mp4?s=60d0570ec7494750ef25e7119bcfa03c0293affc&profile_id=175"),$(".hero_area_box .hero_item").remove()),$(".hero_area_box img").length>0&&($(".hero_item").each((function(){hero_area.image_list.push([$(this).attr("data-src"),$(this).attr("title")])})),hero_area.images=hero_area.image_list.length,hero_area.fileType="images"),"undefined"!=typeof homepageRotatorImagesArray&&homepageRotatorImagesArray.length>0&&(hero_area.fileType="video"),"images"==hero_area.fileType){if(lg(" - "+hero_area.image_list.length+" items"),lg(" - image file"),hero_area.images=hero_area.image_list.length,hero_area.preloader(),$(".hero_next").on("click",hero_area.next),$(".hero_next").on("mouseover",hero_area.autoplay_pause),$(".hero_next").on("mouseout",hero_area.autoplay_play),$(".hero_prev").on("click",hero_area.prev),$(".hero_prev").on("mouseover",hero_area.autoplay_pause),$(".hero_prev").on("mouseout",hero_area.autoplay_play),$(".hero_area_box").on("touchstart",(function(e){hero_area.startx=e.originalEvent.touches[0].clientX,$(".hero_area_box").on("touchend",(function(e){if(0!=hero_area.startx){var t=e.originalEvent.changedTouches[0].clientX;t>hero_area.startx+20?hero_area.prev():t<hero_area.startx-20&&hero_area.next(),hero_area.startx=0}}))})),hero_area.image_list.length>1){for(var e=0;e<=hero_area.image_list.length-1;e++)$btn=$(".pagination").append($("<span class='hero_btn_page' id='img_btn_"+e+"'>"+e+"</span>")),$("#img_btn_"+e).on("click",hero_area.display_image);lg(" - pagination",null,"green")}for(var t=window.innerWidth,a=0;a<=hero_area.image_list.length-1;a++){img=hero_area.image_list[a][0];var r='<picture class="hero_item"><source type="image/webp" data-srcset="'+img+"?command_1=resize&width_1="+t+"&webp=true 800w, "+img+'?&webp=true 1100w" /><source type="image/jpg" data-srcset="'+img+"?command_1=resize&width_1="+t+"&webp=true 800w, "+img+'?&webp=true 1100w" /><img class="lazyload" data-src="'+img+'" alt="'+img+'"></picture>';$div=$(".hero_area_box").append(r),0==a&&hero_area.loadImage(img)}$(".hero_area_box img").each((function(){$(this).parent().hasClass("hero_item")||$(this).remove()})),lg(" - add images",null,"green"),1==hero_area.image_list.length&&$(".hero_item").css({opacity:"1"}),lg(" - autoplay",null,"green"),lg("",null,"green")}else if("video"==hero_area.fileType){if(lg(" - video file"),hero_area.preloader(),$("html").hasClass("no-touch")&&$(".bgVideo").prop("autoplay",!0),$(".video-wrapper").show(),$(".video-info").show(),$(".hero_area_box img").each((function(){$(this).remove()})),homepageRotatorImagesArray=cdnGeneralHelpers.shuffle(homepageRotatorImagesArray),hero_area.desktop_movie=homepageRotatorImagesArray[0].video,null!=homepageRotatorImagesArray[0].titles){hero_area.titles=homepageRotatorImagesArray[0].titles.split(",");for(var i=0;i<=hero_area.titles.length-1;i++)$(".hero-titles").append("<h1 id='hero_title_"+i+"'>"+hero_area.titles[i]+"</h1>");hero_area.text_step=7}var o=hero_area.desktop_movie;$(".bgVideo").append('<source src="'+o+'#t=0.01" type="video/mp4">');var n=document.getElementById("videoBg");$("#hero_title_0").css({opacity:"1"}),n.addEventListener("loadeddata",(function(){$(".hero_loader").css({opacity:"0","pointer-events":"none"}),hero_area.desktop_movie=document.getElementById("videoBg"),hero_area.display_titles(),$("#hero_title_0").css({opacity:"1"})}))}}else lg(" - .hero_area_box missing.",null,"purple");lg("",0)},display_titles:function(){clearTimeout(hero_area.video_delay),hero_area.video_delay=setTimeout((function(){var e=hero_area.desktop_movie.currentTime,t=hero_area.time/1e3;hero_area.desktop_movie.duration,e>=0&&e<.1&&"0"==$("#hero_title_0").css("opacity")?($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_0").css({opacity:"1"})):e>=t&&e<t+.02&&"0"==$("#hero_title_1").css("opacity")?($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_1").css({opacity:"1"})):e>
22*t&&e<2*t+.02&&"0"==$("#hero_title_2").css("opacity")?($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_2").css({opacity:"1"})):e>3*t&&e<3*t+.02&&"0"==$("#hero_title_3").css("opacity")?($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_3").css({opacity:"1"})):e>4*t&&e<4*t+.1?($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_4").css({opacity:"1"})):e>5*t&&e<5*t+.1&&($(".hero-titles h1").css({opacity:"0"}),$("#hero_title_5").css({opacity:"1"})),hero_area.display_titles()}),10)},play_video:function(){var e=document.getElementById("videoBg");1==e.paused?(e.play(),$(".video-play").css({opacity:"0","pointer-events":"none","z-index":"90"}),$(".video-pause").css({opacity:"1","pointer-events":"all","z-index":"100"})):0==e.paused&&(e.pause(),$(".video-play").css({opacity:"1","pointer-events":"all","z-index":"100"}),$(".video-pause").css({opacity:"0","pointer-events":"none","z-index":"90"}))},mute_video:function(){var e=document.getElementById("videoBg");1==e.muted?e.muted=!1:e.muted=!0},next:function(){clearTimeout(hero_area.autoplay_timeout),hero_area.crt_img<hero_area.images-1?hero_area.crt_img++:hero_area.crt_img=0,$(".hero_current_page").text("0"+(hero_area.crt_img+1)+" / 0"+hero_area.image_list.length),hero_area.set_order(),hero_area.autoplay()},prev:function(){clearTimeout(hero_area.autoplay_timeout),hero_area.crt_img>0?hero_area.crt_img--:hero_area.crt_img=hero_area.images-1,$(".hero_current_page").text("0"+(hero_area.crt_img+1)+" / 0"+hero_area.image_list.length),hero_area.set_order(),hero_area.autoplay()},display_image:function(){var e=parseInt($(this).attr("id").split("img_btn_")[1]);hero_area.crt_img=e,$(".hero_next .crs_progress div span").removeAttr("style"),hero_area.set_order(),$(".hero_current_page").html("0"+(hero_area.crt_img+1)+" / <span>0"+hero_area.image_list.length+"</span>"),clearTimeout(hero_area.timer),hero_area.timer=setTimeout(hero_area.autoplay,hero_area.timer_step)},preloader:function(){addLoaderAnimation({parent:".hero_loader",items:8,radius:50,width:8,height:8,color:"#000F1F",animation:"",speed:10})},set_order:function(){for(var e=$(".hero_area_box .hero_item"),t=0;t<=e.length-1;t++){$("#img_btn_"+t).removeClass("hero_btn_selected"),$(e[t]).css({opacity:"0","z-index":"0"});$(e[hero_area.crt_img]).attr("data-src");$(e[hero_area.crt_img]).css({opacity:"1","z-index":"100"}),$("#img_btn_"+hero_area.crt_img).addClass("hero_btn_selected")}},autoplay:function(){if(0==hero_area.pause){hero_area.crt_time+=hero_area.timer_step;var e=360/((hero_area.time-hero_area.animation_delay)/hero_area.timer_step),t=(hero_area.crt_time-hero_area.animation_delay)/hero_area.timer_step*e;hero_area.crt_time>hero_area.animation_delay&&(t<=180?$(".crs_progress .circle_right span").css({transform:"rotate("+(-180+t)+"deg)"}):t>180&&$(".crs_progress .circle_left span").css({transform:"rotate("+(t-180-180)+"deg)"})),hero_area.crt_time>=hero_area.time&&(hero_area.crt_img<hero_area.images-1?hero_area.crt_img++:hero_area.crt_img=0,$("#img_btn_"+hero_area.crt_img).trigger("click"),hero_area.crt_time=0,$(".crs_progress div span").removeAttr("style"))}clearTimeout(hero_area.timer),hero_area.timer=setTimeout(hero_area.autoplay,hero_area.timer_step)},autoplay_pause:function(){hero_area.pause=1},autoplay_play:function(){hero_area.pause=0},loadImage:function(e){var t=new Image;t.onload=function(){hero_area.start_hero_area()},t.onerror=function(){hero_area.start_hero_area()},t.src=e},start_hero_area:function(){setTimeout((function(){$(".hero_top_fade").css({opacity:"1"}),$(".hero_bottom_fade").css({opacity:"1"}),$(".hero_area_box").css({opacity:"1"}),$(".hero_loader").css({opacity:"0"}),setTimeout((function(){$(".hero_loader").hide()}),600),hero_area.image_list.length>1?($(".hero_nav").css({opacity:"1","pointer-events":"all"}),hero_area.autoplay()):hero_area.set_order()}),300)}};function addLoaderAnimation(e){$(e.parent).each((function(t){var a="_"+e.parent.substr(1,100)+"_";$(this).append($("<div style='position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);' class='"+a+"preloader_"+t+"'></div>"));for(var r=360/e.items,i=1;i<=e.items;i++)$("."+a+"preloader_"+t).append($("<div id='ray_"+i+a+t+"' style='display: block;
2width:"+e.radius+"px;height:"+e.width+"px;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%) rotate("+r*i+"deg)'></div>")),$("#ray_"+i+a+t).append($("<span style='display:block;width:"+e.height+"px;height:"+e.width+"px;border-radius:"+e.width+"px;background-color:"+e.color+";position: absolute;left:"+e.width/2+"px;'></span>"));var o={rotation:0,delay:0,speed:2,scale:1,scale_step:1};o.rays=e.items,o.crt_ray=1,o.name=a+"preloader_"+t,o.wheel=$("."+a+"preloader_"+t),o.parent=$(this),o.animation=e.animation,"pulse"==o.animation&&(o.scale=.6),"clock"==o.animation&&$("."+a+"preloader_"+t+" span").css({opacity:"0"}),o.animate=function(){"pulse"==o.animation?(o.scale_step++,o.scale_step<=80?o.scale+=.005:o.scale_step>80&&o.scale_step<=160?o.scale-=.005:o.scale_step=0):"clock"==o.animation?(o.crt_ray<o.rays?o.crt_ray++:o.crt_ray=1,$("."+a+"preloader_"+t+" span").css({opacity:"1"}),$("."+a+"preloader_"+t+" span").eq(o.crt_ray-1).css({opacity:"0"})):o.rotation+=o.speed,o.wheel.css({transform:"translate(-50%, -50%) scale("+o.scale+") rotate("+o.rotation+"deg)"}),clearTimeout(o.delay),"none"==o.parent.css("display")?(o.wheel.remove(),delete window[o.name]):o.delay=setTimeout(o.animate,e.speed)},o.animate(),window[a+"preloader_"+t]=o}))}function isOpenFirstVisit(e){var t=e.attr("data-openfirstvisit");return"string"==typeof t&&"true"===t.toLowerCase()}var alert_panel={init:function(){lg("Init alert panel.",1),$(".alert-panel").length>0?($(".btn-alert").on("click",alert_panel.open_panel),$(".btn-alert-close").on("click",alert_panel.close_panel),$(".alert-overlay").on("click",alert_panel.close_panel),$(".alert-title").text().length>20?generalCustomHelpers.ellipsis($(".alert-text"),65):generalCustomHelpers.ellipsis($(".alert-text"),165),$(".alert-link").length>0&&-1!=$(".alert-link")[0].href.indexOf("javascript")&&(lg(" - alert href missing",null,"purple"),$(".alert-link").remove(),$(".alert-arrow").remove()),0!=$(".alert-image").length&&0!=$(".alert-image img").length||(lg(" - alert image missing",null,"purple"),$(".alert-panel").addClass("alert-no-image")),alert_panel.checkExpiryDates()||alert_panel.checkFirstVisit(),lg("",null,"green")):lg(' - ".alert-panel" missing',null,"purple"),lg("",0)},open_panel:function(){generalCustomHelpers.close_panels(),$(".alert-panel").addClass("display-alert"),$("html body").addClass("blockScroll")},close_panel:function(){$(".alert-panel").removeClass("display-alert"),$("html body").removeClass("blockScroll"),cdnGeneralHelpers.setCookie("alert","true")},checkExpiryDates:function(){var e=new Date($("#alertExpiryDateUTC").val()).getTime();return(new Date).getTime()>=e&&($(".btn-alert, .alert-panel").remove(),lg(" - alert expired",null,"purple"),!0)},checkFirstVisit:function(){return!!isOpenFirstVisit($(".alert-panel"))&&(null==cdnGeneralHelpers.getCookie("alert")&&(lg(" - alert opened on first visit"),alert_panel.open_panel(),!0))}},notices_panel={notices_nr:0,notice_next:0,notice_prev:0,crt_notice:0,init:function(){lg("Init notices panel.",1),$(".notices-panel").length>0?($(".btn-notices").on("click",notices_panel.open_panel),$(".btn-notice-close").on("click",notices_panel.close_panel),$(".notices-overlay").on("click",notices_panel.close_panel),$(".notices-prev").on("click",notices_panel.displayNotice),$(".notices-next").on("click",notices_panel.displayNotice),notices_panel.checkNotices(),notices_panel.checkFirstVisit(),lg("",null,"green")):(lg(' - ".notices-panel" missing',null,"purple"),$(".notices-nav").hide()),lg("",0)},open_panel:function(){generalCustomHelpers.close_panels(),$(".notices-panel").addClass("display-notices"),$("html body").addClass("blockScroll")},close_panel:function(){$(".notices-panel").removeClass("display-notices"),$("html body").removeClass("blockScroll"),cdnGeneralHelpers.setCookie("firstVisit","true")},checkNotices:function(){$(".notices-box").length>0?$(".notices-box .notice-item").length>0?(lg(" - "+$(".notices-box .notice-item").length+" items"),notices_panel.notices_nr=$(".notices-box .notice-item").length,$(".notices-box .notice-item").each((function(){generalCustomHelpers.ellipsis($(".notice-text",this),150),$(".notice-link",this).length>0&&-1!=$(".notice-link",this)[0].href.indexOf("javascript")&&(lg(" - notice href missing",null,"purple"),$(".notice-link",this).remove()),0!=$(".notice-image",this).length&&0!=$(".notice-image img",this).length||(lg(" - notice image missing",null,"purple"),$(this).addClass("notice-no-image"))})),notices_panel.goToNotice(0),1==notices_panel.notices_nr&&$(".notices-nav").hide()):$(".notices-box").hide():lg(" - .notices-box missing.",null,"purple")}
2,checkFirstVisit:function(){var e=$(".notices-box .notice-item");if(0==e.length)return!1;var t=-1;return e.each((function(e){if(isOpenFirstVisit($(this)))return t=e,!1})),-1!=t&&(null==cdnGeneralHelpers.getCookie("firstVisit")&&($(".alert-panel").hasClass("display-alert")?(lg(" - alert already open, notices not auto-opened",null,"purple"),!1):(lg(" - notices opened on first visit (notice "+(t+1)+")"),notices_panel.goToNotice(t),notices_panel.open_panel(),!0)))},goToNotice:function(e){var t=$(".notices-box .notice-item");t.css({transform:"translateX(200%) translateY(-50%)"}),t.eq(e).removeAttr("style"),notices_panel.crt_notice=e,notices_panel.notice_next=e,notices_panel.updateCounter()},updateCounter:function(){$(".notices-counter").html("0"+(notices_panel.crt_notice+1)+" / <span>0"+notices_panel.notices_nr+"</span>")},displayNotice:function(){$(this).hasClass("notices-next")?(notices_panel.notice_next++,notices_panel.notice_next>notices_panel.notices_nr-1&&(notices_panel.notice_next=0),$(".notices-box .notice-item").eq(notices_panel.notice_next).css({transition:"none",opacity:"0",transform:"translateX(100%) translateY(-50%)"}),setTimeout((function(){$(".notices-box .notice-item").eq(notices_panel.crt_notice).css({transition:"all 0.5s ease",opacity:"1",transform:"translateX(-300%) translateY(-50%)"}),$(".notices-box .notice-item").eq(notices_panel.notice_next).css({transition:"all 0.5s ease",opacity:"1",transform:"translateX(-50%) translateY(-50%)"}),notices_panel.crt_notice++,notices_panel.crt_notice>notices_panel.notices_nr-1&&(notices_panel.crt_notice=0),notices_panel.updateCounter()}),300)):(notices_panel.notice_next--,notices_panel.notice_next<0&&(notices_panel.notice_next=notices_panel.notices_nr-1),$(".notices-box .notice-item").eq(notices_panel.notice_next).css({transition:"none",opacity:"0",transform:"translateX(-150%) translateY(-50%)"}),setTimeout((function(){$(".notices-box .notice-item").eq(notices_panel.crt_notice).css({transition:"all 0.5s ease",opacity:"1",transform:"translateX(200%) translateY(-50%)"}),$(".notices-box .notice-item").eq(notices_panel.notice_next).css({transition:"all 0.5s ease",opacity:"1",transform:"translateX(-50%) translateY(-50%)"}),notices_panel.crt_notice--,notices_panel.crt_notice<0&&(notices_panel.crt_notice=notices_panel.notices_nr-1),notices_panel.updateCounter()}),300))}},hp_cards={cards:"",delay:0,init:function(){if(lg("Init cards.",1),$("#PageCardsJson").length>0)if($("#PageCardsJson").val().length>0){if(hp_cards.cards=JSON.parse($("#PageCardsJson").val()),lg(" - "+hp_cards.cards.length+" items"),$(".education").length>0){lg("cards carousel");for(var e=0;e<hp_cards.cards.length;e++)$(".education-inner").append(sharedGenerateCard(hp_cards.cards[e]));$(".education-inner .card").length>0?($(".education-inner").slick({slidesToShow:3,infinite:!1,slidesToScroll:3,centerMode:!1,adaptiveHeight:!0,prevArrow:$(".education-nav .education-prev"),nextArrow:$(".education-nav .education-next"),responsive:[{breakpoint:830,settings:{slidesToShow:1,rows:2,infinite:!0,centerMode:!0}}]}),$(".education-inner .card").on("click",(function(){setTimeout((function(){$(".mediaPopup__extraDescWrapper p:first").text().length>0?$(".mediaPopup__extraDescWrapper p:first").addClass("popupFeatureParagraph"):$(".mediaPopup__extraDescWrapper p:nth-of-type(2)").addClass("popupFeatureParagraph"),$(".isTitle.featuredParagraph").insertAfter(".isStaffRole"),$(".mediaPopup__type h4 span").text("CARDS")}),300)})),$(".education-inner").on("afterChange",(function(e,t,a){hp_cards.updateSliderCounter(t,a)})),currentSlide=1,slidesCount=hp_cards.cards.length/3,-1!=String(slidesCount).indexOf(".")&&(slidesCount=parseInt(String(slidesCount).split(".")[0])+1),$(".education-counter").text("0"+currentSlide+" / 0"+slidesCount),$(window).on("resize",hp_cards.resize),hp_cards.resize()):($(".education-nav").hide(),$(".education").addClass("noCarousel")),lg("",null,"green")}else lg(" - .education missing.",null,"purple");lg("",0),lg("",null,"green")}else lg(" - #PageCardsJson empty.",null,"purple"),lg("",0),$(".education").remove();else lg(" - #PageCardsJson missing.",null,"purple"),lg("",0),$(".education").remove()},updateSliderCounter:function(e,t){window.innerWidth<=830?(currentSlide=e.slickCurrentSlide()+1,slidesCount=e.slideCount,$(".education-counter").text("0"+currentSlide+" / 0"+slidesCount)):(currentSlide=parseInt(String(e.slickCurrentSlide()/3).substring(0,1))+1,slidesCount=e.slideCount/3,-1!=String(slidesCount).indexOf(".")&&(slidesCount=parseInt(String(slidesCount).split(".")[0])+1),$(".education-counter").text("0"+currentSlide+" / 0"+slidesCount))},resize:function(){clearTimeout(hp_cards.delay),hp_cards.delay=setTimeout((function(){$(".education-inner")[0].slick.refresh(),window.innerWidth>830?$(".education-inner .card").length<=3?$(".education-nav").hide():$(".education-nav").show():window.innerWidth<=830&&($(".education-inner .card").length<=2?$(".education-nav").hide():$(".education-nav").show())}),500)}},hp_stories={init:function(){lg("Init stories."),$(".stories-init .story-card").each((function(e){$(".long-text",this).length>0&&generalCustomHelpers.ellipsis($(".long-text",this),190)}));for(var e=[["instagram","instagram","instagram"],["instagram","instagram","instagram"],["instagram","instagram","instagram"]],t=0;t<=e.length-1;t++)for(var a=0;a<=e[t].length-1;a++){for(var r=0;r<=$(".stories-init .story-card").length-1;r++){if($(".stories-init .story-card").eq(r).length>0)if(-1!=String($(".stories-init .story-card").eq(r)[0].classList).toLowerCase().indexOf(e[t][a]
2)){$(".stories-init .story-card").eq(r).addClass("story-visible"),$(".st-col-"+(a+1)).append($(".stories-init .story-card").eq(r)),r--;break}}"staff"==e[t][a]&&$(".stories-init .staff-card").eq(t).length>0&&$(".st-col-"+(a+1)).append($(".stories-init .staff-card").eq(t))}$(".stories-init").remove(),$(".stories-box .story-card").each((function(){0==$(this).parent().hasClass("st-col")&&$(this).remove()}))}},hp_promos={init:function(){$(".hp-promo").each((function(e){e>5&&$(this).remove()}))}},persons=[["Heather","Tang","images/img/staff/Heather.jpg","Student","Ms.","",""],["Tyler","Carol","images/img/staff/Tyler.jpg","Senior","Mr.","",""],["Lynne","","images/img/staff/Lynne.jpg","Deputy Head","Ms.","",""],["Sophye","","images/img/staff/Sophie.jpg","Deputy Head","Ms.","",""],["Guy","","images/img/staff/Guy.jpg","Deputy Head","Mr.","",""]],hp_staff={cards:"",init:function(){if(lg("Init staff.",1),$("#PageStaffJson").length>0)if($("#PageStaffJson").val().length>2){hp_staff.cards=JSON.parse($("#PageStaffJson").val()),hp_staff.cards=cdnGeneralHelpers.shuffle(hp_staff.cards),lg(" - "+hp_staff.cards.length+" items");for(var e=0;e<hp_staff.cards.length;e++)null==hp_staff.cards[e].Title&&(hp_staff.cards[e].Title="");for(e=0;e<hp_staff.cards.length;e++)$(".stories-init").append(sharedGenerateStaff(hp_staff.cards[e]));$(".stories-init .staff-card").on("click",(function(){setTimeout((function(){$(".mediaPopup__extraDescWrapper p:first").text().length>0?$(".mediaPopup__extraDescWrapper p:first").addClass("popupFeatureParagraph"):$(".mediaPopup__extraDescWrapper p:nth-of-type(2)").addClass("popupFeatureParagraph"),$(".isStaffRole").insertBefore($(".isTitle.featuredParagraph")),setTimeout((function(){$(".isStaffRole").eq(1).remove()}),300)}),300)})),lg("",null,"green"),lg("",0)}else lg(" - #PageStaffJson empty.",null,"purple"),lg("",0)}};function delay_init(){init_menu(),loadStories(),1!=stories_loaded&&1!=menu_start||(window.removeEventListener("mousemove",delay_init),window.removeEventListener("mousewheel",delay_init))}var menu_start=!1;function init_menu(){0==menu_start&&(main_menu.init(),menu_start=!0)}var stories_loaded=!1;function loadStories(){0==stories_loaded&&("undefined"!=typeof MediaPlusFeedsArray&&MediaPlusFeedsArray.length>0?($.HomepageAsync.AddMediaItems($(".stories-init")),stories_loaded=!0):stories_loaded=!0)} 3var staffCard="<article class='staff-card js-staffPopup {HAS_BIO}' data-staffid='{STAFF_ID}'><div class='staff__inner' title='{STAFF_TITLE}'><div class='staff__imageWrapper'>{STAFF_IMAGE}</div><div class='staff__description'><div class='staff__name'>{STAFF__TITLE_AND_NAME}</div><div class='staff__jobTitle'>{STAFF_ROLE}</div><div class='staff__bio'>{HAS_BIO}</div></div></div></article>",staffCardHelpers={getImage:function(a){var e=a.Image;return"<div class='staff__img lazyload' data-bg='/Images/1px.jpg?command_1=url&url_1="+encodeURIComponent(e)+"&command_2=resize&width_2=250&command_3=default&default_3=./Images/default-thumbs/staff-placeholder.jpg'></div>"}};function sharedGenerateStaff(a){var e=a.Bio.substr(0,150);return a.Bio.length>150&&(e+="..."),null==a.Title&&(a.Title=" "),staffCard.replace(/{STAFF_IMAGE}/g,staffCardHelpers.getImage(a)).replace(/{STAFF__TITLE_AND_NAME}/g,a.Title.replace("0","")+" "+a.FirstName+" "+a.SecondName).replace(/{STAFF_TITLE}/g,a.FirstName).replace(/{STAFF_ROLE}/g,a.Roles[0]).replace(/{HAS_BIO}/g,a.Bio.length>0?e:"noBio").replace(/{STAFF_ID}/g,a.ID)} 4var Card="<article class='card education-item js-cardPopup {HAS_BIO}' data-cardid='{CARD_ID}'><div class='education-icon'>{CARD_IMAGE}</div><div class='education-info'><h4>{CARD__TITLE_AND_NAME}</h4><p>{CARD_DESC}</p></div></article>",cardHelpers={getImageHeader:function(a){var e=a.HeaderImage,t=e.split(".png").join("").split(".jpg").join("").split("-").join(" ").split("/");return"<img class='staff__img lazyload' data-src='/Images/1px.png?command_1=url&url_1="+encodeURIComponent(e)+"&command_3=default&default_3=./Images/default-thumbs/staff-default-image.jpg' alt='"+t[t.length-1]+"'></img>"},getImage:function(a){var e=a.Image;return"<img class='staff__img lazyload' data-src='/Images/1px.jpg?command_1=url&url_1="+encodeURIComponent(e)+"&command_3=default&default_3=./Images/default-thumbs/staff-default-image.jpg'></img>"}};function sharedGenerateCard(a){var e=a.Description.substr(0,50);return a.Description.length>50&&(e+="..."),Card.replace(/{CARD_IMAGE}/g,cardHelpers.getImageHeader(a)).replace(/{CARD__TITLE_AND_NAME}/g,a.Title.replace("0","")).replace(/{CARD_DESC}
4/g,a.ShortDescription).replace(/{HAS_BIO}/g,a.Description.length>0?e:"noBio").replace(/{CARD_ID}/g,a.Id)} 5var story_types=["instagram","instagram","instagram"],feed_groups=[];!function(e){function MediaStoriesCallback(r,s,o){e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:r,TakeCount:10,SearchTags:["#UTSStories"],callback:function(e){var r=e.length;if(r>0){"undefined"!=typeof mpHelper&&e.length>0&&mpHelper.storeInfoForMediaPopup(e);for(var a=0;a<r;a++)s.append(sharedGenerateMediaItemHtml(e[a]));o==feed_groups.length-1&&setTimeout(hp_stories.init,1e3)}else s.remove()}})}e.HomepageAsync=function(){},e.HomepageAsync.AddMediaItems=function(r){MediaServiceHelper=new e.MediaServiceHelper({ServiceUrl:e("#MediaPlusUrl").val(),FeedsJson:MediaPlusFeedsArray,FeedGroups:sharedFeedGroups,InitCallBack:function(e){for(var s=[],o=0;o<e.FeedGroups.length;o++)for(var a=0;a<e.FeedGroups[o].FeedIds.length;a++)for(var d=e.FeedGroups[o].GroupName,t=0;t<story_types.length;t++)"events"!==d?(null==feed_groups[t]&&feed_groups.push([]),d==story_types[t]&&feed_groups[t].push(e.FeedGroups[o].FeedIds[a])):s.push(e.FeedGroups[o].FeedIds[a]);if(r.length&&feed_groups.length>0)for(var n=0;n<feed_groups.length;n++)MediaStoriesCallback(feed_groups[n],r,n);else r.remove()}})}}(jQuery); 6$(document).ready((function(){generalCustomHelpers.safari(),heroInit.init(),hero_area.init(),1==design&&(create_staff(persons),mpStaffPopup.init()),scrollPage.init(),alert_panel.init(),notices_panel.init(),stickyBar.init(),hp_cards.init(),hp_promos.init(),lazyLoadGoogleTagManager.init()})),$(window).load((function(){setTimeout((function(){document.documentElement.scrollTop>10&&loadStories()}),1e3),window.addEventListener("touchstart",delay_init),window.addEventListener("mousemove",delay_init),window.addEventListener("mousewheel",delay_init)}));
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.