Debian Codegraph @

inst/js/nozzle.min.js

raw
1 $(window).load(function(){$("#mask").fadeOut()});function initNozzle(b,A){var z=A;var c=25;var t=30;var r=1000;var I=false;var K=0.5;var y=0.5;var R=20;var k=false;var F=null;var d=function(U){return(parseInt(U.css("margin-top"))+parseInt(U.css("margin-bottom")))};var L=function(U){return(parseInt(U.css("padding-top"))+parseInt(U.css("padding-bottom")))};var C=function(U){return(parseInt(U.css("margin-left"))+parseInt(U.css("margin-right")))};var j=function(U){return(parseInt(U.css("padding-left"))+parseInt(U.css("padding-right")))};var O=function(){return z("#"+b+" .frame")};var w=function(){return z("#"+b+" .main")};var p=function(){return z("#"+b)};var n=function(){return z("#"+b+" .menu")};var x=function(){return z(F)};var g=function(){if(!I){return(Math.min(z(window).width()-2*t,r))}else{return(z(window).width()-2*t)}};var a=function(){if(!I){return((z(window).width()-g())/2)}else{return(t)}};z(document).ready(function(){var U=B(true);H(U.prefix,U.postfix);O().css("height",z(window).height()+"px");O().css("width",g()+"px");O().css("left",a()+"px");n().css("height",c);w().css("top",n().outerHeight(true));if(F!=null){w().css("bottom",Q());x().css("top",h());v.css("top",h()+"px")}});z(window).resize(function(){O().css("height",z(window).height()+"px");O().css("width",g()+"px");O().css("left",a()+"px");n().css("height",c);w().css("top",n().outerHeight(true));if(F!=null){w().css("bottom",Q());x().css("top",h());v.css("top",h()+"px")}});z("#"+b+" .main").scroll(function(){});function B(Y){var X=[],W;var U=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var V=0;V<U.length;V++){W=U[V].split("=");X.push(W[0]);if(Y==true){X[W[0]]=decodeURIComponent(W[1])}else{X[W[0]]=W[1]}}return X}function H(X,Y){if(X==undefined&&Y==undefined){return 1}var W=z("img");var U=z("a");var V=0;W.each(function(){if(z(this).attr("src")===undefined){return}if(z(this).attr("src").indexOf("://")===-1){z(this).attr("src",X+z(this).attr("src")+Y);console.log(z(this).attr("src"));V++}console.log(z(this).attr("src"))});U.each(function(){if(z(this).attr("href")===undefined){return}if(z(this).attr("href").indexOf("://")===-1&&z(this).attr("href").indexOf("mailto:")===-1&&z(this).attr("href")!=="#"){z(this).attr("href",X+z(this).attr("href")+Y);console.log(z(this).attr("src"));V++}});return 0}ToggleMode={TOGGLE:0,SHOW:1,HIDE:2};var u=function(W,U,X,V){V=V||".sectionbody";W.each(function(){var ac=z(this);X=X||ToggleMode.TOGGLE;var aa=ac.find(".button.contenttoggle").first();var Y=ac.find(V).first();var Z=ac.find(".summary.significant").first();if(Y.length==0){Y=ac}var ab=ac.find(".subsection").not(".meta, #"+b+" .evidence .section, #"+b+" .evidence .subsection, #"+b+" subsubsection .sectionheader");switch(X){case ToggleMode.TOGGLE:if(ab.length==1){if(!ac.hasClass("visible")){u(ab,false,ToggleMode.SHOW)}}ac.toggleClass("visible");U?Y.slideToggle("fast"):Y.toggle();if(Z!==undefined){Z.toggleClass("deactivated")}break;case ToggleMode.SHOW:if(ab.length==1){u(ab,false,ToggleMode.SHOW)}ac.addClass("visible");U?Y.slideDown("fast"):Y.show();if(Z!==undefined){Z.addClass("deactivated")}break;case ToggleMode.HIDE:ac.removeClass("visible");U?Y.slideUp("fast"):Y.hide();if(Z!==undefined){Z.removeClass("deactivated")}break}aa.text(ac.hasClass("visible")?"-":"+");aa.attr("title",ac.hasClass("visible")?"Click to collapse":"Click to expand")})};var S=function(){var V=z("#"+b+" .sectionheader").not(".evidence .sectionheader, .subsubsection .sectionheader");V.prepend('<span class="button contenttoggle"><a>-</a></span>');V.parent().addClass("visible");var U=z("#"+b+" .button.contenttoggle");U.click(function(){u(z(this).parent().parent(),true,ToggleMode.TOGGLE)})};var N=function(){z(".button.contenttoggle").remove()};var l=function(U,V){var W=z("#"+b+" .section, #"+b+" .subsection").not("#"+b+" .evidence .section, #"+b+" .evidence .subsection, #"+b+" subsubsection .sectionheader");u(W,U,V)};var P=function(){var U=z(".results .sectionheader").not("#"+b+" .evidence .sectionheader, #"+b+" .meta .sectionheader, #"+b+" .subsubsection .sectionheader");U.append('<span class="bar contentssummary"></span>')};var q=function(){if(I){z("#menu_width_state").text("Fixed")}else{z("#menu_width_state").text("Auto")}};var i=function(){var V='<div id="nozzlemenu" class="menu"><div class="menubar">';if(nozzleNavigation.parentUrl!=null){V+='<a href="'+nozzleNavigation.parentUrl+'"><div class="menuitem" id="menu_go_parent" title="'+nozzleNavigation.parentName+'">Up</div></a>'}else{V+='<div class="menuitem deactivated">Up</div>'}if(nozzleNavigation.previousUrl!=null){V+='<a href="'+nozzleNavigation.previousUrl+'"><div class="menuitem" id="menu_go_previous" title="'+nozzleNavigation.previousName+'">&lt;</div></a>'}else{V+='<div class="menuitem deactivated">&lt;</div>'}if(nozzleNavigation.nextUrl!=null){V+='<a href="'+nozzleNavigation.nextUrl+'"><div class="menuitem" id="menu_go_next" title="'+nozzleNavigation.nextName+'">&gt;</div></a>'}else{V+='<div class="menuitem deactivated">&gt;</div>'}V+='<div class="menuitem separator"></div>';V+='<div class="menuitem" id="menu_expand_all">Expand All</div> <div class="menuitem" id="menu_collapse_all">Collapse All</div> <div class="menuitem" id="menu_width">Set&nbsp;<span id="menu_width_state">Auto</span>&nbsp;Width</div> <div class="menuitem" id="menu_print_view">Print</div>';if(nozzleMeta.contact!=null){V+='<div class="menuitem separator"></div>';var U=nozzleMeta.contact.label;if(U==null){U="Contact"}V+='<div class="menuitem highlighted" id="menu_report_problem" title="Send an email.">'+U+"</div>"}V+="</div></div>";O().prepend(V);z("#menu_expand_all").click(function(){l(true,ToggleMode.SHOW)});z("#menu_collapse_all").click(function(){l(true,ToggleMode.HIDE);s()});z("#menu_width").click(function(){I=!I;q();O().animate({width:g()+"px",left:a()+"px"},"slow")});z("#menu_print_view").click(function(){z("#mask").fadeIn();document.getElementById("mask").style.display="block";N();G();z("#nozzlemenu").remove();z("a.download").remove();o();l(false,ToggleMode.SHOW);E();window.print();window.location.reload(false)});if(nozzleMeta.contact!=null){z("#menu_report_problem").click(function(){var ac=nozzleMeta.contact.subject;var ae=nozzleMeta.contact.message;var ab=nozzleMeta.contact.email;var Y=navigator.userAgent;var W=window.location.href;var Z="Not detected.";if(window.screen){Z="Current Dimensions: "+z(window).width()+" x "+z(window).height()+"%0A";Z+="Maximum Dimensions: "+screen.availWidth+" x "+screen.availHeight+"%0A";Z+="Color Depth: "+screen.colorDepth}var ad="NA";var X="NA";if(nozzleMeta.software!=undefined){ad=nozzleMeta.software.name;X=nozzleMeta.software.version}var aa=ae+"%0A%0A%0A%0A== REPORT ======================%0A%0AURL: "+W+"%0ATitle: "+nozzleMeta.reportTitle+"%0AId: "+nozzleMeta.reportId+"%0ACreator: "+nozzleMeta.creator.name+"%0ACreation Date: "+nozzleMeta.creator.date+"%0ARenderer: "+nozzleMeta.renderer.name+"%0ARender Date: "+nozzleMeta.renderer.date+"%0AGoogle Analytics: "+nozzleMeta.googleAnalyticsId+"%0A%0A%0A== SOFTWARE ====================%0A%0AName: "+ad+"%0AVersion: "+X+"%0A%0A%0A== MAINTAINER ==================%0A%0AName: "+nozzleMeta.maintainer.name+"%0AAffiliation: "+nozzleMeta.maintainer.affiliation+"%0AEmail: "+nozzleMeta.maintainer.email+"%0A%0A%0A== SYSTEM ======================%0A%0ASystem Time: "+(new Date())+"%0AUser Agent: "+Y+"%0A"+Z+"%0A%0A";window.location="mailto:"+ab+"?subject="+ac+"&body="+aa})}q()};var E=function(){var U=1;z(".evidence").each(function(W){var V=z(this).attr("id").split("_")[1];z("#resultid_"+V+"_"+b).after('&nbsp;<span class="resultnumbersup">'+U+"</span>");z(this).prepend('<span class="resultnumber">'+U+" - Supplementary Result</span>");z(this).insertBefore(".copyright");z(this).show();U++})};function T(){var U="?reload="+new Date().getTime();z('link[rel="stylesheet"]').each(function(){this.href=this.href.replace(/\?.*|$/,U)})}var J=function(){var V=z("#"+b+" .evidence");V.prepend('<span class="button evidencetoggle"><a title="Click to hide details">&times;</a></span>');V.addClass("visible");var U=z("#"+b+" .evidence .button.evidencetoggle");U.click(function(){u(x(),false,ToggleMode.HIDE,".evidence");v.appendTo(z(F));var W=x().attr("id").split("_")[1];z("#resultid_"+W+"_"+b).removeClass("active");var X=z("#"+b+" .main").scrollTop();w().animate({bottom:"0px"},"slow",function(){k=false;F=null})})};var G=function(){z(".button.evidencetoggle").remove()};S();P();J();i();z(".evidence").hide();var m=0.5;var Q=function(){return(O().height()*(1-y))};var h=function(){return(O().height()*y+R)};var v;var f=function(){var V=z(this).attr("id").split("_")[1];var W=z("#evidenceid_"+V+"_"+b);W.appendTo(O());if(W.length!=0){if(F!=null&&F!="#evidenceid_"+V+"_"+b){}z(".result").not(z(this)).removeClass("active");z(this).toggleClass("active");z(this).attr("title",z(this).hasClass("active")?"Click to hide details":"Click to show details");W.css("top",h()+"px");W.css("bottom","0px");var Y=z(this).offset().top;var X=z("#"+b+" .main").scrollTop();var U=z("#"+b+" .main").height();m=Y/U;scrollTarget=X+((z(window).height()/2)*(m));if(!k){w().animate({bottom:Q()+"px",},"slow",function(){v=z("#evidenceid_"+V+"_"+b+" .button.evidencetoggle");v.css("top",h()+"px");v.css("left","-23px");W.fadeToggle("slow",function(){v.appendTo(O())});z(this).animate({scrollTop:scrollTarget},"slow");k=true;F="#evidenceid_"+V+"_"+b})}else{u(x(),false,ToggleMode.HIDE,".evidence");v.appendTo(z(F));if(F!="#evidenceid_"+V+"_"+b){W.fadeToggle("slow",function(){v.appendTo(O())});F="#evidenceid_"+V+"_"+b;v=z("#evidenceid_"+V+"_"+b+" .button.evidencetoggle");v.css("top",h()+"px");v.css("left","-23px")}else{w().animate({bottom:0+"px"},"slow",function(){k=false;F=null})}}}else{alert('No evidence found for result "'+V+'".')}return false};z(".result").not(".noevidence").click(f);var D=0;z(".results .subsection").not(".evidence").each(function(U){var V=0;z(this).find(".result.significant").each(function(W){++V});if(V>0){z(this).addClass("significant");z(this).find(".contentssummary").first().append('<span class="summary significant" title="Section contains findings that crossed a statistical threshold."></span>')}D+=V});if(D>0){z(".results .sectionheader .contentssummary").not(".subsection .sectionheader .contentssummary").html('<span class="summary significant" title="Section contains findings that crossed a statistical threshold."></span>')}var M=function(){var U=z(this).css("width");if(U==="200px"){z(this).animate({width:"800px"},"fast");z(this).attr("title","Click to reduce")}else{z(this).animate({width:"200px"},"fast");z(this).attr("title","Click to enlarge")}return false};var o=function(){z(".figure .image").each(function(){z(this).find("img").css("width","800px")})};var s=function(){z(".figure .image").each(function(){z(this).find("img").css("width","200px")})};z(".figure .image").each(function(){z(this).find("img").css("width","200px");z(this).find("img").click(M);z(this).find("img").attr("title","Click to enlarge")});z.tablesorter.addParser({id:"scientificNotation",is:function(U){return/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/.test(U)},format:function(U){return z.tablesorter.formatFloat(U)},type:"numeric"});z.tablesorter.addParser({id:"bigMark",is:function(U){return/^[0-9]?[0-9]?[0-9](,[0-9][0-9][0-9])*$/.test(U)},format:function(U){return U.replace(/,/gi,"")},type:"numeric"});z(".resulttable.tablesorter.sortabletable").each(function(){z(this).tablesorter()});var e=function(U){l(U,ToggleMode.HIDE);u(z("#overview_"+b+", #summary_"+b),U);u(z("#results_"+b),U)};e(false)};