<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(document).ready(function ($) {
	// Open external links in new tab
	/*$('a[href^=http]').click(function () {
		var a = new RegExp('/' + window.location.host + '/');
		if (!a.test(this.href)) {
			window.open(this.href);
			return false;
		}
	});*/

	function setHeight() {
		windowHeight = jQuery(window).innerHeight();
		leaveHeight = jQuery('header').innerHeight();
		bannerHeight = windowHeight - leaveHeight;
		jQuery('#main-banner').css('height', windowHeight);
		jQuery('#main-banner .table-wrapper').css('padding-top', leaveHeight);
	}
	setHeight();
	jQuery(window).resize(function () {
		setHeight();

		dropdownClick();
		if ($('body').hasClass('touch-device') &amp;&amp; !checkTouchDevice()) {
			$('body').removeClass('touch-device');
		} else if (checkTouchDevice()) {
			$('body').addClass('touch-device');
		}
	});

  /*Fix popup youtubr-channel*/
  /*$('.ytc_thumb').magnificPopup({
    type: 'iframe',
    mainClass: 'mfp-fade',
    removalDelay: 400,
    preloader: false,
    iframe: {
      patterns: {
        youtube: {
          index: 'youtube.com',
          id: 'v=',
          src: 'https://www.youtube.com/embed/%id%?rel=0&amp;autoplay=1'
        }
      }
    },
  });*/

	/* Touch device check */
	if ($('body').hasClass('touch-device') &amp;&amp; !checkTouchDevice()) {
		$('body').removeClass('touch-device');
	} else if (checkTouchDevice()) {
		$('body').addClass('touch-device');
	}
	function checkTouchDevice() {
		return 'ontouchstart' in window || navigator.maxTouchPoints &gt; 0 || navigator.msMaxTouchPoints &gt; 0;
	}
	//detect ios or mac devices to correct css
	var is_OSX = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
	if (is_OSX) {
		$('body').addClass('osx-device');
	}

	/* touch tap menu */
	$(document).click(function (e) {
		if (!(e.target.matches("li.menu-item-has-children &gt; a")) || (e.target.closest(".sub-menu") != null)) {
			$('header #menu-header-menu &gt; li.menu-item-has-children &gt; a').parent().removeClass('touch-device-clicked');
			console.log('outside');
		}
	});
	function dropdownClick() {
		if ($('body').hasClass('touch-device')) {
			$('header #menu-header-menu &gt; li.menu-item-has-children &gt; a').click(function (e) {
				var clickedMenuLink = $(this),
					dropdownMenuItem = clickedMenuLink.parent();
				$('header #menu-header-menu &gt; li.menu-item-has-children &gt; a').not(this).parent().removeClass('touch-device-clicked');
				dropdownMenuItem.toggleClass('touch-device-clicked');
				if (dropdownMenuItem.hasClass('touch-device-clicked')) {
					e.preventDefault();
				}
			});
		}
	}
	dropdownClick();

});

jQuery(document).ready(function ($) {
	$(".scrollbar").click(function (event) {
		event.preventDefault();
		$('html,body').animate({ scrollTop: $(this.hash).offset().top }, 1000);
	});
});


jQuery(document).ready(function ($) {
	console.log("document is ready");
	$('[data-toggle="offcanvas"], #navToggle').on('click', function () {
		$('.offcanvas-collapse').toggleClass('open')
	})
});

window.onload = function () {
	console.log("window is loaded");
};

function openNav() {
	document.getElementById("mySidenav").style.width = "100%";
}

function closeNav() {
	document.getElementById("mySidenav").style.width = "0";
}



//jQuery(document).ready(function(){
//function checkWidth() {
//       var windowSize = jQuery(window).width();

//       if (windowSize &gt;= 768) {
//          jQuery(window).scroll(function() {
//       var scroll = jQuery(window).scrollTop();
//       if (scroll &gt;= 1) {
//          jQuery("header").addClass('smaller');


//       } else {
//          jQuery("header").removeClass("smaller");


//       }
//      });
//       } else{
//     $(window).scroll(function() {
//       var scroll = $(window).scrollTop();
//       if (scroll &gt;= 6000) {
//          $("header").addClass('smaller');


//       } else {
//          $("header").removeClass("smaller");


//       }
//      });
//     }
//      }
//      // Execute on load
//      checkWidth();
//      // Bind event listener
//      $(window).resize(checkWidth)

//   });

jQuery(document).ready(function () {
	function setHeight() {
		windowHeight = jQuery(window).innerHeight();
		// leaveHeight = jQuery('#main-header').innerHeight();
		// bannerHeight = windowHeight-leaveHeight;
		bannerHeight = windowHeight;
		jQuery('#experience-page').css('height', bannerHeight);
	}
	setHeight();

	jQuery(window).resize(function () {
		setHeight();
	});
});



/*header background*/
jQuery(window).on("scroll", function () {
	if (jQuery(window).scrollTop() &gt; 50) {
    jQuery("header").addClass("smaller");
	} else {
		//remove the background property so it comes transparent again (defined in your css)
    jQuery("header").removeClass("smaller");
	}
});

jQuery(document).ready(function ($) {

	/*  Play video on homepage  */
	$('.play_button').click(function () {
		var nbcVideo = $('#nbc_video');
		// $('iframe#nbcLMP15207673519').show();
		// $("iframe#nbcLMP15207673519").css({ "display": "block" });
		$('.hide-content').hide();
		console.log(nbcVideo);
		nbcVideo[0].paused ? nbcVideo[0].play() : nbcVideo[0].pause();
	});

	/* Play Video in News Video Section */
	$('.play-btn').click(function () {
		var videoItem = $('.video-news-item .video-item');
		$('.video-news-cover').hide();
		videoItem[0].paused ? videoItem[0].play() : videoItem[0].pause();
	});

	/* Accordion */
	if ($('.accordion-block').length) {
		$('.accordion-toggler').on('click', function () {
			console.log($(this));
			var clickedAccordionToggle = $(this);
			$(clickedAccordionToggle).toggleClass('accordion-toggler--active');
			$(clickedAccordionToggle).next('.accordion-content').slideToggle('800');
		});
	}
	/* Close floating panel on Homepage on click */
	if ($('.floating-info-panel').length) {
		$('.floating-info-panel .floating-panel-close').on('click', function (e) {
			e.preventDefault();
			$('.floating-info-panel').removeClass('floating-info-panel--visible');
		});
	}
});

/*  Play video on homepage  click autoplay video*/
// $('.play_button').on('click', function () {
// 	$('#nbcLMP15207673519').trigger('click');
// });

jQuery(document).ready(function ($) {
	let articleBox = $('.page-content h2:first-of-type');
	let metaPostTags = $('.page-content .author-info');

	if (articleBox.length || metaPostTags.length) {
		let h2First = $('.page-content  .author-info');
		let pFirst = $('.page-content  h2:first-of-type');

		if (h2First.length) {
			h2First.before(articleBox);
			h2First.after(metaPostTags);
		}
		else {
			pFirst.before(articleBox);
			pFirst.before(metaPostTags);
		}
	}
});



</pre></body></html>