1window.SOCNHI_CHECKER = { 2 flash: new function() { 3 var a, c, d, b, g, f = this; 4 f.installed = !1; 5 f.raw = ""; 6 f.major = -1; 7 f.minor = -1; 8 f.revision = -1; 9 f.revisionStr = ""; 10 var h = [{ 11 name: "ShockwaveFlash.ShockwaveFlash.7", 12 version: function(a) { 13 return p(a) 14 } 15 }, { 16 name: "ShockwaveFlash.ShockwaveFlash.6", 17 version: function(a) { 18 var b = "6.0.r21"; 19 try { 20 a.AllowScriptAccess = "always", b = p(a) 21 } catch (c) {} 22 return b 23 } 24 }, { 25 name: "ShockwaveFlash.ShockwaveFlash", 26 version: function(a) { 27 return p(a) 28 } 29 }], 30 p = function(a) { 31 var b = -1; 32 try { 33 b = a.GetVariable("$version") 34 } catch (c) {} 35 return b 36 }; 37 f.majorAtLeast = function(a) { 38 return f.major >= a 39 }; 40 f.minorAtLeast = function(a) { 41 return f.minor >= a 42 }; 43 f.revisionAtLeast = 44 function(a) { 45 return f.revision >= a 46 }; 47 f.versionAtLeast = function(a) { 48 var b = [f.major, f.minor, f.revision], 49 c = Math.min(b.length, arguments.length); 50 for (i = 0; i < c; i++) 51 if (b[i] >= arguments[i]) { 52 if (!(i + 1 < c && b[i] == arguments[i])) return !0 53 } else return !1 54 }; 55 if (navigator.plugins && 0 < navigator.plugins.length) { 56 if ((h = navigator.mimeTypes) && h["application/x-shockwave-flash"] && h["application/x-shockwave-flash"].enabledPlugin && h["application/x-shockwave-flash"].enabledPlugin.description) { 57 var u = h["application/x-shockwave-flash"].enabledPlugin.description, 58 v = u, 59 h = v.split(/ +/), 60 u = h[2].split(/\./), 61 h = h[3]; 62 a = v; 63 c = parseInt(u[0], 10); 64 d = parseInt(u[1], 10); 65 b = h; 66 g = parseInt(h.replace(/[a-zA-Z]/g, ""), 10) || f.revision; 67 f.raw = a; 68 f.major = c; 69 f.minor = d; 70 f.revisionStr = b; 71 f.revision = g; 72 f.installed = !0 73 } 74 } else if (-1 == navigator.appVersion.indexOf("Mac") && window.execScript) 75 for (u = -1, v = 0; v < h.length && -1 == u; v++) { 76 a = -1; 77 try { 78 a = new ActiveXObject(h[v].name) 79 } catch (n) { 80 a = { 81 activeXError: !0 82 } 83 } 84 a.activeXError || (f.installed = !0, u = h[v].version(a), -1 != u && (a = u, b = a.split(","), c = parseInt(b[0].split(" ")[1], 10), 85 d = parseInt(b[1], 10), g = parseInt(b[2], 10), b = b[2], f.raw = a.replace("Shockwave Flash ", ""), f.major = c, f.minor = d, f.revision = g, f.revisionStr = b)) 86 } 87 } 88 89}; 90 91 92 93function browserName() { 94 var Browser = navigator.userAgent; 95 if (Browser.indexOf('coc_coc') >= 0) { 96 Browser = 'Coccoc'; 97 } else if (Browser.indexOf('Firefox') >= 0) { 98 Browser = 'Firefox'; 99 } else if (Browser.indexOf('Chrome') >= 0) { 100 Browser = 'Chrome'; 101 } else if (Browser.indexOf('Safari') >= 0) { 102 Browser = 'Safari'; 103 } else if (Browser.indexOf('Opera') >= 0) { 104 Browser = 'Opera'; 105 } else if (Browser.indexOf('MSIE') >= 0) { 106 Browser = 'MSIE'; 107 } else { 108 Browser = 'UNKNOWN'; 109 } 110 return Browser; 111} 112 113 114 115function showAlertCococ() { 116 window.showingAlertCococ = true; 117 var htmlMsg = ` 118 <div class="flash-alert" style="text-align:center;font-family: socnhi; font-size: 20px; color:#3399cc;display:none;width:100%;height:100px;padding:10px;background:#d4edda"> 119 120 <div class="close-wrap" style="text-align:right;"><a class="close-noty-button" style="font-family: socnhi; font-size: 20px; color:#fff;cursor:pointer;">Close [x]</a></div> 121 Nếu chưa cà i Äặt flash xem hưá»ng dẫn cá»§a chúng tá» <a href="javascript:void(0)" onClick="window.open(\'http://socnhi.com/blog/u-1412295/c-15/shop/d-545/Soc-Nhi-mach-nho-cac-ban-cach-go-chan-Flash-de-cung-choi-that-vui-o-Vuong-Quoc-Tren-May-nhe.html\')" style="font-family: socnhi; font-size: 20px; color:#ff6666;">á» Äây</a> 122 Äá» cà i Äặt flash 123 </div> 124 `; 125 126 var $body = $('body'); 127 $body.prepend(htmlMsg); 128 var w = window.screenwidth - 30; 129 $(".flash-alert").slideDown("slow"); 130 $(".close-wrap").css("width", w + 'px'); 131 $("#flashHeaderContentWrapper").css("top", '120px'); 132 133 $('.close-noty-button').click(function() { 134 $(".flash-alert").slideUp("slow"); 135 $("#flashHeaderContentWrapper").css("top", '0px'); 136 var countClose = getCookie('countClose'); 137 countClose = countClose ? parseInt(countClose) : 0; 138 countClose++;
139 setCookie('countClose', countClose, 2); 140 }); 141 142} 143 144$(document).ready(function() { 145 var NO_FLASH_BLOCK = ['blog_item','blog','home','bac-hoc-nhi','rap-tivi','hang-truyen']; 146 if(NO_FLASH_BLOCK.includes(PAGE.toLowerCase())) return; 147 if (browserName() == 'Coccoc' && SOCNHI_CHECKER.flash.installed) { 148 var countClose = getCookie('countClose'); 149 countClose = countClose ? parseInt(countClose) : 0; 150 if (countClose <= 5){ 151 setTimeout(showAlertCococ, 2000); 152 } 153 } else if (!SOCNHI_CHECKER.flash.installed) { 154 return; 155 $('body').html([ 156 '<div style="margin:0 auto; width: 669px; height: 548px;font-family: socnhi; font-size: 20px; color:#3399cc;padding: 0px 0px 0px 0px;background:url(/images/socnhi_noflash.png) no-repeat;">', 157 '<div style="text-align:center; padding-top: 56px">', 158 'Chà , trình duyá»t cá»§a bạn chưa cà i flash rá»i.<br>', 159 'Bạn click và o ÄÆ°á»ng dẫn nà y <a href="http://get.adobe.com/flashplayer/" style="font-family: socnhi; font-size: 20px; color:#ff6666;">[Flash]</a> Äá» tá»± cà i Äặt,<br>', 160 'hoặc xem hưá»ng dẫn cá»§a chúng tá» á» Äây nha! <a href="javascript:void(0)" onClick="window.open(\'http://socnhi.com/blog/u-1412295/c-15/shop/d-545/Soc-Nhi-mach-nho-cac-ban-cach-go-chan-Flash-de-cung-choi-that-vui-o-Vuong-Quoc-Tren-May-nhe.html\')" style="font-family: socnhi; font-size: 20px; color:#ff6666;">[Xem hưá»ng dẫn]</a><br>', 161 '</div></div>' 162 ].join('')); 163 } 164});
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.