PageSourceSearch

https://www.hyperdia.com/ja/js/checkDevice.js

js hyperdia.com collected 2026-10-02 04:03:29 UTC 847 bytes, 39 lines download raw bytes

1/**
2	@file
3	checkDevice.js
4	@author h-ali
5	@version 1.0.0.0
6	@since 24/10/2018
7	$Revision: $
8*/
9
10function checkDevicePC() {
11	/*
12    var ua = navigator.userAgent;
13    if ((ua.indexOf('iPhone') > 0 && 
14         ua.indexOf('iPad') == -1) || 
15         ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0) {
16         // ƒXƒ}ƒz‚̏ꍇ‚͉½‚à‚µ‚È‚¢
17    } else {
18		// PC—p‚̃y[ƒW‚ÉƒŠƒ_ƒCƒŒƒNƒg‚·‚é
19		var url = location.href;
20		url.replace( "/sp/", "" );
21		location.href = url;
22    }
23    */
24}
25
26function checkDevicePS() {
27    var ua = navigator.userAgent;
28    if ((ua.indexOf('iPhone') > 0 &&
29         ua.indexOf('iPad') == -1) || 
30         ua.indexOf('iPod') > 0 || 
31         ua.indexOf('Android') > 0) {
32		// ƒXƒ}ƒz—p‚̃y[ƒW‚ÉƒŠƒ_ƒCƒŒƒNƒg‚·‚é
33		var url = location.href;
34		url += 'sp/';
35		location.href = url;
36	}
37}
38
39

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.