PageSourceSearch

https://www.okasan-online.co.jp/shared/js/sp_redirect.js

js okasan-online.co.jp collected 2026-10-02 06:41:01 UTC 1,053 bytes, 35 lines download raw bytes

1function sp_location ()
2{
3	
4	if(is_smartPhone ()){
5		
6		var currentLocation = document.location.pathname;
7	
8		var currentLocationParam = document.location.search;
9
10		location.href = "/smt" + currentLocation + currentLocationParam;
11
12/*
13		if (currentLocationParam.match("[\?]acc=")) {
14			location.href = "/smt" + currentLocation + location.search;
15		} else if(document.referrer.length > 1) {
16			currentLocation.replace( /\?.+/g , "" );
17			var currentLocationRef = document.referrer.replace( /\?.+/g , "" );
18			location.href = "/smt" + currentLocation + "?ref=" + currentLocationRef;
19		}else{
20			location.href = "/smt" + currentLocation;
21		}
22*/
23
24
25	}
26	
27	
28}
29
30
31function is_smartPhone () {
32	var pattern = navigator.userAgent.toLowerCase();
33	var UA={iPhone:pattern.indexOf('iphone')!=-1,iPod:pattern.indexOf('ipod')!=-1,Android:pattern.indexOf('android')!=-1&&pattern.indexOf('mobile')!=-1,WindowsPhone:pattern.indexOf('windows phone')!=-1};return(UA.iPhone||UA.iPod||UA.Android||UA.WindowsPhone)?true:false;
34}
35sp_location();

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.