PageSourceSearch

https://www.pururiyamagata.com/script.js

js pururiyamagata.com collected 2026-09-24 11:00:00 UTC 3,063 bytes, 95 lines download raw bytes

1var map;
2var marker;
3
4function initMap(lat, lng, shopName) {
5    if (typeof lat != 'undefined' && typeof lng != 'undefined' && typeof shopName != 'undefined') {
6        var MyLatLng = new google.maps.LatLng(parseFloat(lat), parseFloat(lng));
7        var Options = {
8            zoom: 15,      //地図の縮尺値
9            center: MyLatLng,    //地図の中心座標
10            mapTypeId: 'roadmap'   //地図の種類
11        };
12        map = new google.maps.Map(document.getElementById('map'), Options);
13
14        var center = {
15            lat: parseFloat(lat), // 緯度
16            lng: parseFloat(lng) // 経度
17        };
18        marker = new google.maps.Marker({ // マーカーの追加
19            position: center, // マーカーを立てる位置を指定
20            map: map // マーカーを立てる地図を指定
21        });
22        var infowin = new google.maps.InfoWindow({ content: shopName });
23
24        // mouseoverイベントを取得するListenerを追加
25        google.maps.event.addListener(marker, 'mouseover', function () {
26            infowin.open(map, marker);
27        });
28
29        // mouseoutイベントを取得するListenerを追加
30        google.maps.event.addListener(marker, 'mouseout', function () {
31            infowin.close();
32        });
33    }
34}
35
36function scrollToElementId(elementId) {
37    if (typeof elementId != 'undefined') {
38        if (elementId === "top") {
39            let target = document.getElementById('top');
40            target.scrollIntoView(true);
41        }
42        else if (elementId === "end")
43        {
44            let target = document.getElementById('end');
45            target.scrollIntoView(false);
46        }
47    }
48}
49
50function changeClass(operation)
51{
52    if (operation === 1) {
53        const selected = document.getElementsByClassName("area_selected");
54        if (typeof selected[0] != 'undefined' || selected[0] != null) {
55            selected[0].className = "area_unselected";
56        }
57    }
58    else if (operation === 2){
59        const selected = document.getElementsByClassName("categ_selected");
60        if (typeof selected[0] != 'undefined' || selected[0] != null) {
61            selected[0].className = "categ_unselected";
62        }
63    }
64}
65
66var position;					/* スクロール位置のY座標 */
67
68/*
69 * checkOffset関数: 現在のスクロール量をチェックしてストレージに保存
70 */
71function checkOffset(display) {
72    var element = document.getElementById('main');
73    position = element.scrollTop;
74    localStorage.setItem(display, position);
75}
76
77
78function scrollSet(display) {
79    // ストレージチェック
80    position = localStorage.getItem(display);
81
82    // 前回の保存データがあればスクロールする
83    if (position !== null) {
84        var element = document.getElementById('main');
85        element.scrollTop = position;
86    }
87}
88
89function clear() {
90    localStorage.clear();
91}
92
93function ItemClear(key) {
94    localStorage.removeItem(key);
95}

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.