1// JavaScript Document 2 3/* -------------------------------------------------------------------------------------- 4 ãã¹ããã®æ¯ãåãç¨ãã¿ã³ 5--------------------------------------------------------------------------------------- */ 6 7$(function (){ 8 var sortSelect = 1, //鏿æ¯ãåãã¯ã0ãããèªåæ¯ãåãã¯ã1ããå ¥å 9 fontColor = '#fff', //æåè² 10 borderColor = '#180f0a', //ãã¼ãã¼ã®è² 11 Gradation_top = '#180f0a', //ã°ã©ãã¼ã·ã§ã³ä¸é¨ã®è² 12 Gradation_bottom = '#180f0a', //ã°ã©ãã¼ã·ã§ã³ä¸é¨ã®è² 13 font = '"游ææä½", "Yu Mincho", YuMincho,"ãã©ã®ãææ Pro W3","Hiragino Mincho Pro","HGSææE","ï¼ï¼³ ï¼°ææ",serif', 14 //font = '"Yu Gothic", YuGothic,"ãã©ã®ãè§ã´ Pro W3","Hiragino Kaku Gothic Pro","ã¡ã¤ãªãª",Meiryo,"Osaka","ï¼ï¼³ ï¼°ã´ã·ãã¯","MS PGothic",sans-serif', 15 current_URL = location.href, //ç¾å¨ã®URLåå¾ 16 sp_URL = current_URL.substr(0, current_URL.lastIndexOf("/")) + "/sp" + current_URL.substring(current_URL.lastIndexOf("/")); //ã¹ããã®URLã«å¤æ 17 18 // iPhoneã¾ãã¯ãAndroidã®å ´åã¯æ¯ãåãã夿 19 if (document.referrer.indexOf('å¥ç´ãã¡ã¤ã³') == -1 && ((navigator.userAgent.indexOf('iPhone') > 0 && 20 navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 21 0)) { 22 23 if (sortSelect === 0) { 24 sp_alert(); 25 sp_Btn(); 26 } else if(sortSelect === 1) { 27 sp_Btn(); 28 } 29 } 30 31 32 function sp_alert() { 33 if(confirm('ã¹ãã¼ããã©ã³ç¨ã®ãµã¤ã表示ãã¾ããï¼\nï¼ãã£ã³ã»ã«ã®å ´åã¯ï¼°ï¼£ãµã¤ãã表示ãã¾ãã)')) { location.href = sp_URL; } 34 } 35 36 function sp_Btn() { 37 //ã¹ããé²è¦§æã¹ãããµã¤ãèªå°ãã¿ã³ã®CSS 38 $("body").before('<style type="text/css">#sp_botan a{position:relative;top:0;left:0;width:100%;z-index: 100000000000;border:1px ' + borderColor + ' solid;padding:25px 0;text-align:center;font-size:32px;color:' + fontColor + ';display:block;text-decoration:none;font-family:' + font + ';, serif;background: #4a4759;background: -moz-linear-gradient(top, ' + Gradation_top + ' 1%, ' + Gradation_bottom + ' 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,' + Gradation_top +'), color-stop(100%,' + Gradation_bottom + '));background: -webkit-linear-gradient(top, ' + Gradation_top + ' 1%,' + Gradation_top + ' 100%);background: -o-linear-gradient(top, ' + Gradation_top +' 1%,' + Gradation_bottom + ' 100%);background: -ms-linear-gradient(top, ' + Gradation_top + ' 1%,' + Gradation_bottom +' 100%);background: linear-gradient(to bottom, ' + Gradation_top + ' 1%,' + Gradation_bottom + ' 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="' + Gradation_top +'", endColorstr="' + Gradation_bottom + '",GradientType=0 );}</style>'); 39 40 //ã¹ããé²è¦§æã¹ãããµã¤ãèªå°ãã¿ã³ã®åºå 41 $("body").prepend('<p id="sp_botan"><a href="' + sp_URL +'">ã¹ãã¼ããã©ã³ãµã¤ãã¯ãã¡ã</a></p>'); 42 } 43}); 44
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.