ããã
空港ã®å¤©æ°
ç¦å²¡ç
ç¦å²¡çã®ç©ºæ¸¯ã®å¤©æ°26æ¥00:00çºè¡¨
ææ°ã®è¨äº(æ°è±¡äºå ±å£«)
tenki.jpå
¬å¼SNS
tenki.jpå
¬å¼ã¢ããª
å
¨å½ã®ã³ã³ãã³ã
tenki.jpããã
' + __name + ' --- / ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- / --- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 9){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['forecast_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/forecast/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__r__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && !__entries[___i]['type']) {
if(!json['i']) {
json['i'] = '00';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/forecast-days-weather/' + json['i'] + '.png').attr('alt',json['t']);
$('.max_t',$__html_a).html(json['max_t']);
$('.min_t',$__html_a).html(json['min_t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['max_t'] + ' / ' + json['min_t'] + ' ' + json['p'] +'% ';
$__html.html(__html_str);
// for body entries
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/forecast-days-weather/' + json['i'] + '.png').attr('alt',json['t']);
$('.max-temp',$___html_a).html(json['max_t']);
$('.min-temp',$___html_a).html(json['min_t']);
$('.prob-precip',$___html_a).html(json['p'] + '%');
}
}
}
});
__processed_entry_by_jiscode['forecast_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'heatstroke') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 5){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['heatstroke_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/heatstroke/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__h__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'heatstroke') {
if(!json['i']) {
json['i'] = 'none';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/heatstroke/default/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('.temp-box',$__html_a).html(json['t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['t'] + ' ';
$__html.html(__html_str);
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/heatstroke/default/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('span',$___html_a).html(json['t']);
}
}
}
});
__processed_entry_by_jiscode['heatstroke_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'heatshock') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 5){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['heatshock_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/heatshock/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__hs__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'heatshock') {
if(!json['i']) {
json['i'] = 'none';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/heatshock/default/icon-small-' + json['i'] + '.png').attr('alt',json['t']);
$('.temp-box',$__html_a).html(json['t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['t'] + ' ';
$__html.html(__html_str);
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/heatshock/default/icon-small-' + json['i'] + '.png').attr('alt',json['t']);
$('span',$___html_a).html(json['t']);
}
}
}
});
__processed_entry_by_jiscode['heatshock_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'sakura') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 5){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['sakura_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/sakura/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__skr__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'sakura') {
if(!json['i']) {
json['i'] = 'none';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/sakura/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('.temp-box',$__html_a).html(json['t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['t'] + ' ';
$__html.html(__html_str);
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/sakura/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('span',$___html_a).html(json['t']);
}
}
}
});
__processed_entry_by_jiscode['sakura_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'kouyou') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 5){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['kouyou_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/kouyou/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__k__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'kouyou') {
if(!json['i']) {
json['i'] = 'none';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/kouyou/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('.temp-box',$__html_a).html(json['t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['t'] + ' ';
$__html.html(__html_str);
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/kouyou/icon-' + json['i'] + '.png').attr('alt',json['t']);
$('span',$___html_a).html(json['t']);
}
}
}
});
__processed_entry_by_jiscode['kouyou_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'ski') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' --- / ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- / --- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 9){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['ski_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/ski/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__ski__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'ski') {
if(!json['i']) {
json['i'] = '00';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/forecast-days-weather/' + json['i'] + '.png').attr('alt',json['t']);
$('.max_t',$__html_a).html(json['max_t']);
$('.min_t',$__html_a).html(json['min_t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['max_t'] + ' / ' + json['min_t'] + ' ';
$__html.html(__html_str);
// for body entries
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/forecast-days-weather/' + json['i'] + '.png').attr('alt',json['t']);
$('.max-temp',$___html_a).html(json['max_t']);
$('.min-temp',$___html_a).html(json['min_t']);
$('.prob-precip',$___html_a).html('');
}
}
}
});
__processed_entry_by_jiscode['ski_' + __entries[__i]['jiscode']] = 1;
} else if(__type == 'pollen') {
// for header base html
if(__i < __number_views) {
var __html = '' + __name + ' ---
ï½ ';
$('#history-entries').append(__html);
}
// for body recent html
if(__i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var _html = '--- --- ';
$('#forecast-map-history-box-recent-entry').html(_html);
}
// for body base html
if(__i >= 1 && __i <= 5){
var __html = '';
$('#forecast-map-history-wrap').append(__html);
}
if(__processed_entry_by_jiscode['pollen_' + __entries[__i]['jiscode']]) {
continue LOOP_I;
}
$.ajax({
type: 'GET',
url: 'https://static.tenki.jp/static-api/history/pollen/' + __jiscode + '.js',
dataType: 'jsonp',
cache: true,
jsonpCallback: '__pl__'+__jiscode
}).then(function(json){
for(var ___i=0; ___i < __entries.length; ___i++) {
if(json['j'] == __entries[___i]['jiscode'] && __entries[___i]['type'] == 'pollen') {
if(!json['i']) {
json['i'] = 'none';
json['t'] = '---';
}
// for header histories
var ___header_history_html_id = 'history-entry-' + ___i;
if(document.getElementById(___header_history_html_id)) {
var $__html_a = $('#' + ___header_history_html_id + ' a');
$('img',$__html_a).attr('src','https://static.tenki.jp/images/icon/pollen/default/icon-small-' + json['i'] + '.png').attr('alt',json['t']);
$('.temp-box',$__html_a).html(json['t']);
}
// for body recent entry
if(___i == 0 && document.getElementById('forecast-map-history-box-recent-entry')) {
var $__html = $('#forecast-map-history-box-recent-entry');
var __html_str = ''
+ __escapeHTML(__entries[___i]['name']) + ' '
+ ' '
+ '' + json['t'] + ' ';
$__html.html(__html_str);
} else if(___i > 0 && document.getElementById('forecast-map-history-wrap')) {
var ___html_id = 'history-body-entry-' + ___i;
var $___html_a = $('#' + ___html_id + ' a');
$('.forecast-image',$___html_a).attr('src','https://static.tenki.jp/images/icon/pollen/default/icon-small-' + json['i'] + '.png').attr('alt',json['t']);
$('span',$___html_a).html(json['t']);
}
}
}
});
__processed_entry_by_jiscode['pollen_' + __entries[__i]['jiscode']] = 1;
}
var coachLinkHistoryIsClosed = Cookies.get('coach_mark_history') === 'closed';
if (__historyCoachMarkValid && !coachLinkHistoryIsClosed) {
var target = document.getElementById('history-entry-0');
target.innerHTML = '' + target.innerHTML + 'ç´åã«è¦ãæ
å ±ã ããã«ä¿åããã¾ã ï¼ãã°ã¤ã³ä¸è¦ï¼
';
var close_button = document.querySelector('.coach-mark-close');
close_button.addEventListener('click', function(){
document.querySelector('.coach-mark-history').style.display = 'none';
Cookies.set('coach_mark_history', 'closed', {'expires': 3000, path: '/'});
});
}
} // LOOP_I
};
__get_h_point_entries();
// redirect location url
if( navigator.geolocation && document.getElementById('hd-search-gps')){
$('#hd-search-gps a,#body-search-gps a').click(function(){
navigator.geolocation.getCurrentPosition(function(position){
var lat = position.coords.latitude;
var lon = position.coords.longitude;
location.href = 'https://static.tenki.jp/api/app/get-point-url.html?lon=' + lon + '&lat=' + lat;
return false;
});
});
}
$(document).on('click','#history-entries li a.history-entry-close',function(){
var $$ = $(this);
var id = $$.parents('li[id^=history-]').get(0).id.split('-').pop();
if(id != '' && id >= 0 && id <= 10000) {
__remove_h_point(id);
__get_h_point_entries();
}
});
// -->