1 2 3function StatusImpl() { 4 // Helper 5 var _this = this; 6 7 this.GetExplicit = function (val) { 8 if (val) { 9 return "/images/status-explicit.png"; 10 } else { 11 return "/images/status-not-explicit.png"; 12 } 13 } 14 15 this.GetExplicitNew = function (explict,isnew) { 16 if (explict) { 17 if(!isnew) 18 return "/images/status-explicit.png"; 19 return "/images/status-explicit-new.png"; 20 } else { 21 if(!isnew) 22 return "/images/status-not-explicit.png"; 23 return "/images/status-not-explicit-new.png" 24 } 25 } 26 27 this.GetExplicitHtml = function(explicit,isnew) 28 { 29 if (explicit) { 30 if (isnew==undefined || !isnew) 31 return $("<div class='explicit'/>"); 32 return $("<div class='explicit-new'/>"); 33 } else { 34 if (isnew == undefined || !isnew) 35 return $("<div class='notexplicit'/>"); 36 return $("<div class='notexplicit-new'/>"); 37 } 38 } 39 40 this.GetExplicitClass = function (explicit, isnew) { 41 if (explicit) { 42 if (isnew == undefined || !isnew) 43 return "explicit"; 44 return "explicit-new"; 45 } else { 46 if (isnew == undefined || !isnew) 47 return "notexplicit"; 48 return "notexplicit-new"; 49 } 50 } 51 52 this.GetOnlineHtml = function (online) { 53 if (online) { 54 return $("<div class='siteonline'/>"); 55 } else { 56 return $("<div class='siteoffline'/>"); 57 } 58 } 59 60 this.GetFAOnlineHtml = function (online) { 61 if (online) { 62 return $("<div class='fa fa-wifi fa-18 fa-green'/>"); 63 } else { 64 return $("<div class='fa fa-plug fa-18 fa-red'/>"); 65 } 66 } 67 68 this.GetLedHtml = function (state) { 69 if (state) { 70 return $("<div class='greenled'/>"); 71 } else { 72 return $("<div class='redled'/>"); 73 } 74 } 75 76 this.GetFALedHtml = function (state) { 77 if (state) { 78 return $("<div class='fa fa-circle fa-18 fa-led fa-green'/>"); 79 } else { 80 return $("<div class='fa fa-circle fa-18 fa-led fa-red'/>"); 81 } 82 } 83 84 this.GetIndexStateLedHtml = function (state) { 85 if (state == "green") 86 { 87 return $("<div class='fa fa-circle fa-18 fa-led fa-green'/>"); 88 } 89 else if (state == "red") 90 { 91 return $("<div class='fa fa-circle fa-18 fa-led fa-red'/>"); 92 } 93 else 94 { 95 return $("<div class='fa fa-circle fa-18 fa-led fa-amber'/>"); 96 } 97 } 98 99 return this; 100} 101var StatusEnum = new StatusImpl();
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.