PageSourceSearch

https://www.city.hokuto.hokkaido.jp/js/common.js?202507041527

js city.hokuto.hokkaido.jp collected 2026-10-02 07:00:44 UTC 4,383 bytes, 8 lines download raw bytes

1$(function(){var pagetop=$('.pagetop');$(window).scroll(function(){var pagetop=$('.pagetop');if($(this).scrollTop()>100){pagetop.fadeIn();}else{pagetop.fadeOut();}});pagetop.click(function(){$('body,html').animate({scrollTop:0},500);return false;});$("div#wrap a[href^='http'], div#addition a[href^='http']").not("[href^='http://"+location.host+"'],[href^='https://"+location.host+"']").append(" <img src='/img/external.png' alt='外部のサイトに移動します' title='外部のサイトに移動します' width='16' height='16' class='external' />");$("#chara img.external, #connect img.external, #shinkansen-kanko-top img.external, .key_visual-slide img.external, #furusato img.external, #tokusetsu img.external, #hokkaido img.external, #hokkaido img.external, .sp_tec img.external, #tourist img.external").remove();var path=location.pathname.replace(/\/index\.html$/,"/");$("#navi li").each(function(){var menu=$(this).find("a");if(path==menu.attr("href")){$("this").addClass("current");}});var url=window.location.pathname;var url="/"+url.split("/")[1]+"/";$('#navi li a[href="'+url+'"]').parent().addClass('current');var w=$(window).width();var x=600;$('#navi li a').focus(function(){$(this).parent('li').addClass('focus');$(this).closest('ul').parent('li').addClass('focus');}).blur(function(){$(this).parent('li').removeClass('focus');$(this).closest('ul').parent('li').removeClass('focus');});var agent=navigator.userAgent;if(agent.match(/(iPhone|iPad|Android)/)){$('#navi li').children('ul').remove();}
2$(".category-nodes article, .cms-nodes article, .ezine-pages li").click(function(){window.location=$(this).find("a").attr("href");return false;});$('#sp-navi').on('click',function(){$('#navi .wrap').slideToggle();});$('#sp-search').on('click',function(){$('#head .menu').slideToggle('fast');$('#head .menu').toggleClass('active');});$(window).on('load resize',function(){var w=$(window).width();if(w<=x){$('#navi .wrap').hide();if(!$('#head .menu').hasClass('active')){$('#head .menu').hide();}}else{$('#navi .wrap, #head .menu').show();}});setTimeout(function(){if(!($('.category-pages article').length)){$('.category-pages').append('<p>記事がありません。</p>');}
3$(".cms-tabs .pages").each(function(){var num=$(this).find('article').length;if(num==0){$(this).append('<p>記事がありません。</p>');}});if(!($('.body--urgency-layout').length)){if(!($('#safety dt').length)){$('#safety').css('display','none');}}
4if(!($('#caution dt').length)){$('#caution').css('display','none');}},3000);if(document.URL.match("/garbage/result.html")){$('#garbageInfo').css('display','block');}
5if(document.URL.match("/coronavirus/")){$('.moreCorona').css('display','none');}
6$("#cms-tab-60-0 header h2").text("トピックス");$("#cms-tab-60-1 header h2").text("更新情報");$("#cms-tab-59-0 header h2").text("トピックス");$("#cms-tab-59-1 header h2").text("更新情報");$("#cms-tab-57-0 header h2").text("トピックス");$("#cms-tab-57-1 header h2").text("更新情報");$("#cms-tab-58-0 header h2").text("トピックス");$("#cms-tab-58-1 header h2").text("更新情報");$("#cms-tab-63-0 header h2").text("トピックス");$("#cms-tab-63-1 header h2").text("更新情報");$("#cms-tab-61-0 header h2").text("トピックス");$("#cms-tab-61-1 header h2").text("更新情報");$("#cms-tab-62-0 header h2").text("トピックス");$("#cms-tab-62-1 header h2").text("更新情報");$("#cms-tab-114-0 header h2").text("更新情報");$("#cms-tab-33-2 header h2").text("新着イベント");$(".key_visual-slide a[href^=http]:not([href*='"+location.hostname+"'])").attr("target","_blank");$('img').each(function(){var get_src=$(this).attr('src');if(get_src==='/img/common/btn_odmd_play.gif'){$(this).next('img.external').css('display','none');}
7if(get_src==='/fs/4/8/5/4/6/_/btn_live.gif'){$(this).next('img.external').css('display','none');}});$(window).load(function(){$(".images div.image").tile();});});$(function(){var slider=$('.key_visual-slide .images').bxSlider({auto:true,pause:7000,touchEnabled:false,autoControls:true,startText:'再生',stopText:'停止',controls:false,pager:false})
8$('.bx-thumbs a').click(function(){var thumbIndex=$('.bx-thumbs a').index(this);slider.goToSlide(thumbIndex);$('.bx-thumbs a').removeClass('pager-active');$(this).addClass('pager-active');return false;});$('.bx-thumbs a:first').addClass('pager-active');});

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.