PageSourceSearch

https://netif-nepal.org/wp-content/themes/affinger5/js/base.js?ver=6.9.5

js netif-nepal.org collected 2026-09-27 10:30:57 UTC 13,241 bytes, 1 lines download raw bytes

1new function(){var e="footer";var b="fixed-footer";function a(){var h=document.getElementsByTagName("body")[0].clientHeight;document.getElementById(e).style.top="0px";var i=document.getElementById(e).offsetTop;var f=document.getElementById(e).offsetHeight;if(window.innerHeight){var g=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight!=0){var g=document.documentElement.clientHeight}}if(i+f<g){document.getElementById(e).style.position="relative";document.getElementById(e).style.top=(g-f-i-1)+"px";if(document.body.classList){document.body.classList.add(b)}else{document.body.className+=" "+b}}else{if(document.body.classList){document.body.classList.remove(b)}else{document.body.className=document.body.className.replace(new RegExp("(^|\\b)"+b+"(\\b|$)","gi")," ")}}}function c(h){var i=document.createElement("div");var g=document.createTextNode("S");i.appendChild(g);i.style.visibility="hidden";i.style.position="absolute";i.style.top="0";document.body.appendChild(i);var f=i.offsetHeight;function j(){if(f!=i.offsetHeight){h();f=i.offsetHeight}}setInterval(j,1000)}function d(i,g,f){try{i.addEventListener(g,f,false)}catch(h){i.attachEvent("on"+g,f)}}d(window,"load",a);d(window,"load",function(){c(a)});d(window,"resize",a)};jQuery(function(){var a=jQuery("#page-top");a.hide();jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>400){a.fadeIn()}else{a.fadeOut()}});a.click(function(){jQuery("body,html").animate({scrollTop:0},800);return false})});(function(l,e,f,b){var c=(function o(){var q=document.createElement("div");var s={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var r in s){if(!Object.prototype.hasOwnProperty.call(s,r)){continue}if(q.style[r]!==b){return s[r]}}}());function m(){return(f.is_mobile==="1")}function p(){return{click:function(q){q.preventDefault();q.stopPropagation();if(this.isClickable()){if(m()){this.getRoot().data("st-menu").collapseChildren(false)}l.location.href=this.getLink().attr("href");return}this.toggle()},mouseenter:function(){if(m()){return}this.expand()},mouseleave:function(){if(m()){return}this.collapse()}}}function d(){return{click:function(q){q.preventDefault();q.stopPropagation();if(this.isClickable()){l.location.href=this.getLink().attr("href");return}this.toggle()},mouseenter:function(){},mouseleave:function(){}}}var n=(function(){function C(F,G){if(!(this instanceof C)){return new C(F)}var H={listener:{click:function(){},mouseenter:function(){},mouseleave:function(){}},expanded:false,hoverable:false,link:null,children:null,icon:false};this.$element=F;this.options=e.extend({},H,G);if(!this.options.link){this.options.link=function(){return this.$element.find("> a")}}if(!this.options.children){this.options.children=function(){return this.$element.find("> ul")}}this.expanded=this.options.expanded;this.$icon=null}C.prototype.getElement=function s(){return this.$element};C.prototype.hasParent=function E(){var F=false;this.$element.parents().each(function(){if(typeof e(this).data("st-menu-item")!=="undefined"){return false}});return F};C.prototype.getRoot=function A(){var F=this.$element;this.$element.parents().each(function(){var G=e(this);if(typeof G.data("st-menu-item")!=="undefined"){F=G}});return F};C.prototype.getIcon=function z(){this.$icon=this.$icon||e("<i></i>").prependTo(this.getLink());return this.$icon};C.prototype.getLink=function y(){if(typeof this.options.link==="function"){return this.options.link.bind(this)()}else{return e(this.options.link).eq(0)}};C.prototype.hasChildren=function w(){if(typeof this.options.children==="function"){return this.options.children.bind(this)().length}else{return e(this.options.children).length}};C.prototype.isExpanded=function r(){return this.expanded};C.prototype.isClickable=function u(){if(!this.getLink().length){return false}return(!this.hasChildren()||(this.hasChildren()&&this.isExpanded()))};C.prototype.initialize=function q(){if(this.options.icon){this.$icon=e("<i></i>");this.getLink().prepend(this.$icon)}this.refresh(false);this.addEventListener()};C.prototype.refresh=function x(F){F=(typeof F!=="undefined")?F:true;if(this.expanded||!this.hasChildren()){this.expand(F)}else{this.collapse(F)}};C.prototype.expand=function D(H){var F=this;var G=this.$element.find("> ul");this.expanded=true;H=(typeof H!=="undefined")?H:true;if(H&&G.length){G.animate({marginTop:"show",marginBottom:"show",paddingTop:"show",paddingBottom:"show",height:"show"},"fast",function(){if(F.options.icon){F.getIcon().attr({"class":"fa fa-angle-right"})}F.$element.removeClass("menu-item-collapsed").addClass("menu-item-expanded")})}else{G.show();if(F.options.icon){this.getIcon().attr({"class":"fa fa-angle-right"})}this.$element.removeClass("menu-item-collapsed").addClass("menu-item-expanded")}};C.prototype.collapse=function B(H){var F=this;var G=this.$element.find("> ul");this.expanded=false;H=(typeof H!=="undefined")?H:true;if(H&&G.length){G.slideUp("fast",function(){if(F.options.icon){F.getIcon().attr({"class":"fa fa-angle-down"})}F.$element.removeClass("menu-item-expanded").addClass("menu-item-collapsed")})}else{G.hide();if(G.length&&F.options.icon){this.getIcon().attr({"class":"fa fa-angle-down"})}this.$element.removeClass("menu-item-expanded").addClass("menu-item-collapsed")}};C.prototype.toggle=function v(){if(!this.hasChildren()){return}this.expanded?this.collapse():this.expand()};C.prototype.addEventListener=function t(){this.getLink().click(e.proxy(this.options.listener.click,this));if(this.options.hoverable){this.$element.hover(e.proxy(this.options.listener.mouseenter,this),e.proxy(this.options.listener.mouseleave,this))}};return C}());var i=(function(){function s(u,v){if(!(this instanceof s)){return new s()}var w={expanded:false,hoverable:false,link:null,children:null,icon:false};this.$element=u;this.options=e.extend({},w,v)}s.prototype.initialize=function q(){var u=this;this.getMenuItems().each(function(){var y=e(this);var x=u.options.hoverable?p():d();var v={listener:x,expanded:u.options.expanded,hoverable:u.options.hoverable,link:u.options.link,children:u.options.children,icon:u.options.icon};var w=new n(y,v);y.data("st-menu",u);y.data("st-menu-item",w);w.initialize()})};s.prototype.getMenuItems=function r(){return this.$element.find("li")};s.prototype.collapseChildren=function t(u){this.getMenuItems().each(function(){e(this).data("st-menu-item").collapse(u)})};s.prototype.expandChildren=function t(u){this.getMenuItems().each(function(){e(this).data("st-menu-item").expand(u)})};return s}());var a=(function(){function u(C,z,y,B,x){var A={expanded:false,$navigationContent:C,hoverable:false,link:null,children:null,icon:true};this.$navigation=C;this.$menu=z;this.$toggle=y;this.$container=B;this.options=e.extend({},A,x);this.opened=false;this.scrollTop=0}u.prototype.isOpened=function t(){return this.opened};u.prototype.open=function r(){var x=this;if(x.opened){return}x.scrollTop=e(l).scrollTop();if(x.options.expanded){x.$menu.each(function(){var y=e(this).data("st-menu");y.expandChildren(false)})}else{x.$menu.each(function(){var y=e(this).data("st-menu");y.collapseChildren(false)})}x.$toggle.addClass("active");e("html").addClass("s-navi-active");x.$container.css({top:-x.scrollTop});
1if(l.innerHeight){x.$navigation.one(c,function(){var y=(l.innerHeight===document.body.offsetHeight)?l.innerHeight:document.body.offsetHeight;setTimeout(function(){x.options.$navigationContent.css({height:y+"px"})},250)})}x.options.$navigationContent.scrollTop(0);x.opened=true};u.prototype.close=function w(){var x=this;if(!x.opened){return}x.$toggle.removeClass("active");e("html").removeClass("s-navi-active");x.options.$navigationContent.css({height:""});x.$container.css({top:""});e(l).scrollTop(x.scrollTop);x.opened=false};u.prototype.refresh=function s(){var y=this;if(!y.opened){return}if(l.matchMedia&&l.matchMedia("screen and (min-width: 960px)").matches){y.close();return}var x=(l.innerHeight===document.body.offsetHeight)?l.innerHeight:document.body.offsetHeight;y.options.$navigationContent.css({height:x+"px"})};u.prototype.addEventListeners=function v(){var y=this;var x;var z;this.$toggle.click(function(A){A.preventDefault();A.stopPropagation();if(y.opened){y.close()}else{y.open()}});e(l).on("orientationchange resize",function(A){if(x){clearTimeout(x)}x=setTimeout(function(){y.refresh()},100)});y.options.$navigationContent.on("touchstart",function(A){if(z){clearTimeout(z)}z=setTimeout(function(){y.refresh()},100)})};u.prototype.initialize=function q(){var x=this;this.$menu.each(function(){var z=e(this);var y={expanded:x.options.expanded,hoverable:x.options.hoverable,link:x.options.link,children:x.options.children,icon:x.options.icon};var A=new i(z,y);z.data("st-menu",A);A.initialize()});this.addEventListeners()};return u}());var k=(function(){function r(t,v,s){var u={expanded:false,hoverable:true,link:null,children:null,icon:false};this.$menu=t;this.options=e.extend({},u,s)}r.prototype.initialize=function q(){var s=this;this.$menu.each(function(){var u=e(this);var t={expanded:s.options.expanded,hoverable:s.options.hoverable,link:s.options.link,children:s.options.children,icon:s.options.icon};var v=new i(u,t);u.data("st-menu",v);v.initialize()})};return r}());function h(){var w=e(".acordion_tree");var v=e(".acordion_tree .acordion_tree_content");var t=e(".acordion_tree ul.menu");var r=e(".op");var u=e("#st-ami");var s={expanded:(f.expand_accordion_menu==="1"),$navigationContent:v};var q=new a(w,t,r,u,s);q.initialize()}function g(){var r=e("#side aside .st-pagelists ul");var q={hoverable:m()};var s=new k(r,q);s.initialize()}function j(){h();if(f.sidemenu_accordion==="1"){g()}}e(j)}(window,jQuery,ST));jQuery(function(){jQuery("ul.menu li").filter(function(){return !jQuery(this).closest(".acordion").length}).hover(function(){jQuery(">ul:not(:animated)",this).slideDown("fast")},function(){jQuery(">ul",this).slideUp("fast")})});(function(b,a,c,d){if(typeof c.fn.slick==="undefined"){return}function e(f){var g=c(f.$slider);g.removeClass(function(h,i){return(i.match(/\bslick-slides-to-show-\S+/g)||[]).join(" ")}).addClass("slick-slides-to-show-"+f.options.slidesToShow);if(Math.ceil(f.slideCount/f.options.slidesToScroll)>10||f.slideCount<=f.options.slidesToShow){g.removeClass("slick-dotted")}}c(function(){c("[data-slick]").on("init",function(g,f){e(f)}).on("breakpoint",function(h,g,f){e(g)}).slick()})}(window,window.document,jQuery));$(function(){$("p.hatenamark").each(function(){$(this).prepend('<i class="fa fa-question-circle"></i>')});$("p.checkmark").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$(".check-ul li").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$("p.attentionmark").each(function(){$(this).prepend('<i class="fa fa-exclamation-triangle"></i>')});$("p.memomark").each(function(){$(this).prepend('<i class="fa fa-pencil-square-o"></i>')});$("p.usermark").each(function(){$(this).prepend('<i class="fa fa-user" aria-hidden="true"></i>')});$("h2.hatenamark").each(function(){$(this).prepend('<i class="fa fa-question-circle"></i>')});$("h2.checkmark").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$("h2.attentionmark").each(function(){$(this).prepend('<i class="fa fa-exclamation-triangle"></i>')});$("h2.memomark").each(function(){$(this).prepend('<i class="fa fa-pencil-square-o"></i>')});$("h2.usermark").each(function(){$(this).prepend('<i class="fa fa-user" aria-hidden="true"></i>')});$("h3.hatenamark").each(function(){$(this).prepend('<i class="fa fa-question-circle"></i>')});$("h3.checkmark").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$("h3.attentionmark").each(function(){$(this).prepend('<i class="fa fa-exclamation-triangle"></i>')});$("h3.memomark").each(function(){$(this).prepend('<i class="fa fa-pencil-square-o"></i>')});$("h3.usermark").each(function(){$(this).prepend('<i class="fa fa-user" aria-hidden="true"></i>')});$("h4.hatenamark").each(function(){$(this).prepend('<i class="fa fa-question-circle"></i>')});$("h4.checkmark").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$("h4.attentionmark").each(function(){$(this).prepend('<i class="fa fa-exclamation-triangle"></i>')});$("h4.memomark").each(function(){$(this).prepend('<i class="fa fa-pencil-square-o"></i>')});$("h4.usermark").each(function(){$(this).prepend('<i class="fa fa-user" aria-hidden="true"></i>')});$("h5.hatenamark").each(function(){$(this).prepend('<i class="fa fa-question-circle"></i>')});$("h5.checkmark").each(function(){$(this).prepend('<i class="fa fa-check-circle"></i>')});$("h5.attentionmark").each(function(){$(this).prepend('<i class="fa fa-exclamation-triangle"></i>')});$("h5.memomark").each(function(){$(this).prepend('<i class="fa fa-pencil-square-o"></i>')});$("h5.usermark").each(function(){$(this).prepend('<i class="fa fa-user" aria-hidden="true"></i>')})});$(function(){var a=false;var b=$("#st-footermenubox");b.css("bottom","-200px");var a=false;$(window).scroll(function(){if($(this).scrollTop()>100){if(a==false){a=true;b.stop().animate({bottom:"0px"},200)}}else{if(a){a=false;b.stop().animate({bottom:"-200px"},200)}}})});

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.