1$(function() { 2 3 $.fn.bannerShow = function(g) { 4 g = jQuery.extend({wraper: "fshow",autotime: 6000,isAuto: true,ind: 0,changeColor: null}, g || {}); 5 return this.each(function() { 6 var o; 7 var n = 0; 8 var i = this; 9 var j = $("#bnav"), k = $("li", j); 10 var h = [["#002c4a", "#005584"], ["#35ac03", "#3f4303"], ["#ac0908", "#cd5726"], ["18bbff", "#00486b"]]; 11 //var h = [["#87002e", "#d23f71"]]; 12 $(this).hover(function() { 13 g.isAuto = false 14 }, function() { 15 g.isAuto = true 16 }); 17 m(0); 18 k.each(function(p, q) { 19 $(q).mouseover(function() { 20 n = p; 21 k.removeClass().eq(n).addClass("current"); 22 m(n) 23 }) 24 }); 25 o = setInterval(function() { 26 if (!g.isAuto) { 27 return false 28 } 29 k.each(function(p, q) { 30 if ($(q).hasClass("current")) { 31 n = p 32 } 33 m(n) 34 }); 35 if (n == k.size() - 1) { 36 n = 0; 37 m(n); 38 k.removeClass().eq(n).addClass("current") 39 } else { 40 n += 1; 41 m(n); 42 k.removeClass().eq(n).addClass("current") 43 } 44 }, g.autotime); 45 // function m(p) { 46 // $(".banners", i).hide(); 47 // $(".banners", i).eq(p).show(); 48 // if (g.changeColor) { 49 // g.changeColor(h[p]).set() 50 // } 51 // } 52 }) 53 }; 54 if (!window.ActiveXObject && !!document.createElement("canvas").getContext) { 55 $.getScript("http://www.kan0512.com/template/custom/js/cavs.js", function() { 56 var t = {width: 1.5,height: 1.5,depth: 10,segments: 12,slices: 6,xRange: 0.8,yRange: 0.1,zRange: 1,ambient: "#525252",diffuse: "#FFFFFF",speed: 0.0002}; 57 var G = {count: 2,xyScalar: 1,zOffset: 100,ambient: "#87002e",diffuse: "#d23f71",speed: 0.001,gravity: 1200,dampening: 0.95,minLimit: 10,maxLimit: null,minDistance: 20,maxDistance: 400,autopilot: false,draw: false,bounds: CAV.Vector3.create(),step: CAV.Vector3.create(Math.randomInRange(0.2, 1), Math.randomInRange(0.2, 1), Math.randomInRange(0.2, 1))}; 58 var m = "canvas"; 59 var E = "svg"; 60 var x = {renderer: m}; 61 var i, n = Date.now(); 62 var L = CAV.Vector3.create(); 63 var k = CAV.Vector3.create(); 64 var z = document.getElementById("container"); 65 var w = document.getElementById("anitOut"); 66 var D, I, h, q, y; 67 var g; 68 var r; 69 function C() { 70 F(); 71 p(); 72 s(); 73 B(); 74 v(); 75 K(z.offsetWidth, z.offsetHeight); 76 o() 77 } 78 function F() { 79 g = new CAV.CanvasRenderer(); 80 H(x.renderer) 81 } 82 function H(N) { 83 if (D) { 84 w.removeChild(D.element) 85 } 86 switch (N) { 87 case m: 88 D = g; 89 break 90 } 91 D.setSize(z.offsetWidth, z.offsetHeight); 92 w.appendChild(D.element) 93 } 94 function p() { 95 I = new CAV.Scene() 96 } 97 function s() { 98 I.remove(h); 99 D.clear(); 100 q = new CAV.Plane(t.width * D.width, t.height * D.height, t.segments, t.slices); 101 y = new CAV.Material(t.ambient, t.diffuse); 102 h = new CAV.Mesh(q, y); 103 I.add(h); 104 var N, O; 105 for (N = q.vertices.length - 1; N >= 0; N--) { 106 O = q.vertices[N]; 107 O.anchor = CAV.Vector3.clone(O.position); 108 O.step = CAV.Vector3.create(Math.randomInRange(0.2, 1), Math.randomInRange(0.2, 1), Math.randomInRange(0.2, 1)); 109 O.time = Math.randomInRange(0, Math.PIM2) 110 } 111 } 112 function B() { 113 var O, N; 114 for (O = I.lights.length - 1; O >= 0; O--) { 115 N = I.lights[O]; 116 I.remove(N) 117 } 118 D.clear(); 119 for (O = 0; O < G.count; O++) { 120 N = new CAV.Light(G.ambient, G.diffuse); 121 N.ambientHex = N.ambient.format(); 122 N.diffuseHex = N.diffuse.format(); 123 I.add(N); 124 N.mass = Math.randomInRange(0.5, 1); 125 N.velocity = CAV.Vector3.create(); 126 N.acceleration = CAV.Vector3.create(); 127 N.force = CAV.Vector3.create() 128 } 129 } 130 function K(O, N) { 131 D.setSize(O, N); 132 CAV.Vector3.set(L, D.halfWidth, D.halfHeight); 133 s() 134 } 135 function o() { 136 i = Date.now() - n; 137 u(); 138 M(); 139 requestAnimationFrame(o) 140 } 141 function u() { 142 var Q, P, O, R, T, V, U, S = t.depth / 2; 143 CAV.Vector3.copy(G.bounds, L);
144 CAV.Vector3.multiplyScalar(G.bounds, G.xyScalar); 145 CAV.Vector3.setZ(k, G.zOffset); 146 for (R = I.lights.length - 1; R >= 0; R--) { 147 T = I.lights[R]; 148 CAV.Vector3.setZ(T.position, G.zOffset); 149 var N = Math.clamp(CAV.Vector3.distanceSquared(T.position, k), G.minDistance, G.maxDistance); 150 var W = G.gravity * T.mass / N; 151 CAV.Vector3.subtractVectors(T.force, k, T.position); 152 CAV.Vector3.normalise(T.force); 153 CAV.Vector3.multiplyScalar(T.force, W); 154 CAV.Vector3.set(T.acceleration); 155 CAV.Vector3.add(T.acceleration, T.force); 156 CAV.Vector3.add(T.velocity, T.acceleration); 157 CAV.Vector3.multiplyScalar(T.velocity, G.dampening); 158 CAV.Vector3.limit(T.velocity, G.minLimit, G.maxLimit); 159 CAV.Vector3.add(T.position, T.velocity) 160 } 161 for (V = q.vertices.length - 1; V >= 0; V--) { 162 U = q.vertices[V]; 163 Q = Math.sin(U.time + U.step[0] * i * t.speed); 164 P = Math.cos(U.time + U.step[1] * i * t.speed); 165 O = Math.sin(U.time + U.step[2] * i * t.speed); 166 CAV.Vector3.set(U.position, t.xRange * q.segmentWidth * Q, t.yRange * q.sliceHeight * P, t.zRange * S * O - S); 167 CAV.Vector3.add(U.position, U.anchor) 168 } 169 q.dirty = true 170 } 171 function M() { 172 D.render(I) 173 } 174 // function J(O) { 175 // var Q, N, S = O; 176 // var P = function(T) { 177 // for (Q = 0, l = I.lights.length; Q < l; Q++) { 178 // N = I.lights[Q]; 179 // N.ambient.set(T); 180 // N.ambientHex = N.ambient.format() 181 // } 182 // }; 183 // var R = function(T) { 184 // for (Q = 0, l = I.lights.length; Q < l; Q++) { 185 // N = I.lights[Q]; 186 // N.diffuse.set(T); 187 // N.diffuseHex = N.diffuse.format() 188 // } 189 // }; 190 // return {set: function() { 191 // P(S[0]); 192 // R(S[1]) 193 // }} 194 // } 195 function v() { 196 window.addEventListener("resize", j) 197 } 198 function A(N) { 199 CAV.Vector3.set(k, N.x, D.height - N.y); 200 CAV.Vector3.subtract(k, L) 201 } 202 function j(N) { 203 K(z.offsetWidth, z.offsetHeight); 204 M() 205 } 206 C(); 207 // $("#fshow").bannerShow({changeColor: J}) 208 }) 209 } else { 210 $("#fshow").bannerShow() 211 } 212 //$("#copytime").html((new Date()).getFullYear()); 213 // $("#ovpage").click(function(g) { 214 // g.preventDefault(); 215 // $("html, body").animate({scrollTop: $("#container").height()}, 1000) 216 // }); 217 // var c = function() { 218 // }; 219 // if (typeof (pgvMain) != "function") { 220 // var f = "http://pingjs.qq.com/tcss.ping.js?v=1"; 221 // $.getScript(f, function() { 222 // if (typeof (pgvMain) == "function") { 223 // pgvMain() 224 // } 225 // c = pgvSendClick; 226 // $(".forTcss").click(function() { 227 // var g = $(this).attr("name"); 228 // var h = window.setTimeout(function() { 229 // c({hottag: g}) 230 // }, 500) 231 // }) 232 // }) 233 // } 234 // window.online_resp = function(g) { 235 // if (g && g.c) { 236 // $("#cur_online").text(g.c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")); 237 // $("#max_online").text(g.h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")) 238 // } 239 // }; 240 // $.getJSON("http://mma.qq.com/cgi-bin/im/online&callback=?", function(g) { 241 // }); 242 // swfobject.embedSWF("http://im.qq.com/online/flash/flash20140304.swf", "flashBox", "910", "700", "9.0.0", "expressInstall.swf"); 243 // $("#viewOnline").click(function(g) { 244 // g.preventDefault(); 245 // $("#flashDiv").show(); 246 // $("#overlay").show(); 247 // $("#overlay").css({height: $(document).height()}); 248 // c({hottag: "pcqq.openflash"}) 249 // }); 250 // $("#flashClose").click(function(g) { 251 // g.preventDefault(); 252 // $("#flashDiv").hide(); 253 // $("#overlay").hide() 254 // }); 255 // $("#flashZone").click(function() { 256 // var h = ($(window).width() - 615) / 2, g = ($(window).height() - 713) / 2; 257 // window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http%3A%2F%2Fim.qq.com%2F&showcount=1&desc=%E4%BA%BF%E4%B8%87%E4%B8%AA%E9%97%AA%E8%80%80%E6%98%9F%E5%85%89%E8%83%8C%E5%90%8E%EF%BC%8C%E6%98%AF%E6%9C%8B%E5%8F%8B%EF%BC%8C%E6%98%AF%E5%AE%B6%E4%BA%BA%EF%BC%8C%E6%98%AF%E7%88%B1%E4%BA%BA%E2%80%A6%E2%80%A6%E7%99%BB%E5%BD%95QQ%EF%BC%8C%E4%B8%BA%E4%BB%96%EF%BC%88%E5%A5%B9%EF%BC%89%E7%82%B9%E4%BA%AE%E4%BD%A0%E7%9A%84%E9%82%A3%E9%A2%97%E6%98%9F%E3%80%82&summary=&title=&site=IM%20QQ%20-%20QQ%E5%AE%98%E6%96%B9%E7%BD%91%E7%AB%99&pics=http%3A%2F%2Fim-img.qq.com%2F
257home%2Fimg%2Fq2013%2Fyun.png&style=203&width=98&height=22&otype=share", "_blank", "toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=615, height=363, left=" + h + ", top=" + g); 258 // c({hottag: "pcqq.sharetozone"}) 259 // }); 260 // $("#flashWeibo").click(function() { 261 // window.open("http://share.v.t.qq.com/index.php?c=share&a=index&url=http%3A%2F%2Fim.qq.com%2F&title=%E4%BA%BF%E4%B8%87%E4%B8%AA%E9%97%AA%E8%80%80%E6%98%9F%E5%85%89%E8%83%8C%E5%90%8E%EF%BC%8C%E6%98%AF%E6%9C%8B%E5%8F%8B%EF%BC%8C%E6%98%AF%E5%AE%B6%E4%BA%BA%EF%BC%8C%E6%98%AF%E7%88%B1%E4%BA%BA%E2%80%A6%E2%80%A6%E7%99%BB%E5%BD%95QQ%EF%BC%8C%E4%B8%BA%E4%BB%96%EF%BC%88%E5%A5%B9%EF%BC%89%E7%82%B9%E4%BA%AE%E4%BD%A0%E7%9A%84%E9%82%A3%E9%A2%97%E6%98%9F%E3%80%82&pic=http%3A%2F%2Fim-img.qq.com%2Fhome%2Fimg%2Fq2013%2Fyun.png&appkey=", "_blank", "toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=615, height=363"); 262 // c({hottag: "pcqq.sharetoweibo"}) 263 // }); 264 var d = $(".ipage"); 265 var e = [], b = []; 266 $(d).each(function(g, h) { 267 e[g] = $(h).offset().top + Math.floor($(h).height() / 2); 268 b[g] = $(h).find(".imgwrap") 269 }); 270 var a = $(window).height(); 271 $(window).resize(function() { 272 a = $(window).height() 273 }); 274 // $(window).scroll(function() { 275 // var g = $(window).scrollTop(); 276 // $(e).each(function(h, j) { 277 // if (Math.floor(a / 2) + g >= j) { 278 // if (!$(b[h]).hasClass("showbg") && $(b[h]).hasClass("fig_24")) { 279 // $(b[h]).addClass("showbg"); 280 // setTimeout(function(){$(".fig_24_text").css("background-image","url(http://sqimg.qq.com/qq_product_operations/im/pcqq/7/rect.png)");},1500); 281 // setTimeout(function(){$("#sp3").css("display","inline-block");},2500); 282 283 // var strarray=["Q","Q","ç","å´å·¾","å","ç»","ä¸","ç¹"]; 284 // /*èèéå é®é¢*/ 285 // for (var j = 0; j < strarray.length; j++) { 286 // setTimeout((function(j){ 287 // return function(){ 288 // $('#sp2').append(strarray[j]); 289 // } 290 // })(j), (j+1)*300+2500); 291 // }; 292 // } 293 // else if(!$(b[h]).hasClass("showbg")) 294 // { 295 // $(b[h]).addClass("showbg") 296 // } 297 // } 298 // }); 299 // }); 300 301});
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.