PageSourceSearch

https://www.agara.co.jp/js/footer.js

js agara.co.jp collected 2026-10-02 05:20:46 UTC 1,820 bytes, 52 lines download raw bytes

1(function () {
2	setProviderTop = function (s) {
3		// PHPと同じUA判定ロジック
4		const ua = navigator.userAgent.toLowerCase();
5		let sp = false;
6
7		if (
8			ua.includes('iphone') ||             // iPhone
9			ua.includes('ipod') ||               // iPod
10			(ua.includes('android') && ua.includes('mobile')) || // Androidスマホ
11			(ua.includes('windows') && ua.includes('mobile')) || // Windows Phone
12			(ua.includes('firefox') && ua.includes('mobile')) || // Firefox Phone
13			(ua.includes('bb10') && ua.includes('mobile')) ||    // BlackBerry 10
14			ua.includes('blackberry')                            // BlackBerry
15		) {
16			sp = true;
17		}
18
19		let el = document.createElement('div');
20		el.innerHTML = '配信記事やプレスリリースは、配信・発表元による原稿をそのまま掲載しています。 お問い合わせは各情報配信・発表元に直接お願いします。';
21		el.style.marginBottom = "1em";
22		js_main.prepend(el);
23
24		el = document.createElement('div');
25		el.style.minHeight = "35px";
26		el.innerHTML = s;
27
28		// PCの場合だけ左寄せスタイルを適用
29		if (!sp) {
30			el.style.float = "left";
31			el.style.marginRight = "1em";
32		}
33
34		js_main.prepend(el);
35	}
36
37	let js_main = document.getElementById("js-main");
38	if (!js_main) {
39		const cls = document.getElementsByClassName("article_head");
40		if (cls && cls.length) {
41			js_main = cls[0];
42		}
43	}
44	if (js_main) {
45		const provider = document.getElementsByClassName("provider");
46		if (provider && provider.length) {
47			setProviderTop(provider[0].innerHTML);
48		} else if ((document.querySelector('meta[name="Keywords"]') || {}).content == "PR TIMES") {
49			setProviderTop('提供:<a href="http://prtimes.jp" target="_blank" rel="noopener noreferrer"><img src="/img/provider/prtimes.png" alt="PR TIMES"></a>');
50		}
51	}
52})();

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.