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.