PageSourceSearch

https://jr-miyajimaferry.co.jp/wp-content/themes/jr-miyajimaferry.co.jp/js/script.js

js jr-miyajimaferry.co.jp collected 2026-10-02 10:20:18 UTC 1,050 bytes, 37 lines download raw bytes

1
2
3// タブレットではPC表示
4$(function() {
5	var ua = navigator.userAgent;
6	if ((ua.indexOf('iPhone') > 0) || ua.indexOf('iPod') > 0 || (ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0)) {
7		// スマホのとき
8		$('head').prepend('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />');
9	}else{
10		// PC・タブレットのとき
11		$('head').prepend('<meta name="viewport" content="width=1120" />');
12	}
13});
14
15// ページの先頭へもどる
16
17function backToTop() {
18var x1 = x2 = x3 = 0;
19var y1 = y2 = y3 = 0;
20if (document.documentElement) {
21x1 = document.documentElement.scrollLeft || 0;
22y1 = document.documentElement.scrollTop || 0;
23}
24if (document.body) {
25x2 = document.body.scrollLeft || 0;
26y2 = document.body.scrollTop || 0;
27}
28x3 = window.scrollX || 0;
29y3 = window.scrollY || 0;
30var x = Math.max(x1, Math.max(x2, x3));
31var y = Math.max(y1, Math.max(y2, y3));
32window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
33if (x > 0 || y > 0) {
34window.setTimeout("backToTop()", 25);
35}
36}
37

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.