PageSourceSearch

https://twinings.com.tw/js/function.js

js twinings.com.tw collected 2026-10-06 18:54:28 UTC 2,111 bytes, 58 lines download raw bytes

1/* 餐飲店家地圖顯示 */
2function showMap(u, v, w, x, y, z) {
3    codeAddress(u, v, z, w + '|營業時間:' + x + '|門市電話:' + y + '|' + z);
4}
5/* 餐飲店家地圖顯示 */
6
7/* 零售通路地圖顯示 */
8function showMap2(v, w, x, y, z) {
9    $("[id*=STORE_MAP]").hide();
10    $('#STORE_MAP' + v).show();
11    codeAddress(geocoders['geocoder' + v], maps['map' + v], z, w + '|營業時間:' + x + '|門市電話:' + y + '|' + z);
12}
13/* 零售通路地圖顯示 */
14
15/* 地圖顯示 */
16var markers = [];
17function codeAddress(geocoder, map, address, salestext) {
18    if (geocoder) {
19        geocoder.geocode({ 'address': address }, function (results, status) {
20            if (status == google.maps.GeocoderStatus.OK) {
21
22                clearMarkers();
23                markers = [];
24
25                map.setCenter(results[0].geometry.location);
26                var marker = new google.maps.Marker({
27                    map: map,
28                    position: results[0].geometry.location
29                });
30                marker.setIcon('images/where.png');
31                markers.push(marker);
32                var mapLabel = new MapLabel({
33                    text: salestext,
34                    position: new google.maps.LatLng(results[0].geometry.location.lat() - 0.0007, results[0].geometry.location.lng() - 0.0003),
35                    map: map,
36                    fontSize: 13,
37                    fontColor: "#ffffff",
38                    strokeColor: "#ffffff",
39                    strokeWeight: "0"
40                });
41                mapLabel.set('position', new google.maps.LatLng(results[0].geometry.location.lat(), results[0].geometry.location.lng()));
42                marker.bindTo('map', mapLabel);
43                marker.bindTo('position', mapLabel);
44            } else {
45                alert("Geocode was not successful for the following reason: " + status);
46            }
47        });
48    }
49}
50function setAllMap(map) {
51    for (var i = 0; i < markers.length; i++) {
52        markers[i].setMap(map);
53    }
54}
55function clearMarkers() {
56    setAllMap(null);
57}
58/* 地圖顯示 */

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.