1function isiPad() { 2 return RegExp("iPad;").test(navigator.userAgent); 3} 4function isWebKit() { 5 return RegExp(" AppleWebKit/").test(navigator.userAgent); 6} 7function isMobile() { 8 return isWebKit() && RegExp(" Mobile").test(navigator.userAgent) && !isiPad() ; 9} 10 11 12var pathArr = location.pathname.split("/"); 13var param = location.search; 14// URLÌ»Ê 15if($.inArray('sp', pathArr) == -1) { // PCÅÌURLÌÆ« 16 // foCXÌ»Ê 17 if(isMobile() == true ) { // X}zÌÆ« 18 19 // cookieªgpÂ\©»Ê 20 $.cookie( 21 'judgment', 22 'valid', 23 { 24 path:'/', 25 domain:'.osakagas.co.jp' 26 } 27 ); 28 if($.cookie('judgment')) { // pÂ\ÌÆ« 29 30 // p»ÊpÌcookieÌí 31 $.cookie('judgment', null); 32 33 // devicemodeÌlÌ»Ê 34 if(!$.cookie('devicemode')) { // devicemodeÉlªüÁÄȢƫ 35 36 //X}zÅÖÌJÚ 37 var thisHref = redirectUrl; 38 window.location = thisHref + param; 39 40 } else { // devicemodeÉlªüÁĢ鯫 41 42 // PCÅÖ(y[WJÚȵ) 43 44 } 45 46 // psÂÌ 47 } else { 48 49 // p»ÊpÌcookieÌí 50 $.cookie('judgment', null); 51 52 } 53 54 } else { // X}zÈOÌÆ« 55 56 } 57 58 59 $(function() { 60 // X}zÅÖÌU±NðNbNµ½ 61 $('#sp_btn a').live('click', function() { 62 var thisHref = $(this).attr('href'); 63 $.cookie( 64 'devicemode', 65 null, 66 { 67 expires:3, 68 path:'/', 69 domain:'.osakagas.co.jp' 70 } 71 ); 72 73 window.location = thisHref; 74 return false; 75 }); 76 }); 77} else { // SPÅÌURLÌÆ« 78}
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.