1// BEGIN: LOADERS 2jQuery(window).load(function () { 3 //Program Listing Loader 4 jQuery('.programs .loading').css('display','none'); 5 //Faculty Listing Loader 6 jQuery('.azContent .loading').css('display','none'); 7}) 8// END: LOADERS 9 10//BEGIN: HIDE MOBILE MENU FUNCTION 11function hideMobileNav() { 12 jQuery(".mobileOn .menu").animate({ "right": "-240px" }, 400, function () { 13 jQuery('.mobileOn .menu').hide().animate({ "right": "-240px" }, 300); 14 }); 15 jQuery('body').removeClass('mobileOn'); 16 jQuery('body').removeClass('disableScrolling'); 17} 18//END: HIDE MOBILE MENU FUNCTION 19 20// Mobile ACCORDION CONTROL 21function checkWidth(init) 22{ 23 /*If browser resized, check width again */ 24 if ($(window).width() < 944) { 25 $('.leftNav .left-nav').addClass('accordion'); 26 $('.leftNav .nav-drop').addClass('acc-row'); 27 $('.leftcol .col3').addClass('col12'); 28 $('.leftcol .col3').removeClass('col3'); 29 } 30 else { 31 if (!init) { 32 $('.leftNav .left-nav').removeClass('accordion'); 33 $('.leftNav .nav-drop').removeClass('acc-row'); 34 $('.leftcol .col12').addClass('col3'); 35 $('.leftcol .col12').removeClass('col12'); 36 } 37 } 38 39} 40 41 checkWidth(true); 42 $(window).resize(function() { 43 checkWidth(false); 44 }); 45 46// YouTube iframes referrerpolicy 47(function () { 48 function patchIframe(iframe) { 49 if ( 50 iframe && 51 iframe.tagName === 'IFRAME' && 52 /youtube\.com|youtube-nocookie\.com/.test(iframe.src || '') && 53 !iframe.hasAttribute('referrerpolicy') 54 ) { 55 iframe.setAttribute('referrerpolicy', 'strict-origin-when-cross-origin'); 56 } 57 } 58 document.querySelectorAll('iframe').forEach(patchIframe); 59 const observer = new MutationObserver(mutations => { 60 for (const m of mutations) { 61 for (const node of m.addedNodes) { 62 if (node.tagName === 'IFRAME') { 63 patchIframe(node); 64 } else if (node.querySelectorAll) { 65 node.querySelectorAll('iframe').forEach(patchIframe); 66 } 67 } 68 } 69 }); 70 observer.observe(document.body, { childList: true, subtree: true }); 71})(); 72 73// BEGIN: LOADERS 74jQuery(window).load(function () { 75 //Program Listing Loader 76 jQuery('.programs .featuredTab.loadingContent').css('visibility','visible'); 77 jQuery('.programs .loading').css('display','none'); 78 //Faculty Listing Loader 79 jQuery('.facultyTable.loadingContent').css('visibility','visible'); 80 jQuery('.azContent .loading').css('display','none'); 81}) 82// END: LOADERS 83 84jQuery(document).ready(function() { 85 // Use Enter Key for Main Menu 86 jQuery('#offcanvasMenu').keypress(function(e){ 87 if((e.keyCode ? e.keyCode : e.which) == 13){ 88 $(this).trigger('click'); 89 } 90 else if((e.keyCode ? e.keyCode : e.which) == 27){ 91 $(this).trigger('click'); 92 } 93 }); 94 95 // Use Enter Key for Main Search Menu 96 jQuery('#searchtoggle').keypress(function(e){ 97 if((e.keyCode ? e.keyCode : e.which) == 13){ 98 $(this).trigger('click'); 99 } 100 else if((e.keyCode ? e.keyCode : e.which) == 27){ 101 $(this).trigger('click'); 102 } 103 }); 104 105 // Use Enter Key for Inputs 106 jQuery('.accRow input:checkbox').keypress(function(e){ 107 if((e.keyCode ? e.keyCode : e.which) == 13){ 108 $(this).trigger('click'); 109 } 110 }); 111 $(document).keydown(function(e) { 112 if ($('input#offcanvasMenu').is(':checked')) { 113 if (e.keyCode == 27) { // escape key maps to keycode `27` 114 $('input#offcanvasMenu').trigger('click'); 115 } 116 } 117 }); 118 $(document).keydown(function(e) { 119 if ($('input#searchtoggle').is(':checked')) { 120 if (e.keyCode == 27) { // escape key maps to keycode `27` 121 $('input#searchtoggle').trigger('click'); 122 } 123 } 124 }); 125 //BEGIN: ARIA EXPANDED 126 jQuery(".alert input:checkbox, .leftnav input:checkbox, .accordionWrap input:checkbox").bind('click', function() { 127 if ($(this).attr('aria-expanded') == "true") { 128 $(this).attr('aria-expanded', false); 129 } else { 130 $(this).attr('aria-expanded', true); 131 } 132 }); 133 //END: ARIA EXPANDED 134 135 //BEGIN: LANDING PROGRAMS MAGNIFIC-POPUP 136 if (jQuery(".progList").length != 0) { 137 jQuery('.programLink').click(function() { 138 var currIndex = $(this).index(); 139 // alert( currIndex ); 140 var items = []; 141 jQuery( jQuery(this).attr('data-link') ).find('.programBox').each(function() { 142 items.push( { 143 src: jQuery(this) 144 } ); 145 }); 146 jQuery.magnificPopup.open({ 147 items:items, 148 mainClass: 'mfp-fade programs', 149 removalDelay: 160, 150 preloader: false, 151 fixedContentPos: true, 152 closeOnContentClick: false, 153 closeBtnInside: true, 154 gallery: { 155 enabled: true 156 }, 157 //callbacks: { 158 //buildControls: function() { 159 // re-appends controls inside the main container 160 //this.arrowLeft.appendTo(this.contentContainer); 161 //this.arrowRight.appendTo(this.contentContainer); 162 //} 163 //}, 164 },currIndex); 165 }); 166 // Show popup 167 jQuery("a.programLink").attr("data-link", "#programPop"); 168 169 var emptyCells, i; 170 jQuery(".programContainer").each(function() { 171 emptyCells = []; 172 for (i = 0; i < $(this).find(".programLink").length; i++) { 173 emptyCells.push($("<a>", { 174 class: "programLink is-empty" 175 })); 176 } 177 jQuery(this).append(emptyCells); 178 }); 179 } 180 //END: LANDING PROGRAMS MAGNIFIC-POPUP 181 182 //BEGIN: HOME IMPACT SLIDER
183 if (jQuery(".slider-main").length != 0) { 184 //BEGIN: HOME IMPACT SLIDER WITH VIDEO AND IMAGE 185 if (jQuery(".slider-main.video-image").length != 0) { 186 jQuery('.sliderHomeImpactBg').slick({ 187 slidesToShow: 1, 188 slidesToScroll: 1, 189 accessibility: false, 190 arrows: false, 191 useCSS: true, 192 dots: false, 193 fade: true, 194 autoplay: true, 195 speed: 300, 196 autoplaySpeed: 0, 197 pauseOnHover: false, 198 pauseOnFocus: false, 199 asNavFor: '.sliderHomeImpact' 200 }); 201 jQuery('.sliderHomeImpact').slick({ 202 slidesToShow: 1, 203 slidesToScroll: 1, 204 accessibility: false, 205 arrows: true, 206 useCSS: true, 207 pauseOnFocus: false, 208 pauseOnHover: false, 209 dots: false, 210 fade: true, 211 autoplay: true, 212 speed: 300, 213 autoplaySpeed: 0, 214 asNavFor: '.sliderHomeImpactBg' 215 }); 216 jQuery('.slider-main').on('afterChange', function(event, slick, currentSlide) { 217 var vid = $(slick.$slides[currentSlide]).find('video'); 218 if (vid.length > 0) { 219 jQuery('.slider-main').slick('slickPause'); 220 jQuery(vid).get(0).play(); 221 } 222 else { 223 if (currentSlide === 0) { 224 jQuery('.slider-main').slick("setOption", "autoplaySpeed", 0); 225 jQuery('.slider-main').slick("setOption", "speed", 0); 226 } 227 else { 228 jQuery('.slider-main').slick("setOption", "autoplaySpeed", 5000); 229 jQuery('.slider-main').slick("setOption", "speed", 300); 230 } 231 } 232 }); 233 jQuery('video').on('ended',function(){ 234 jQuery('.slider-main').slick('slickPlay'); 235 }); 236 } 237 //END: HOME IMPACT SLIDER WITH VIDEO AND IMAGE 238 239 //BEGIN: HOME IMPACT SLIDER WITH VIDEO 240 if (jQuery(".slider-main.video-only").length != 0) { 241 jQuery('.sliderHomeImpactBg').slick({ 242 slidesToShow: 1, 243 slidesToScroll: 1, 244 accessibility: false, 245 arrows: false, 246 useCSS: false, 247 pauseOnFocus: false, 248 pauseOnHover: false, 249 fade: true, 250 autoplay: true, 251 autoplaySpeed: 1, 252 asNavFor: '.sliderHomeImpact' 253 }); 254 jQuery('.sliderHomeImpact').slick({ 255 slidesToShow: 1, 256 slidesToScroll: 1, 257 accessibility: false, 258 arrows: true, 259 useCSS: true, 260 pauseOnFocus: false, 261 pauseOnHover: false, 262 dots: false, 263 fade: true, 264 autoplay: true, 265 autoplaySpeed: 5000, 266 asNavFor: '.sliderHomeImpactBg' 267 }); 268 jQuery('.slider-main.videos-only').on('afterChange', function(event, slick, currentSlide) { 269 var vid = $(slick.$slides[currentSlide]).find('video'); 270 if (vid.length > 0) { 271 $('.slider-main').slick('slickPause'); 272 $(vid).get(0).play(); 273 } 274 }); 275 jQuery('video').on('ended',function(){ 276 $('.slider-main').slick('slickPlay'); 277 }); 278 } 279 //END: HOME IMPACT SLIDER WITH VIDEO 280 281 //BEGIN: HOME IMPACT SLIDER WITH IMAGE 282 if (jQuery(".slider-main.image-only").length != 0) { 283 jQuery('.sliderHomeImpactBg').slick({ 284 slidesToShow: 1, 285 slidesToScroll: 1, 286 accessibility: false, 287 arrows: false, 288 useCSS: false, 289 pauseOnFocus: true, 290 pauseOnHover: true, 291 dots: false, 292 fade: true, 293 autoplay: true, 294 autoplaySpeed: 5000, 295 asNavFor: '.sliderHomeImpact' 296 }); 297 jQuery('.sliderHomeImpact').slick({ 298 slidesToShow: 1, 299 slidesToScroll: 1, 300 accessibility: false, 301 arrows: true, 302 useCSS: true, 303 pauseOnFocus: false, 304 pauseOnHover: false, 305 dots: false, 306 fade: true, 307 autoplay: true, 308 autoplaySpeed: 5000, 309 asNavFor: '.sliderHomeImpactBg' 310 }); 311 } 312 //END: HOME IMPACT SLIDER WITH IMAGE 313 314 // PLAY AND PAUSE BUTTONS FOR IMAGES 315 jQuery('.playSlide').css('display', 'none'); 316 jQuery('.pauseSlide').click(function() { 317 jQuery('.slider-main').slick('slickPause'); 318 jQuery('.playSlide').css('display', 'block'); 319 jQuery('.pauseSlide').css('display', 'none'); 320 }); 321 322 jQuery('.playSlide').click(function() { 323 jQuery('.slider-main').slick('slickPlay'); 324 jQuery('.playSlide').css('display', 'none'); 325 jQuery('.pauseSlide').css('display', 'block'); 326 }); 327 } 328 //END: HOME IMPACT SLIDER 329 330 //BEGIN: HOME CONNECT SLIDER 331 if (jQuery(".connect .slider").length != 0) { 332 jQuery('.connect .slider').slick({ 333 slidesToShow: 5, 334 slidesToScroll: 1, 335 accessibility: false, 336 arrows: true, 337 dots: false, 338 fade: false, 339 autoplay: false, 340 responsive: [ 341 { 342 breakpoint: 1400, 343 settings: { 344 slidesToShow: 4, 345 slidesToScroll: 1 346 } 347 }, 348 { 349 breakpoint: 960, 350 settings: { 351 slidesToShow: 3, 352 slidesToScroll: 1 353 } 354 }, 355 { 356 breakpoint: 720, 357 settings: { 358 slidesToShow: 2, 359 slidesToScroll: 1 360 } 361 }, 362 { 363 breakpoint: 580, 364 settings: { 365 slidesToShow: 1, 366 slidesToScroll: 1 367 } 368 } 369 ] 370 }); 371 } 372 //END: HOME CONNECT SLIDER 373 374 //BEGIN: MULTI-COLUMN SLIDER 375 if (jQuery(".multiColumn.active .multiColumns").length != 0) { 376 jQuery('.multiColumns').slick({ 377 slidesToShow: 4, 378 slidesToScroll: 1, 379 accessibility: false,
380 arrows: false, 381 dots: true, 382 fade: false, 383 autoplay: false, 384 responsive: [ 385 { 386 breakpoint: 960, 387 settings: { 388 slidesToShow: 3, 389 slidesToScroll: 1 390 } 391 }, 392 { 393 breakpoint: 720, 394 settings: { 395 slidesToShow: 2, 396 slidesToScroll: 1 397 } 398 }, 399 { 400 breakpoint: 580, 401 settings: { 402 slidesToShow: 1, 403 slidesToScroll: 1 404 } 405 } 406 ] 407 }); 408 } 409 //END: MULTI-COLUMN SLIDER 410 411 //BEGIN: SEARCH FOCUS 412 $("#searchtoggle").bind("change", function (e) { 413 if (this.checked) { 414 setTimeout(function () { 415 $("#customSearchText").focus(); 416 }, 500); 417 } 418 }); 419 //END: SEARCH FOCUS 420 421 //BEGIN: MENU CONTROLS 422 $("#academicsMainMenu").click( function() { 423 424 setTimeout(function () { 425 $("#academics").addClass("pseudoHover"); 426 $("#admissionsAndAid").removeClass("pseudoHover"); 427 428 }, 500); 429 430 }); 431 432 $("#admissionsAndAidMainMenu").click( function() { 433 434 setTimeout(function () { 435 $("#admissionsAndAid").addClass("pseudoHover"); 436 $("#academics").removeClass("pseudoHover"); 437 438 }, 500); 439 440 }); 441 442 $( ".menuItem" ).mouseover(function() { 443 444 $(".menuItem").removeClass("pseudoHover"); 445 446 }); 447 //END: MENU CONTROLS 448 449 //BEGIN: Alert Checkbox Persist 450 if (jQuery(".alert").length != 0) { 451 var checkboxValues = JSON.parse(localStorage.getItem('checkboxValues')) || {}, 452 $checkboxes = $(".alert :checkbox"); 453 $checkboxes.on("change", function(){ 454 $checkboxes.each(function(){ 455 checkboxValues[this.id] = this.checked; 456 }); 457 localStorage.setItem("checkboxValues", JSON.stringify(checkboxValues)); 458 }); 459 // On page load 460 $.each(checkboxValues, function(key, value) { 461 jQuery("#" + key).prop('checked', value); 462 }); 463 } 464 //END: Alert Checkbox Persist 465 466 //BEGIN: Intranet Main Menu Mobile 467 if (jQuery("body.intranet .mainNav").length != 0) { 468 jQuery('.menuItem > a +.menuItemContent').hide(); 469 jQuery('.menuItem > a').click(function(){ 470 jQuery(this).next(".menuItemContent").slideToggle(500); 471 }); 472 setTimeout(function() { 473 $(".menuItem:first-child > a").trigger('click'); 474 },10); 475 } 476 //END: Intranet Main Menu Mobile 477 478 //Faculty Filters 479 if (jQuery(".az-content").length != 0) { 480 var container = document.querySelector('[data-ref="container"]'); 481 var inputSearch = document.querySelector('[data-ref="input-search"]'); 482 var keyupTimeout; 483 var mixer = mixitup(container, { 484 animation: { 485 enable: false 486 }, 487 callbacks: { 488 onMixClick: function() { 489 // Reset the search if a filter is clicked 490 491 if (this.matches('[data-filter]')) { 492 inputSearch.value = ''; 493 } 494 } 495 } 496 }); 497 // Set up a handler to listen for "keyup" events from the search input 498 inputSearch.addEventListener('keyup', function() { 499 var searchValue; 500 if (inputSearch.value.length < 3) { 501 // If the input value is less than 3 characters, don't send 502 searchValue = ''; 503 } else { 504 searchValue = inputSearch.value.toLowerCase().trim(); 505 } 506 // Very basic throttling to prevent mixer thrashing. Only search 507 // once 350ms has passed since the last keyup event 508 clearTimeout(keyupTimeout); 509 keyupTimeout = setTimeout(function() { 510 filterByString(searchValue); 511 }, 350); 512 }); 513 /** 514 * Filters the mixer using a provided search string, which is matched against 515 * the contents of each target's "class" attribute. Any custom data-attribute(s) 516 * could also be used. 517 * 518 * @param {string} searchValue 519 * @return {void} 520 */ 521 function filterByString(searchValue) { 522 if (searchValue) { 523 // Use an attribute wildcard selector to check for matches 524 mixer.filter('[data-attribute*="' + searchValue + '"]'); 525 } else { 526 // If no searchValue, treat as filter('all') 527 mixer.filter('all'); 528 } 529 } 530 } 531 532 // Homepage Video Playback 533 if (jQuery("#fullVideo").length != 0) { 534 535 jQuery("video").prop('muted', true); 536 jQuery("video").click( function (){ 537 if( jQuery("video").prop('muted') ) { 538 jQuery("video").prop('muted', false); 539 this.play(); 540 } else { 541 jQuery("video").prop('muted', true); 542 } 543 }); 544 } 545 546 //BEGIN: Fixed Header No Alert 547 if (jQuery(".alert").length != 0) { 548 549 jQuery(window).scroll (function () { 550 if( jQuery(window).scrollTop() == 0 ){ 551 jQuery(".alert").css("position","relative"); 552 jQuery(".header").css("position","relative"); 553 jQuery(".header").css("margin-top", "0px"); 554 jQuery(".mega-menu-bg nav.nav-global").css("padding-top", "0px"); 555 jQuery( "input.alert-toggle" ).on( "click", function() { 556 jQuery(".header").css("margin-top", "0px"); 557 jQuery(".mega-menu-bg nav.nav-global").css("padding-top", "0px"); 558 }); 559 } 560 else if( jQuery(window).scrollTop() > 0 ){ 561 562 var alertHeight = jQuery("#alert-message").height(); 563 564 jQuery(".alert").css({"position" : "fixed", "top" : "0" }); 565 jQuery(".header").css("position","fixed"); 566 jQuery(".header").css("margin-top", alertHeight + "px"); 567 jQuery(".mega-menu-bg nav.nav-global").css("padding-top", alertHeight + 40 + "px"); 568 jQuery( "input.alert-toggle" ).on( "click", function() { 569 var alertHeight = jQuery("#alert-message").height(); 570 jQuery(".header").css("margin-top", alertHeight + "px"); 571 jQuery(".mega-menu-bg nav.nav-global").css("padding-top", alertHeight + 40 + "px"); 572 }); 573 } 574 }); 575 }else{ 576 jQuery(window).scroll (function () { 577 if( jQuery(window).scrollTop() == 0 ){ 578 jQuery(".alert").css("position","relative"); 579 jQuery(".header").css("position","relative"); 580 } 581 else if( jQuery(window).scrollTop() > 0 ){ 582 jQuery(".alert").css({"position" : "fixed", "top" : "0" }); 583 jQuery(".header").css("position","fixed"); 584 } 585 }); 586 } 587 //END: Fixed Header No Alert 588 589 // BEGIN: Top Nav Menu 590 jQuery(function(){ 591 var $topmenulink = $('#topmenutoggle div'); 592 var $topmenubar = $('#topmenubar');
593 jQuery("#topmenutoggle").css("opacity", "1"); 594 jQuery(".mega-menu-trigger.no-js").css("display", "none"); 595 jQuery('.main-nav > ul li a.mega-menu-trigger').on('click', function(e){ 596 e.preventDefault(); 597 jQuery(".mega-wrapper").toggleClass("on"); 598 if($(this).attr('id') == 'topmenutoggle') { 599 if(!$topmenubar.is(":visible")) { 600 // if invisible we switch the icon to appear collapsable 601 $topmenulink.removeClass('menu-icon-off').addClass('menu-icon-on'); 602 jQuery('.search-icon-off').hide(); 603 } else { 604 // if visible we switch the icon to appear as a toggle 605 $topmenulink.removeClass('menu-icon-on').addClass('menu-icon-off'); 606 jQuery('.search-icon-off').show(); 607 } 608 609 $topmenubar.slideToggle(300, function(){ 610 // callback after search bar animation 611 }); 612 } 613 }); 614 }); 615 616 window.__gcse = { 617 callback: googleCSELoaded 618 }; 619 function googleCSELoaded() { 620 // The hook in question. 621 $("#customSearch").click(function() { 622 var searchText = $("#customSearchText").val(); 623 console.log(searchText); 624 var element = google.search.cse.element.getElement('searchOnlyCSE'); 625 element.execute(searchText); 626 }) 627 $('#customSearchText').keydown(function (event) { 628 var keypressed = event.keyCode || event.which; 629 var searchText = $("#customSearchText").val(); 630 console.log(searchText); 631 var element = google.search.cse.element.getElement('searchOnlyCSE'); 632 if (keypressed == 13) { 633 element.execute(searchText); 634 } 635 }); 636 } 637 638 // END: Top Nav Menu 639 640 //BEGIN: Back to Top Link 641 jQuery('#topLink').hide(); 642 jQuery(window).scroll(function () { 643 if (jQuery(this).scrollTop() > 100) { 644 jQuery('#topLink').fadeIn(); 645 } else { 646 jQuery('#topLink').fadeOut(); 647 } 648 }); 649 jQuery('#topLink').click(function () { 650 jQuery("html, body").animate({ 651 scrollTop: 0 652 }, 600); 653 return false; 654 }); 655 //END: Back to Top Link 656 657 //BEGIN: HOME MORE INFO INDICATOR 658 if (jQuery("#topLinkHome").length != 0) { 659 jQuery(window).scroll(function () { 660 if (jQuery(this).scrollTop() < 100) { 661 jQuery('#topLinkHome').fadeIn(); 662 } else { 663 jQuery('#topLinkHome').fadeOut(); 664 } 665 }); 666 jQuery('#topLinkHome').click(function () { 667 jQuery("html, body").animate({ 668 scrollTop: $("#homeIntro").offset().top -130 669 }, 600); 670 return false; 671 }); 672 } 673 //END: HOME MORE INFO INDICATOR 674 675 //BEGIN: SPOTLIGHT SLIDER 676 if (jQuery(".spotlight").length != 0) { 677 jQuery('.spotlight').slick({ 678 autoplay: false, 679 autoplaySpeed: 7500, 680 fade: true, 681 speed: 1500, 682 asNavFor: '.spotlight-nav', 683 accessibility: false, 684 adaptiveHeight: true 685 }); 686 } 687 if (jQuery(".spotlight-nav").length != 0) { 688 jQuery('.spotlight-nav').slick({ 689 autoplay: false, 690 dots: false, 691 asNavFor: '.spotlight', 692 slidesToShow: 4, 693 slidesToScroll: 1, 694 focusOnSelect: true, 695 infinite: false, 696 arrows: true, 697 accessibility: false, 698 nextArrow:'<div class="spotlight-nav-next"><img alt="" src="/_global/images/icons/Right.svg"/></div>', 699 prevArrow:'<div class="spotlight-nav-prev"><img alt="" src="/_global/images/icons/Left.svg"/></div>', 700 responsive: [ 701 { 702 breakpoint: 1024, 703 settings: { 704 slidesToShow: 3, 705 slidesToScroll: 1, 706 dots: false, 707 arrows: true 708 } 709 }, 710 { 711 breakpoint: 600, 712 settings: { 713 slidesToShow: 2, 714 slidesToScroll: 1, 715 dots: false, 716 arrows: true 717 } 718 } 719 ] 720 }); 721 } 722 //END: SPOTLIGHT SLIDER 723 724 //BEGIN: LANDING SLIDER WITH IMAGE AND TEXT 725 if (jQuery(".landing-slider").length != 0) { 726 jQuery(".landing-slider").slick({ 727 slidesToShow: 1, 728 slidesToScroll: 1, 729 arrows: true, 730 dots: false, 731 fade:true, 732 accessibility: false, 733 responsive: [ 734 { 735 breakpoint: 1060, 736 settings: { 737 slidesToShow: 1, 738 slidesToScroll: 1 739 } 740 } 741 ] 742 }); 743 } 744 745 //BEGIN: INTRANET LANDING SLIDER WITH IMAGE AND TEXT 746 if (jQuery(".intranet-landing-slider").length != 0) { 747 jQuery(".intranet-landing-slider").slick({ 748 slidesToShow: 1, 749 slidesToScroll: 1, 750 arrows: true, 751 dots: false, 752 accessibility: false, 753 adaptiveHeight: true, 754 responsive: [ 755 { 756 breakpoint: 1060, 757 settings: { 758 slidesToShow: 1, 759 slidesToScroll: 1 760 } 761 } 762 ] 763 }); 764 } 765 766 //BEGIN: YOUTUBE POPUP MAGNIFIC-POPUP 767 if (jQuery(".popup-youtube").length != 0) { 768 jQuery('.popup-youtube').magnificPopup({ 769 type: 'iframe', 770 mainClass: 'mfp-fade', 771 removalDelay: 160, 772 preloader: false,
773 fixedContentPos: false 774 }); 775 } 776 //END: YOUTUBE POPUP MAGNIFIC-POPUP 777 778 //BEGIN: VIDEO PLAY BUTTON WHITE 779 var v; 780 v = document.getElementsByClassName("youtube"); 781 if (v.length > 0) { 782 s = document.createElement("style"); 783 s.type = "text/css"; 784 s.innerHTML = '.youtube{max-width:99%; height:auto;position:relative;cursor:pointer} .play{filter:alpha(opacity=70);opacity:.7;background-size:75%; width:52px; height:53px; position: absolute; top : 50%; left : 50%; transform: translate(-50%, -50%);background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA1CAYAAAAOJMhOAAAC4ElEQVRogd2a4XHiMBCFvzBpwC34SuBK8JXAlUBKICVwJZASciXgEkgJTglQwt4P2cEnbO3Ktgzxm9lhBrC1T293La/0JCIkRF5bG2XKAZ8nvNcaKOrPvP7swwX4aFlZfzcaTyMVyoENsOVWiVj8bdlwiMgQy0XkIGlQich2oF/RhDIR2SUi4uMkIkVKQmtxszc39hE+mgnNpUofTuLCXPXVUhQOuKS/Ny7AL1xV7IVGaCiZkmsp/vR+a8p6QXxl1EkF5IutYkdx1SmzhIZc83IvIueIcc71dVE5tI0kEl2NPGuqp5XYSXomrm/WLDc+106MIeJbXk+QBQcroZORTK/sE5g13DcaIUt57pN7LfE5FDJL2Ff+eH4ca6F2lu7nwdb7z1ShuDeQ+m+sWHX6wqwr7gctXTrsXfHpLC2V2hdq6oRmPZTI72J8yveYJXK+fLPGa6UMqlWmsWFo9s8qq7act5baSjoqk9G0hfG6TUhzQhvMSqjBUeLDUFNpJyKs6jVVCOPeILtRABWwAzLjNZofBcCK8Lu/5UZjsMcRsyyAL4ovJkJNMyMlMtyq/qj4gsGXfEVY8tRk2iiAE45cn08mQqFZmZNQgy3X/PKh+bPWFJqkVzYAGS6/fFKqP6sk7kwHrQLf4NEJRbeNV4RltD4jpsYFeAX+eN+r/qwIJ5pWRlPgDfjBLRkwlPVnwgrNSajEqTJmgj81hTLDTcbiArxg6LkZfFEJgdtdSIVXXHi9Gf6bKb6U4HJIqyQpCJVc88T6rNP8+CIE4UVfznSt4E/gNy68/I6qhq6VQxtOGOO7xrd7Y11cTwFZYNfH2pfraiQ+ZF/OqlKoc7rp+S1F3ogondPGLL3tSr5Jb7uZ6UXtPljlbvDw+0OxsreJ3X0Hb3F7rIvbBbe8gr/gVsX3xAfwE0sXKjLeF3OSxK9GcyD5WR//efGQp7EWd15uLKE22icam9IcQskDnmjUMPuZ038yi2eJoiWiAwAAAABJRU5ErkJggg==") no-repeat}'; 785 document.body.appendChild(s) 786 } 787 //END: VIDEO PLAY BUTTON WHITE 788 789 //BEGIN: INFOGRAPHICS HOME AND LANDING SLIDERS 790 if (jQuery(".container.infographics").length != 0) { 791 jQuery('.container.infographics .one-row').slick({ 792 slidesToShow: 3, 793 slidesToScroll: 3, 794 accessibility: false, 795 arrows: false, 796 dots: true, 797 fade: false, 798 autoplay: false, 799 responsive: [ 800 { 801 breakpoint: 960, 802 settings: { 803 slidesToShow: 2, 804 slidesToScroll: 2 805 } 806 }, 807 { 808 breakpoint: 580, 809 settings: { 810 slidesToShow: 1, 811 slidesToScroll: 1 812 } 813 } 814 ] 815 }); 816 } 817 //END: INFOGRAPHICS HOME AND LANDING SLIDERS 818 819 //News Listing Category Filter 820 if (jQuery("select[name=categoryDropdown]").length > 0) { 821 jQuery("select[name=categoryDropdown]").change(function () { 822 var showingCategory = $(this).val().replace(/ /g, '_'); 823 if (showingCategory != "") { 824 jQuery(".newsItem:not(." + showingCategory + ")").hide(); 825 jQuery(".newsItem." + showingCategory).show(); 826 } else { 827 jQuery(".newsItem").show(); 828 } 829 }); 830 } 831 //End News Listing Category Filter 832 833 //BEGIN: TOGGLE NEWS YEARS 834 var $menuNewsYears = jQuery('.newsYears'); 835 jQuery(document).mouseup(function (e) { 836 if (!$menuNewsYears.is(e.target) // if the target of the click isn't the container... 837 && $menuNewsYears.has(e.target).length === 0) // ... nor a descendant of the container 838 { 839 $menuNewsYears.removeClass('open'); 840 if(jQuery(".newsYears").hasClass('open')) { 841 jQuery("#toggleNewsYears").attr('aria-expanded', true); 842 } else { 843 jQuery("#toggleNewsYears").attr('aria-expanded', false); 844 } 845 jQuery("#newsYears").slideUp("slow"); 846 } 847 }); 848 jQuery('#toggleNewsYears').click(function () { 849 $menuNewsYears.toggleClass('open'); 850 if(jQuery(".newsYears").hasClass('open')) { 851 jQuery("#toggleNewsYears").attr('aria-expanded', true); 852 } else { 853 jQuery("#toggleNewsYears").attr('aria-expanded', false); 854 } 855 jQuery("#newsYears").slideToggle("slow"); 856 }); 857 // ESC Mobile Menu 858 $(document).keydown(function(e) { 859 if (e.keyCode == 27) { // escape key maps to keycode '27' 860 jQuery('.newsYears.open > #toggleNewsYears').trigger('click'); 861 } 862 }); 863 //END: TOGGLE NEWS YEARS 864 865 // START: PROGRAMS DATA TABLE 866 // All Programs 867 if (jQuery(".programs.all").length != 0){ 868 jQuery('table.display').DataTable( { 869 "paging": false, 870 "columnDefs": [ 871 { 872 "targets": [ 4 ], 873 "visible": false 874 } 875 ], 876 language: { 877 searchPlaceholder: "Search", 878 search: "" 879 } 880 }); 881 } 882 // Local Programs 883 if (jQuery(".programs.local").length != 0){ 884 jQuery('table.display').DataTable( { 885 "paging": false, 886 "columnDefs": [ 887 { 888 "targets": [ 3 ], 889 "visible": false 890 } 891 ], 892 language: { 893 searchPlaceholder: "Search", 894 search: "" 895 } 896 }); 897 } 898 // Online Programs 899 if (jQuery(".programs.online").length != 0){ 900 jQuery('table.display').DataTable( { 901 "paging": false, 902 "columnDefs": [ 903 { 904 "targets": [ 2 ], 905 "visible": false 906 } 907 ], 908 language: { 909 searchPlaceholder: "Search", 910 search: "" 911 } 912 }); 913 } 914 915 if (jQuery(".programs .featuredTab").length != 0){ 916 $(function () { 917 //FEATURED TABS 918 jQuery('.featuredTab').responsiveTabs({ 919 rotate: false, 920 collapsible: 'accordion', 921 setHash: false, 922 scrollToAccordion: false, 923 activate: function (event, ui) { 924 var oTable = $('div.dataTables_scrollBody>table:visible', ui.panel).dataTable(); 925 if (oTable.length > 0) { 926 oTable.fnAdjustColumnSizing(); 927 } 928 } 929 }); 930 }); 931 } 932 // END: PROGRAMS DATA TABLE 933});
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.