PageSourceSearch

https://mymc.jp/wp2/wp-content/themes/mymc/js/cmn_asap.js

js mymc.jp collected 2026-09-25 04:11:25 UTC 679 bytes, 22 lines download raw bytes

1window.DEVICE = { SP: 0, TB: 1, PC: 2 };
2
3//import './_require/_viewport-extra';
4new ViewportExtra(360); //Viewport Extra
5
6//デバイス判別
7var ua = navigator.userAgent.toLowerCase();
8var ipad = ua.indexOf('ipad') > -1 || ua.indexOf('macintosh') > -1 && 'ontouchend' in document;
9
10if (ua.indexOf('iphone') > 0 || ua.indexOf('ipod') > 0 || ua.indexOf('android') > 0 && ua.indexOf('mobile') > 0) {
11	//SP
12	window.currentDevice = DEVICE.SP;
13}else{
14	if (ipad || ua.indexOf('android') > 0) {
15		//タブレット
16		window.currentDevice = DEVICE.TB;
17		//document.getElementById('viewport').setAttribute('content', 'width=980');
18	}else{
19		//PC
20		window.currentDevice = DEVICE.PC;
21	}
22}

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.