PageSourceSearch

https://kankou-iwaki.or.jp/js/geo.js?v=97701ed0b6cd5e04a7d9a49d94c2d95b34638954

js kankou-iwaki.or.jp collected 2026-10-02 08:10:47 UTC 1,424 bytes, 65 lines download raw bytes

1var navigateResult = null;
2
3var navigate = function (proc) {
4	if (!proc) {
5		proc = function(){};
6	}
7	if (navigator.geolocation) {
8		navigator.geolocation.getCurrentPosition(
9			//成功時処理
10			function(result) {
11				navigateResult =
12					{
13						status    : "success",
14						success   : 1,
15						error     : 0,
16						latitude  : result.coords.latitude,
17						longitude : result.coords.longitude,
18						accuracy  : result.coords.accuracy
19					};
20
21				$(proc);
22			},
23			//エラー時処理
24			function(error) {
25				var message = "";
26				switch (error.code) {
27					case error.POSITION_UNAVAILABLE:
28						message = "位置情報の取得ができませんでした。";
29						break;
30					case error.PERMISSION_DENIED:
31						message = "位置情報取得の使用許可がされませんでした。";
32						break;
33					case error.PERMISSION_DENIED_TIMEOUT:
34						message = "位置情報取得中にタイムアウトしました。";
35						break;
36				}
37
38				navigateResult =
39					{
40						status  : "error",
41						success   : 0,
42						error     : 1,
43						message : message
44					};
45
46				$(proc);
47			},
48			//パラメータ
49			{
50				enableHighAccuracy: true
51			}
52		);
53	}
54	else {
55		navigateResult =
56			{
57				status  : "error",
58				success : 0,
59				error   : 1,
60				message : "本ブラウザでは位置情報が取得できません"
61			};
62
63		$(proc);
64	}
65};

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.