function initCoursePageBanner(){let courseBanner=$('.course-page-banner');let accreditation=$('.accreditation-to-be-approved-link');let accreditationApprovalInfo=$('.accreditation-approval-information');let approvalCloseButton=$('.approval-close-button');if(courseBanner.length){var delay=0;$('.course-page-banner .cw > *:not(.application-link)').each(function(){var element=$(this);setTimeout(function(){element.addClass('active');},delay);delay+=350;});} if(accreditation.length&&accreditationApprovalInfo.length){let mouseOverInfo=false;accreditation.on('mouseenter',function(e){e.preventDefault();accreditationApprovalInfo.slideDown(250);accreditationApprovalInfo.addClass('active');return false;});accreditation.on('mouseleave',function(e){e.preventDefault();setTimeout(function(){if(!mouseOverInfo){accreditationApprovalInfo.slideUp(250);return false;}},250);});accreditation.on('keyup',function(e){e.preventDefault();let show=!mouseOverInfo;if(e.key==='Enter'){if(show){mouseOverInfo=true;accreditationApprovalInfo.slideDown(250);accreditationApprovalInfo.addClass('active');}else{mouseOverInfo=false;accreditationApprovalInfo.slideUp(250);accreditationApprovalInfo.removeClass('active');} return false;}}) accreditationApprovalInfo.on('mouseenter',function(e){$(this).addClass('active') mouseOverInfo=true;});accreditationApprovalInfo.on('mouseleave',function(e){$(this).removeClass('active') mouseOverInfo=false;$(this).slideUp(250);});approvalCloseButton.on('click',function(e){e.preventDefault();accreditationApprovalInfo.slideUp(250) accreditationApprovalInfo.removeClass('active');return false;});}} function initCourseClearingIndicator(){let courseClearingIndicatorLink=$('.clearing-indicator-link');let courseClearingIndicatorSuffix=$('.clearing-indicator-suffix');if($(window).height()<700&&$(window).outerWidth(true)>992){if(!!courseClearingIndicatorLink){courseClearingIndicatorLink.addClass('reduced-height');} if(!!courseClearingIndicatorSuffix){courseClearingIndicatorSuffix.addClass('reduced-height');}}} $(document).ready(function(){initCoursePageBanner();initCourseClearingIndicator();});; if (!window['YT']) { var YT = { loading: 0, loaded: 0 }; } if (!window['YTConfig']) { var YTConfig = { 'host': 'http://www.youtube.com' }; } if (!YT.loading) { YT.loading = 1; (function () { var l = []; YT.ready = function (f) { if (YT.loaded) { f(); } else { l.push(f); } }; window.onYTReady = function () { YT.loaded = 1; for (var i = 0; i < l.length; i++) { try { l[i](); } catch (e) { } } }; YT.setConfig = function (c) { for (var k in c) { if (c.hasOwnProperty(k)) { YTConfig[k] = c[k]; } } }; var a = document.createElement('script'); a.type = 'text/javascript'; a.id = 'www-widgetapi-script'; a.src = 'https://s.ytimg.com/yts/jsbin/www-widgetapi-vflkAsU_-/www-widgetapi.js'; a.async = true; var c = document.currentScript; if (c) { var n = c.nonce || c.getAttribute('nonce'); if (n) { a.setAttribute('nonce', n); } } var b = document.getElementsByTagName('script')[0]; b.parentNode.insertBefore(a, b); })(); }; /*! @vimeo/player v2.16.2 | (c) 2021 Vimeo | MIT License | https://github.com/vimeo/player.js */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){"use strict";function r(e,t){for(var n=0;niframe{width:100%;height:100%;position:absolute;top:0;left:0}lite-vimeo>.ltv-playbtn{width:6.5em;height:4em;background:rgba(23,35,34,.75);z-index:1;opacity:.8;border-radius:.5em;transition:all .2s cubic-bezier(0,0,.2,1);outline:0;border:0;cursor:pointer}lite-vimeo:hover>.ltv-playbtn{background-color:#00adef;opacity:1}lite-vimeo>.ltv-playbtn:before{content:"";border-color:transparent transparent transparent #fff;border-style:solid;border-width:10px 0 10px 20px}lite-vimeo>.ltv-playbtn,lite-vimeo>.ltv-playbtn:before{position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0)}lite-vimeo.ltv-activated{cursor:unset}lite-vimeo.ltv-activated:before,lite-vimeo.ltv-activated>.ltv-playbtn{opacity:0;pointer-events:none}');var r=function(t){var e,n;function o(){return t.call(this)||this} n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.connectedCallback=function(){var t=this;this.videoId=encodeURIComponent(this.getAttribute("videoid"));var e=function(t){var e=t.width,n=t.height,o=e,i=n;return o%320!=0&&(o=100*Math.ceil(e/100),i=Math.round(o/e*n)),{width:o,height:i}}(this.getBoundingClientRect()),n=e.width,i=e.height,r=window.devicePixelRatio||1;n*=r,i*=r;var c,a="https://lite-vimeo-embed.now.sh/thumb/"+this.videoId;a+="."+((c=document.createElement("canvas")).getContext&&c.getContext("2d")&&0===c.toDataURL("image/webp").indexOf("data:image/webp")?"webp":"jpg"),a+="?mw="+n+"&mh="+i+"&q="+(r>1?70:85),this.style.backgroundImage='url("'+a+'")';var u=document.createElement("button");u.type="button",u.classList.add("ltv-playbtn"),this.appendChild(u),this.addEventListener("pointerover",o.t,{once:!0}),this.addEventListener("click",(function(){return t.o()}))},o.t=function(){o.preconnected||(i("preconnect","https://player.vimeo.com"),i("preconnect","https://i.vimeocdn.com"),i("preconnect","https://f.vimeocdn.com"),i("preconnect","https://fresnel.vimeocdn.com"),o.preconnected=!0)},r.o=function(){var t='\n';this.insertAdjacentHTML("beforeend",t),this.classList.add("ltv-activated")},o}(o(HTMLElement));customElements.define("lite-vimeo",r)}));;; function initVideo(){let videoWrappers=$('.vw');if(videoWrappers.length){let vimeoVideos=videoWrappers.filter('.vimeo');let youtubeVideos=videoWrappers.filter('.youtube');if(vimeoVideos.length){vimeoVideos.each(function(){let vimeoVideoWrapper=$(this);let vimeoVideo=vimeoVideoWrapper.find('.video').first();if(vimeoVideo.length){let playPauseTrigger=vimeoVideoWrapper.find('.play-pause-trigger').first();let player=new Vimeo.Player(vimeoVideo);player.on('play',function(){vimeoVideoWrapper.addClass('playing');});player.on('pause',function(){vimeoVideoWrapper.removeClass('playing');});playPauseTrigger.click(function(){if(vimeoVideoWrapper.hasClass('playing')){player.pause();} else{player.play();}});vimeoVideoWrapper.on('mousemove',function(){if(!vimeoVideoWrapper.hasClass('hover')){vimeoVideoWrapper.addClass('hover');setTimeout(function(){vimeoVideoWrapper.removeClass('hover');},2000);}});}});} if(youtubeVideos.length){youtubeVideos.each(function(){let playButton=this.querySelector('.video').shadowRoot.querySelector('#frame').querySelector('#playButton');$(playButton).attr('part','youtubePlayButton');$(this).find('.video').on('liteYoutubeIframeLoaded',function(){let youtubeVideo=this.shadowRoot.querySelector('iframe');if(youtubeVideo){new window.YT.Player(youtubeVideo,{events:{'onReady':function(event){event.target.playVideo();}}});}});});}}} function initVideosBanner(){let videosBanners=$('.bvw');if(videosBanners.length){let vimeoBanners=videosBanners.filter('.vimeo');let youtubeBanners=videosBanners.filter('.youtube');if(vimeoBanners.length){vimeoBanners.each(function(){let vimeoVideo=$(this).find('.video').first();if(vimeoVideo.length){$(this).find('.ltv-playbtn').click();let player=new Vimeo.Player(vimeoVideo);player.setVolume(0);player.setAutopause(false);player.setLoop(true);player.play();}});} if(youtubeBanners.length){youtubeBanners.each(function(){this.querySelector('.video').shadowRoot.querySelector('#frame').querySelector('#playButton').click();let youtubeVideo=this.querySelector('.video').shadowRoot.querySelector('iframe');$(youtubeVideo).attr('part','frame');if(youtubeVideo){new window.YT.Player(youtubeVideo,{events:{'onReady':function(event){event.target.playVideo();}}});}});}}} function initNoCookieVideos(){$('iframe:not([src]):not(.init)').each(function(){if($(this).contents().find('img').length>0){initNoCookieVideo(this);} else{setTimeout(initNoCookieVideos,200);}});} function initNoCookieVideo(video){$(video).contents().find('body').css('margin','0');$(video).contents().find('img').css('width','100%');$(video).contents().find('head').append('