PageSourceSearch

https://int.muenhotel.com/js/weather.js

js muenhotel.com collected 2026-10-08 21:09:38 UTC 1,311 bytes, 29 lines download raw bytes

1var runningWeather = function () { };
2runningWeather.count = 15;
3runningWeather.timeout = undefined;
4runningWeather.Exec = function (weatherCode, lang) {
5    $.ajax({
6        url: 'https://api.taiwantravelmap.com/tools/weather.ashx?ttmid=' + weatherCode + '&lang=' + lang,
7        type: 'GET',
8        dataType: 'json',
9        success: function (weather) {
10            if (weather.data.city != 'N/A' && weather.data.region != 'N/A') {
11                html = '<div class="weather_title">' + weather.data.city + ', ' + weather.data.region + '</div>';
12                html += '<img style="float:left;" width="32px" src="/Content/images/weather/CWB/' + weather.data.weatherIconsId + '@2x.png">';
13                $("#weather").html(html);
14            }
15        },
16        error: function () {
17            if (runningWeather.timeout == undefined) {
18                clearTimeout(runningWeather.timeout);
19                runningWeather.timeout = undefined;
20            }
21            $("#weather").html("<p style=\"font-size: 12px; margin: auto; width: 100%; display: table;\">Loading...</p>");
22            runningWeather.count--;
23            if (runningWeather.count > 0) {
24                runningWeather.timeout = setTimeout(runningWeather.Exec, 5000);
25            }
26        }
27    });
28}
29

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.