PageSourceSearch

https://www.town.aga.niigata.jp/theme/base/js/top.js

js town.aga.niigata.jp collected 2026-10-02 06:33:26 UTC 1,714 bytes, 55 lines download raw bytes

1$(function(){
2
3  // テキストタブ
4  var tabSelect = ($('.news-tab-page .news-tab-page1').length > 0) ? 2 : 0;
5  $.fn.textTab({defaultSelect:tabSelect, tabs:$("#news-tablist .list li"), pages:$("#news-tablist .box")});
6
7  // 広告クリックをカウントする
8  $('.js-kb-click .list a').bannerClick({});
9  
10  // 広告クリックをカウントする(GA4)
11  $('.js-kb-click .list a').bannerClick2({});
12
13  // SMARTALERTの出力
14  // var renkei_no = 1 //連携設定No
15  // $('#smartalert-wrap').smartAlertListView({
16  //   rssPath: site_domain + '/cgi-bin/smart_alert.php/' + renkei_no,
17  //   historyPath: site_domain + '/cgi-bin/smart_alert.php/' + renkei_no +'/list',
18  //   historyClass: '.more',
19  //   ulClass: '.list',
20  //   textClass: '.text',
21  //   dateClass: '.date',
22  //   limit: 5, //最大表示数
23  //   dateformat: 'YYYY年M月D日h時m分', //YYYY年MM月DD日(WW) hh時mm分ss秒
24  //   noDataView: 1, //アラートが無い場合 0:エリアごと非表示 1:エリアは表示
25  //   noDataClass: '.no-data', //アラートが無い場合の文言クラス
26  // })
27
28  $('.box-main-visual .list').smartSlider({
29    mode: 'fade',
30    threshold: 1,
31    slideWidth: 1600,
32    maxSlides: 1,
33    minSlides: 1,
34    slideMargin: 20,
35    controls: false,
36    autoControls: true,
37    pause: 6000,
38    auto: true,
39    sp: {
40      slideWidth: 750
41    }
42  });
43
44});
45
46$(window).on('load', function () {
47
48  // 新着情報のタグ表示位置
49  $('.js-tags-change').each(function(){
50    if($(this).find('.tags').length > 0) {
51      var tags = $(this).find('.tags');
52      $(this).find('.news-tab-page-body-date').after(tags);
53    }
54  });
55})

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.