{"size": 1980, "ext": "js", "max_stars_repo_path": "framework/Targets/horde_3_3_12/application/js/redbox.js", "max_stars_repo_name": "UncleWillis/BugBox", "max_stars_repo_stars_event_min_datetime": "2019-01-25T21:32:42.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-25T21:32:42.000Z", "max_issues_repo_path": "framework/Targets/horde_3_3_12/application/js/redbox.js", "max_issues_repo_name": "UncleWillis/BugBox", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "framework/Targets/horde_3_3_12/application/js/redbox.js", "max_forks_repo_name": "UncleWillis/BugBox", "max_forks_repo_forks_event_min_datetime": "2021-06-23T04:44:25.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-23T04:44:25.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 1980.0, "max_line_length": 1980, "alphanum_fraction": 0.7419191919}
var RedBox={overlay:true,onDisplay:null,showInline:function(a){this.appearWindow();this.cloneWindowContents(a)},showHtml:function(a){this.appearWindow();this.htmlWindowContents(a)},appearWindow:function(){var c=$("RB_loading");if(c&&c.visible()){c.hide()}else{this.showOverlay()}var b={duration:0.4,queue:"end"},a=$("RB_window");if(this.onDisplay){b.afterFinish=this.onDisplay}new Effect.Appear(a,b);a.scrollTo()},loading:function(){this.showOverlay();var a=$("RB_loading");if(a){a.show()}this.setWindowPosition()},close:function(){new Effect.Fade("RB_window",{duration:0.4});if(this.overlay){new Effect.Fade("RB_overlay",{duration:0.4})}},showOverlay:function(){var b=$("RB_redbox");if(!b){b=new Element("DIV",{id:"RB_redbox",align:"center"});$(document.body).insert(b);var a=new Element("DIV",{id:"RB_overlay"}).hide();b.insert({top:new Element("DIV",{id:"RB_window"}).hide()}).insert({top:a});if(this.overlay){a.insert({top:new Element("DIV",{id:"RB_loading"}).hide()})}}if(this.overlay){this.setOverlaySize();new Effect.Appear("RB_overlay",{duration:0.4,to:0.6,queue:"end"})}},setOverlaySize:function(){if(window.innerHeight&&window.scrollMaxY){yScroll=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){yScroll=document.body.scrollHeight}else{yScroll=document.body.offsetHeight}}Element.setStyle("RB_overlay",{height:yScroll+"px"})},setWindowPosition:function(){var b=$("RB_window");var c=b.getDimensions(),a=document.viewport.getDimensions();b.setStyle({width:"auto",height:"auto",left:((a.width-c.width)/2)+"px",top:((a.height-c.height)/2)+"px"})},cloneWindowContents:function(a){$("RB_window").appendChild($($(a).cloneNode(true)).setStyle({display:"block"}));this.setWindowPosition()},htmlWindowContents:function(a){$("RB_window").update(a);this.setWindowPosition()},getWindowContents:function(){var a=$("RB_window");return a.visible()?a.down():null},overlayVisible:function(){var a=$("RB_overlay");return a&&a.visible()}};