1function windowOpen () { 2 var nUrl; var nWidth; var nHeight; var nLeft; var nTop; var nScroll; 3 nUrl = arguments[0]; 4 nWidth = arguments[1]; 5 nHeight = arguments[2]; 6 nScroll = (arguments.length > 3 ? arguments[3] : "no"); 7 nLeft = (arguments.length > 4 ? arguments[4] : (screen.width/2 - nWidth/2)); 8 nTop = (arguments.length > 5 ? arguments[5] : (screen.height/2 - nHeight/2)); 9 10 winopen=window.open(nUrl, 'pbml_win', "left="+nLeft+",top="+nTop+",width="+nWidth+",height="+nHeight+",scrollbars="+nScroll+",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no"); 11} 12//print 13function printOpen() { 14 //var type = (arguments.length > 0 ? arguments[0] : ""); 15 //windowOpen ("/svc/news/www/printContent.html?type="+type, 615, 550, 'yes'); 16 window.print(); 17} 18//article list 19function goList () { 20 var listurl = "/svc/list.html"; 21 22 if (typeof(CatID) != "undefined") { 23 if (CatID == "9") listurl = "/svc/list_gallery.html"; 24 listurl += "?catid="+CatID; 25 } 26 location.href = listurl; 27} 28//title 29function _getArticleTitle() { 30 var titl = ArtTitle; 31 if (titl == "") { 32 var metas = document.getElementsByTagName("META"); 33 for (var i=0;i<metas.length;i++){ 34 if (metas[i].name && metas[i].name == "description"){ 35 titl = metas[i].content; 36 break; 37 } 38 } 39 } 40 if (titl == "") titl = document.title; 41 42 return titl; 43} 44//link 45function _getArticleLink() { 46 var link = location.protocol + "//" + location.hostname + "" + (location.port!="" ? ":"+location.port : "") + location.pathname; 47 return link; 48} 49//facebook 50function facebookOpen() { 51 var titl = encodeURIComponent(_getArticleTitle()); 52 var link = encodeURIComponent(_getArticleLink()); 53 54 var url = "//www.facebook.com/sharer.php?u=" + link + "&t=" + titl; 55 window.open (url, '_blank'); 56 //windowOpen (url, 900, 450, 'no'); 57} 58//twitter 59function twitterOpen() { 60 var titl = encodeURIComponent(_getArticleTitle()); 61 var link = encodeURIComponent(_getArticleLink()); 62 63 var url = "//twitter.com/share?text=" + titl + "&url=" + link; 64 window.open (url, '_blank'); 65 //windowOpen (url, 800, 400, 'yes'); 66} 67//hatena 68function hatenaOpen() { 69 var link = encodeURIComponent(_getArticleLink()); 70 71 var url = "http://b.hatena.ne.jp/append?" + link; 72 window.open (url, '_blank'); 73 //windowOpen (url, 800, 400, 'yes'); 74} 75//bookmark-yahoo 76function yahooOpen() { 77 var titl = encodeURIComponent(_getArticleTitle()); 78 var link = encodeURIComponent(_getArticleLink()); 79 80 var url = "//bookmarks.yahoo.co.jp/action/bookmark?t=" + titl + "&u=" + link; 81 window.open (url, '_blank'); 82 //windowOpen (url, 800, 400, 'yes'); 83} 84//livedoor 85function livedoorOpen() { 86 var titl = encodeURIComponent(_getArticleTitle()); 87 var link = encodeURIComponent(_getArticleLink()); 88 89 var url = "//clip.livedoor.com/redirect?link=" + link + "&title=" + titl; 90 window.open (url, '_blank'); 91 //windowOpen (url, 800, 400, 'yes'); 92} 93//digg 94function diggOpen() { 95 var titl = encodeURIComponent(_getArticleTitle()); 96 var link = encodeURIComponent(_getArticleLink()); 97 98 var url = "http://digg.com/submit?phase=2&url=" + link + "&title=" + titl; 99 window.open (url, '_blank'); 100 //windowOpen (url, 800, 400, 'yes'); 101} 102//delicious 103function deliciousOpen() { 104 var titl = encodeURIComponent(_getArticleTitle()); 105 var link = encodeURIComponent(_getArticleLink()); 106 107 var url = "http://del.icio.us/post?url=" + link + "&title=" + titl; 108 window.open (url, '_blank'); 109 //windowOpen (url, 800, 400, 'yes'); 110} 111function graphicOpen () { 112 var win_url = arguments.length > 0 ? arguments[0] : ''; 113 if (win_url == '') return; 114 115 var win_width = arguments.length > 1 ? arguments[1] : '920'; 116 var win_height = arguments.length > 2 ? arguments[2] : '600'; 117 var win_left = screen.width/2 - win_width/2; 118 var win_top = screen.height/2 - win_height/2; 119 120 window.open(win_url, 'graphic', "left="+win_left+",top="+win_top+",width="+win_width+",height="+win_height+",scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no"); 121}
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.