1; 2//Flexnav 3(function(){var e;e=jQuery;e.fn.flexNav=function(t){var n,r,i,s,o,u,a,f,l,c,h,p;l=e.extend({animationSpeed:250,transitionOpacity:true,buttonSelector:".menu-button",hoverIntent:false,hoverIntentTimeout:150,calcItemWidths:false,hover:true},t);n=e(this);n.addClass("with-js");if(l.transitionOpacity===true){n.addClass("opacity")}n.find("li").each(function(){if(e(this).has("ul").length){return e(this).addClass("item-with-ul").find("ul").hide()}});if(l.calcItemWidths===true){r=n.find(">li");s=r.length;u=100/s;o=u+"%"}if(n.data("breakpoint")){i=n.data("breakpoint")}c=function(){if(n.hasClass("lg-screen")===true&&l.hover===true){if(l.transitionOpacity===true){return e(this).find(">ul").addClass("flexnav-show").stop(true,true).animate({height:["toggle","swing"],opacity:"toggle"},l.animationSpeed)}else{return e(this).find(">ul").addClass("flexnav-show").stop(true,true).animate({height:["toggle","swing"]},l.animationSpeed)}}};a=function(){if(n.hasClass("lg-screen")===true&&e(this).find(">ul").hasClass("flexnav-show")===true&&l.hover===true){if(l.transitionOpacity===true){return e(this).find(">ul").removeClass("flexnav-show").stop(true,true).animate({height:["toggle","swing"],opacity:"toggle"},l.animationSpeed)}else{return e(this).find(">ul").removeClass("flexnav-show").stop(true,true).animate({height:["toggle","swing"]},l.animationSpeed)}}};f=function(){var t;if(e(window).width()<=i){n.removeClass("lg-screen").addClass("sm-screen");if(l.calcItemWidths===true){r.css("width","100%")}t=l.buttonSelector+", "+l.buttonSelector+" .touch-button";e(t).removeClass("active");return e(".one-page li a").on("click",function(){return n.removeClass("flexnav-show")})}else if(e(window).width()>i){n.removeClass("sm-screen").addClass("lg-screen");if(l.calcItemWidths===true){r.css("width",o)}n.removeClass("flexnav-show").find(".item-with-ul").on();e(".item-with-ul").find("ul").removeClass("flexnav-show");a();if(l.hoverIntent===true){return e(".item-with-ul").hoverIntent({over:c,out:a,timeout:l.hoverIntentTimeout})}else if(l.hoverIntent===false){return e(".item-with-ul").on("mouseenter",c).on("mouseleave",a)}}};e(l.buttonSelector).data("navEl",n);p=".item-with-ul, "+l.buttonSelector;e(p).append('<span class="touch-button"><i class="navicon">▼</i></span>');h=l.buttonSelector+", "+l.buttonSelector+" .touch-button";e(h).on("click",function(t){var n,r,i;e(h).toggleClass("active");t.preventDefault();t.stopPropagation();i=l.buttonSelector;n=e(this).is(i)?e(this):e(this).parent(i);r=n.data("navEl");return r.toggleClass("flexnav-show")});e(".touch-button").on("click",function(e){});n.find(".item-with-ul *").focus(function(){e(this).parent(".item-with-ul").parent().find(".open").not(this).removeClass("open").hide();return e(this).parent(".item-with-ul").find(">ul").addClass("open").show()});f();return e(window).on("resize",f)}}).call(this) 4; 5//Main Js 6 7(function(e){"use strict";window.supernova={init:function(){this.settings();this.defaultEvents();this.blogGrid()},settings:function(){this.backtotopDiv=e("#backtotop");this.sliderCount=103;this.sliderSpeed=7e3;this.currentProgressbarWidth=0},defaultEvents:function(){this.resizeFont();this.mainNavigation();this.categoryWidget();this.backtoTop();this.topSearch();this.windowScrollEvents();this.responsiveTweaks();this.ajaxLoad();this.commentValidation();this.createMobileMenu();this.createflexSlider();this.scrollSliderSidebar(1)},createMobileMenu:function(){var t,n,r,i;var s=e("#media-header-nav-container"),o=e("#media-main-nav-containter"),u=e("#media-category-nav-container");t=e(e("#top_nav").html());s.html(t);s.find("ul").addClass("flexnav").flexNav({buttonSelector:".media_left"});n=e(e("#nav").html());o.html(n);o.find("ul").addClass("flexnav").flexNav({buttonSelector:".media_right"});r=e(e(".supernova-category-navigaiton-container").html());u.html(r);u.find("ul").addClass("flexnav").flexNav({buttonSelector:".media-category"});e(".media-nav-icon").on("click",function(){i=e(this).data("submenu");e(".mobile-only-nav").hide();e("#"+i).fadeIn()});e("body").click(function(){e("#media-header-nav-container, #media-main-nav-containter, #media-category-nav-container").hide()});e("#mobile-nav").click(function(e){e.stopPropagation()});e("span.touch-button").on("click",function(){e(this).closest("li.item-with-ul").find(">ul").fadeToggle("fast")})},resizeFont:function(){e("#minustext").on("click",function(e){supernova._resizeFont(e,-1)});e("#plustext").on("click",function(e){supernova._resizeFont(e,1)})},_resizeFont:function(e,t){c=document.getElementById("entry");if(c.style.fontSize==="")c.style.fontSize="1.0em";c.style.fontSize=parseFloat(c.style.fontSize)+t*.1+"em";e.preventDefault();return false},mainNavigation:function(){var t=function(){this.navLi=e("#nav li").children("ul").hide().end();this.init()};t.prototype={init:function(){this.setMenu()},setMenu:function(){e.each(this.navLi,function(){if(e(this).children("ul")[0]){e(this).append("<span />").children("span").addClass("hasChildren")}});this.navLi.hover(function(){e(this).find("> ul").stop(true,true).slideDown("slow","easeOutBounce")},function(){e(this).find("> ul").stop(true,true).hide()})}};var n=function(){this.navLi=e("#top_nav li").children("ul").hide().end();this.init()};n.prototype={init:function(){this.setMenu()},setMenu:function(){e.each(this.navLi,function(){if(e(this).children("ul")[0]){e(this).append("<span />").children("span").addClass("hasChildren")}});this.navLi.hover(function(){e(this).find("> ul").stop(true,true).slideDown("slow","easeOutBounce")},function(){e(this).find("> ul").stop(true,true).hide()})}};new t;new n},categoryWidget:function(){var t=e(".catnav li").find("ul"),n=t.find("li");if(t.length)t.remove();e(".catnav ul").append(n)},topSearch:function(){e(".top_search_icon").click(function(){e(".top_search").stop(true,true).fadeToggle()});e(".top_search .supernova_search").blur(function(){e(".top_search").fadeOut()});e(".first_cat").hover(function(){e(".top_search").hide()})},backtoTop:function(){e(window).scroll(function(){if(e(this).scrollTop()>50)supernova.backtotopDiv.fadeIn("slow");else supernova.backtotopDiv.fadeOut("slow")});supernova.backtotopDiv.click(function(){e("body,html").animate({scrollTop:0},600);return false})},windowScrollEvents:function(){e(window).scroll(function(){if(e(this).scrollTop()>10){e(".top_search_icon").fadeIn()}else{e(".top_search_icon").fadeOut();e(".top_search #supernova_search").fadeOut()}})},responsiveTweaks:function(){var t=supernova_ajax_object.responsiveness.split("|"),n=t[0],r=t[1],i=false,s=e(window).width();if(s>800){}},ajaxLoad:function(){this.mainContent=e(".main_content");this.loadStyle=supernova_ajax_object.post_load_style;this.loadmoreAfter=-100;this.loaderRef=e("#ajax-loader-ref");this.currentTab=1;this.latestPagedCount=1;this.popularPostsCount=0;this.popularOffset=1;this.recommendedPostsCount=0;this.recommendedOffset=1;this.fetchingData=false;var t=supernova_ajax_object.load_more_data.split("|");this.translatedTexts={loading_text:t[0],sorry_nomore_text:t[1],no_more_text:t[2]};var n,r=e("#tabs > div.tabber");r.on("click",function(){supernova.mainContent.find(".latest_blogs").text(e(this).text());r.removeClass("tab_current");e(this).addClass("tab_current")});e("#tab_one").on("click",this.load_initial_latest_blogs);this.mainContent.on("click",".supernova_load_more_main",this.load_more_latest_blogs);e("#tab_two").on("click",this.load_initial_popular_posts);this.mainContent.on("click",".popular_load_more",this.load_more_popular_posts);e("#tab_three").on("click",this.load_initial_recommended_posts);this.mainContent.on("click",".rec_load_more",this.load_more_recommended_posts);if(this.loadStyle==="2"){e(window).on("scroll",function(){n=supernova.loaderRef.position().top+supernova.loadmoreAfter;console.log(supernova.fetchingData);if(e(this).scrollTop()>n&&supernova.fetchingData===false){if(supernova.currentTab===1)supernova.load_more_latest_blogs();else if(supernova.currentTab===2)supernova.load_more_popular_posts();else if(supernova.currentTab===3)supernova.load_more_recommended_posts();supernova.fetchingData=true}})}this.tabber()},load_initial_latest_blogs:function(){e(".main_loop, .pagination_wrapper").fadeIn("slow");e("#popular_posts, #rec_posts").fadeOut("slow");supernova.currentTab=1},load_more_latest_blogs:function(){var t=e(".supernova_load_more_main"),n=t.text(),r=t.data("total-pages"),i=t.data("posts-per-page"),s=e(".pagination_wrapper"),o=s.find(".main_loader"),u=r*i-i*supernova.latestPagedCount-i;o.show();t.attr("title",u+" More");t.html(supernova.translatedTexts.loading_text).prop("disabled",true);if(r>supernova.latestPagedCount){e.ajax({url:supernova_ajax_object.ajaxurl,type:"POST",dataType:"html",data:{action:"supernova_load_main_posts",paged:supernova.latestPagedCount},success:function(t){e(".main_loop").append(t).hide().fadeIn();e(".pagination_wrapper").find(".main_loader").hide();e(".pagination_wrapper").find(".button").html(n).prop("disabled",fal
7se);supernova.fetchingData=false}});supernova.latestPagedCount++}else{o.hide();t.attr("title",supernova.translatedTexts.sorry_nomore_text);t.html(supernova.translatedTexts.no_more_text).delay(1e3).fadeOut();return false}},load_initial_popular_posts:function(){supernova.currentTab=2;var t=e(".supernova_ajax_loader");if(supernova.popularPostsCount===0){e(".main_content .main_loop, .main_content .pagination_wrapper, #rec_posts").fadeOut("slow");e("#popular_posts").fadeIn("slow");supernova.mainContent.find(".latest_blogs").html(e(this).text()).hide().fadeIn("slow");t.fadeIn("slow")}else{e(".main_content .main_loop, .main_content .pagination_wrapper, #rec_posts").fadeOut("slow");e("#popular_posts").fadeIn("slow")}e.ajax({type:"POST",dataType:"html",url:supernova_ajax_object.ajaxurl,data:"action=supernova_get_popular_posts",success:function(n){if(supernova.popularPostsCount===0){e("#popular_posts").append(n);supernova.popularPostsCount++}t.fadeOut()}})},load_more_popular_posts:function(){var t=e(".popular_load_more"),n=t.text(),r=t.data("total-posts"),i=t.data("posts-per-page"),s=Math.floor(r/i);t.html(supernova.translatedTexts.loading_text).fadeOut("slow");if(s>supernova.popularOffset){e.ajax({url:supernova_ajax_object.ajaxurl,type:"POST",dataType:"html",data:{action:"supernova_get_popular_posts",offset:supernova.popularOffset},success:function(t){e("#popular_posts").append(t).hide().fadeIn();supernova.fetchingData=false}});supernova.popularOffset++}else{t.attr("title",supernova.translatedTexts.sorry_nomore_text);t.html(supernova.translatedTexts.no_more_text).prop("disabled",true).delay(800).fadeOut("slow");return false}},load_initial_recommended_posts:function(){supernova.currentTab=3;var t=e("#rec_posts");if(supernova.recommendedPostsCount===0){e(".main_loop, .pagination_wrapper, #popular_posts").fadeOut("slow");t.fadeIn("slow");e(".supernova_ajax_loader").fadeIn("slow")}else{e(".main_loop, .pagination_wrapper, #popular_posts").fadeOut("slow");t.fadeIn("slow")}e.ajax({type:"POST",dataType:"html",url:supernova_ajax_object.ajaxurl,data:"action=supernova_get_recommended_posts",success:function(n){if(supernova.recommendedPostsCount===0){t.append(n);supernova.recommendedPostsCount++;supernova.fetchingData=false}e(".supernova_ajax_loader").fadeOut()},error:function(e,t,n){console.log("Error Message: "+t);console.log("HTTP Error: "+n)}})},load_more_recommended_posts:function(){var t=e(".rec_load_more");var n=t.text();var r=t.data("total-posts"),i=t.data("posts-per-page"),s=Math.ceil(r/i);t.html(supernova.translatedTexts.loading_text).prop("disabled",true).fadeOut("slow");console.log(s,supernova.recommendedOffset);if(s>supernova.recommendedOffset){t.html(supernova.translatedTexts.loading_text).prop("disabled",false);e.ajax({url:supernova_ajax_object.ajaxurl,type:"POST",dataType:"html",data:{action:"supernova_get_recommended_posts",offset:supernova.recommendedOffset},success:function(r){t.html(n).prop("disabled",false);e(".rec_loader").hide();e("#rec_posts").append(r).hide().fadeIn();supernova.fetchingData=false}});supernova.recommendedOffset++}else{console.log("went in else part");t.attr("title",supernova.translatedTexts.sorry_nomore_text);t.html(supernova.translatedTexts.no_more_text).prop("disabled",true).delay(800).hide()}},tabber:function(){var t=e(".supernova_tabber_top li");if(t.length){t.click(function(){var t=e(this).index();var n=e(".supernova_tabber_contents").find("div");n.hide();n.eq(t).fadeIn();e(".supernova_tabber_current").removeClass("supernova_tabber_current");e(this).find("span").addClass("supernova_tabber_current")})}},commentValidation:function(){var t=e(".supernova-comment-textarea"),n=e("div.supernova_comments");n.find("input").hide();t.css("min-height","80px");t.on("focus",function(){e(this).animate({height:"130px"},500);n.find("input").fadeIn("slow")});e("#commentform").find("#submit").on("click",function(t){if(e("input#author").val()===""&&e("input#email").val()===""){e("input#author, input#email").css("border","1px solid red");alert("Please Enter Your Name and Your Email.");t.preventDefault();return}else if(e("input#email").val()===""){e("input#email").css("border","1p
7x solid red");alert("Please Enter Your Email.");t.preventDefault();return}else if(e("input#author").val()===""){e("input#author").css("border","1px solid red");alert("Please Enter Your Name.");t.preventDefault();return}});e("input#author, input#email").on("focus",function(){e(this).css("border","none")})},animateSlider:function(){var t=e(".featured_content");e("#supernova_slider_wrapper").fadeIn("slow")},createflexSlider:function(){var t=e("#supernova_slider_wrapper").css("visibility","visible").data("slider-animation"),n=e("#supernova_slider_wrapper");this.animateSlider();var r=n.data("slider-style");if(r===1){e("#supernova-slider").flexslider({animation:t,sync:"#carousel",controlNav:false,animationLoop:false,slideshowSpeed:supernova.sliderSpeed,slideshow:false,before:function(){supernova.animateProgressBar("before")},after:function(){supernova.animateProgressBar("after")},start:function(t){e("body").removeClass("loading");e(".flexslider").flexslider("play");supernova.animateProgressBar("start")}});e("#carousel").flexslider({animation:"slide",controlNav:false,slideshowSpeed:supernova.sliderSpeed,animationLoop:false,slideshow:false,itemWidth:170,itemMargin:5,asNavFor:"#supernova-slider"});var i=false;e("#carousel li").hover(function(){e(".slides li").finish();e(".flexslider").flexslider("pause");i=e(this).index();e(".flexslider").flexslider(i)},function(){e(".flexslider").flexslider("play")});e("#carousel .flex-direction-nav a").hover(function(t){e(".slides li").finish();e("#supernova-slider").flexslider("pause");e("#supernova-slider").flexslider(i);t.preventDefault();return false});e("#carousel .left-nav").on("click",function(){e("#supernova-slider").flexslider("prev")});e("#carousel .right-nav").on("click",function(){e("#supernova-slider").flexslider("next")})}else if(r===2){var s=this;e("#supernova-slider").flexslider({animation:t,slideshowSpeed:supernova.sliderSpeed,slideshow:true,animationSpeed:1500,before:function(){supernova.animateProgressBar("before")},after:function(){supernova.onSlideChange();supernova.animateProgressBar("after")},start:function(t){e("body").removeClass("loading");supernova.animateProgressBar("start");s.customizeSlider2.call(s)}});supernova.changeSlide()}else if(r===3){e("#supernova-slider").flexslider({animation:t,slideshowSpeed:supernova.sliderSpeed,controlNav:true,animationLoop:false,slideshow:false,before:function(){supernova.animateProgressBar("before")},after:function(){supernova.animateProgressBar("after")},start:function(t){e("body").removeClass("loading");supernova.animateProgressBar("start")}})}var o=n.find(".flex-direction-nav");o.find("a").html("")},customizeSlider2:function(){this.changeSlider2AsideSize();var t=this;e(window).on("resize",function(){t.changeSlider2AsideSize()})},changeSlider2AsideSize:function(){var t=e("#supernova-slider");var n=t.height();var r=e("#slider-sidebar");r.height(n)},animateProgressBar:function(t){var n=e(".flexslider .progress_bar");if(t==="start"){n.animate({width:"100%"},supernova.sliderSpeed,function(){n.css("width","0%")})}else if(t==="before"){n.stop();n.css("width","0%");n.animate({width:"100%"},supernova.sliderSpeed,function(){n.css("width","0%")})}else if(t==="after"){}else if(t==="pause"){n.stop()}},onSlideChange:function(){var t=e("#supernova-slider").find(".flex-active-slide").data("index");var n=e("#slider-sidebar");var r=n.find(".slider-sidebar-inner");var i=n.find("li").height();n.find("li").removeClass("active-slide");n.find("li").eq(t).addClass("active-slide")},changeSlide:function(){var t=e("#slider-sidebar"),n;t.find("li").on("hover",function(){n=e(this).index();e(".slides li").finish();e(".flexslider").flexslider("pause");n=e(this).index();e(".flexslider").flexslider(n);supernova.animateProgressBar("pause")});t.find("li").on("mouseout",function(){e(".flexslider").flexslider("play");supernova.animateProgressBar("before")})},scrollSliderSidebar:function(t){var n=e("#slider-sidebar"),r=n.find(".slider-nav-up").find(".icon"),i=n.find(".slider-nav-down").find(".icon"),s=n.find(".slider-sidebar-inner"),o=n.find("li").length,u=o*supernova.sliderCount-supernova.sliderCount*3,a=supernova.sliderCount;r.on("click",function(){a=a>0?a-supernova.sliderCount:0;s.animate({scrollTop:a*t},300);console.log(a)});i.on("click",function(){a=a===0?supernova.sliderCount:a;s.animate({scrollTop:a*t},300);console.log(a);if(a>supernova.sliderCount){r.fadeIn()}else{r.fadeOut()}a=a<u?a+supernova.sliderCount:u})}};supernova.blogGrid=function(){var t=e("#show-grid"),n=e("#show-list"),r=e("#tabs .grid-icons"),i=e("#sidebar"),s=e("#content"),o=s.width()/s.parent().width()*100+"%";r.on("click",function(){r.removeClass("active-grid-icon");e(this).addClass("active-grid-icon")});t.on("click",function(t){e("#sticky-sidebar-sticky-wrapper").hide();s.addClass("grid-view");i.addClass("animated fadeOutRight").hide();s.animate({width:"100%"},500)});n.on("click",function(){s.removeClass("grid-view");s.animate({width:o},300);i.removeClass("fadeOutRight").show().addClass("animated fadeInRight")})};supernova.init()})(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.