PageSourceSearch

https://public.nrao.edu/wp-content/themes/nrao/js/main.min.js?ver=20160511

js nrao.edu collected 2026-09-24 08:28:55 UTC 5,670 bytes, 1 lines download raw bytes

1(function(document,history,location){var HISTORY_SUPPORT=!!(history&&history.pushState);var anchorScrolls={ANCHOR_REGEX:/^#[^ ]+$/,OFFSET_PADDING:10,init:function(){this.scrollToCurrent();jQuery(window).on("hashchange",jQuery.proxy(this,"scrollToCurrent"));jQuery("body").on("click","a",jQuery.proxy(this,"delegateAnchors"))},getFixedOffset:function(){offset=document.getElementById("masthead").offsetHeight;return offset+this.OFFSET_PADDING},scrollIfAnchor:function(href,pushToHistory){var match,anchorOffset;if(!this.ANCHOR_REGEX.test(href)){return false}match=document.getElementById(href.slice(1));if(match){anchorOffset=jQuery(match).offset().top-this.getFixedOffset();jQuery("html, body").animate({scrollTop:anchorOffset});if(HISTORY_SUPPORT&&pushToHistory){}}return!!match},scrollToCurrent:function(e){if(this.scrollIfAnchor(window.location.hash)&&e){e.preventDefault()}},delegateAnchors:function(e){var elem=e.target;if(this.scrollIfAnchor(elem.getAttribute("href"),true)){e.preventDefault()}}};jQuery(document).ready(jQuery.proxy(anchorScrolls,"init"))})(window.document,window.history,window.location);function copyCodeText(element){var $temp=jQuery("<textarea>");jQuery("body").append($temp);$temp.val(jQuery(element).text()).select();document.execCommand("copy");$temp.remove()}function resetMargin(){menuHeight=jQuery("#masthead").innerHeight();adminBarHeight=jQuery("#wpadminbar").innerHeight();jQuery("#content").css("margin-top",menuHeight-adminBarHeight)}function triggerStickyNav(){resetMargin();if(jQuery(window).scrollTop()>10){sitePrimaryHeader.addClass("sticky");resetMargin()}else{sitePrimaryHeader.removeClass("sticky");resetMargin()}}function checkAlert(){alert=jQuery(".alert-message");if(typeof Storage!=="undefined"){if(sessionStorage.homeIsDismissed=="true"){}else{alert.show();resetMargin()}}else{}}jQuery(document).ready(function($){resetMargin();checkAlert();jQuery("#alert-dismiss-button").click(function(){alert.hide();sessionStorage.homeIsDismissed=true;resetMargin()});var $container=jQuery("#tribe-events"),$body=jQuery("body");$container.on("mouseenter",'div[id*="tribe-events-event-"], div.event-is-recurring',function(){var bottomPad=0,$this=jQuery(this),$tip;bottomPad=$this.find("a").outerHeight()+18;$this.find(".tribe-events-tooltip").css("top",bottomPad).show();$this.find(".tribe-events-tooltip").css("bottom","inherit")}).on("mouseleave",'div[id*="tribe-events-event-"], div[id*="tribe-events-daynum-"]:has(a), div.event-is-recurring',function(){jQuery(this).find(".tribe-events-tooltip").stop(true,false).fadeOut(200)});jQuery("#top-open-popup-link").click(function(){jQuery("#PRimageidSelected").click()});jQuery(".open-popup-link").magnificPopup({type:"inline",alignTop:false,closeBtnInside:false,gallery:{enabled:true}});jQuery(".open-popup-link").click(function(){var w=jQuery(window).width();if(w>620){var thewidth=jQuery(".white-popup").children(".size-source").width();jQuery(".image-meta").children(".nrao-caption").css("width",thewidth);jQuery(".mfp-arrow").click(function(){var thewidth=jQuery(".white-popup").children(".size-source").width();jQuery(".image-meta").children(".nrao-caption").css("width",thewidth)})}});var $primaryNav=jQuery("#primary-site-navigation"),$primaryNavToggle=jQuery("#site-navigation-toggle"),$sitePrimaryHeader=jQuery("#masthead"),primaryNavMaxHeight=0;headerSearch=jQuery("#headerSearch");$primaryNavToggle.click(function(){$sitePrimaryHeader.toggleClass("nav-active");$primaryNav.slideToggle();headerSearch.toggleClass("header-search-mobile");resetMargin()});jQuery(".mytooltip").each(function(){var position=jQuery(this).position();position=position.left;var width=jQuery(window).width();if(width-position<230){jQuery(this).children(".tooltiptext").css("right",0);jQuery(this).children(".tooltiptext").addClass("righttooltip")}else{jQuery(this).children(".tooltiptext").css("left",0);jQuery(this).children(".tooltiptext").addClass("lefttooltip")}});jQuery(".glossary-word").hover(function(){jQuery(this).siblings(".tooltiptext").removeClass("mytooltip-hidden");jQuery(this).siblings(".tooltiptext").addClass("mytooltip-hover")},function(){jQuery(this).siblings(".tooltiptext").removeClass("mytooltip-hover");jQuery(this).siblings(".tooltiptext").addClass("mytooltip-hidden")});jQuery(".glossary-word").click(function(){jQuery(this).siblings(".tooltiptext").toggleClass("mytooltip-clicked")});jQuery(".tooltiptext").hover(function(){jQuery(this).removeClass("mytooltip-hidden");jQuery(this).addClass("mytooltip-hover")},function(){jQuery(this).removeClass("mytooltip-hover");jQuery(this).addClass("mytooltip-hidden")});jQuery(".close-tip").click(function(){jQuery(this).closest(".tooltiptext").removeClass("mytooltip-hover mytooltip-clicked");jQuery(this).closest(".tooltiptext").addClass("mytooltip-hidden")});function makeCopyButtons(){codes=jQuery("code");
1if(codes){codes.each(function(index){id="codeBox_"+index;jQuery(this).attr("id",id);jQuery(this).after("<button class='codeCopyButton' onClick='copyCodeText("+id+")'><i class='fas fa-copy'></i> Copy</button>")})}}makeCopyButtons()});sitePrimaryHeader=jQuery("#masthead");jQuery(window).scroll(function(){triggerStickyNav()});(function($){var allPanels=$(".nrao-accord-container > .nrao-accord-content").hide();$(".nrao-accord-container > .nrao-accord-heading").click(function(){var content=$(this).next();var up_arrow=$(this).children("#accord-up-arrow");var down_arrow=$(this).children("#accord-down-arrow");content.slideToggle("fast",function(){if(content.is(":hidden")){console.log("hidden");up_arrow.hide();down_arrow.show()}else{console.log("not hidden");up_arrow.show();down_arrow.hide()}});return false})})(jQuery);

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.