1var pageFormat = "pc"; 2var windowWidth = 1000; 3 4function checkSize(){ 5 //windowWidth = window.screen.width < window.outerWidth ? window.screen.width : window.outerWidth; 6 windowWidth = $(window).width(); 7 8 9 //detect facebook 10 /* 11 if(window.name != "") { 12 windowWidth = 810; 13 } 14 */ 15 16 if($_facebook == 1){ 17 windowWidth = 810; 18 } 19 20 21 if(windowWidth < 468){ 22 //mobile 23 $("body").attr("class","tablet mobile smallmobile"); 24 pageFormat = "small_mobile"; 25 }else if(windowWidth <= 768){ 26 //mobile 27 $("body").attr("class","tablet mobile"); 28 pageFormat = "mobile"; 29 }else if(windowWidth < 960){ 30 //tablet 31 $("body").attr("class","tablet"); 32 pageFormat = "mobile"; 33 }else{ 34 $("body").attr("class",""); 35 pageFormat = "pc"; 36 } 37 38 39 40 41} 42 43 44$(document).ready(function(){ 45 $("#w").focus(); 46 47 checkSize(); 48 //$(window).resize(checkSize); 49 window.onresize = checkSize; 50 51 52}); 53 54 55 56 57/////////////////////////////////// GA ////////////////////////////////////// 58 59var _gaq = _gaq || []; 60var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; 61_gaq.push(['_require', 'inpage_linkid', pluginUrl]); 62_gaq.push(['_setAccount', 'UA-6584459-2']); 63_gaq.push(['_trackPageview']); 64 65(function() { 66var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 67//ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 68 69ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; 70 71var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 72})(); 73 74 75function track($url){ 76 $url = $url; 77 var pageTracker = _gat._getTracker("UA-6584459-2"); 78 pageTracker._trackPageview($url); 79}
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.