PageSourceSearch

https://sfc.jp/information/ir_assets/js/period_check.js?20260929152549

js sfc.jp collected 2026-10-01 13:03:59 UTC 1,974 bytes, 52 lines download raw bytes

1window.addEventListener('DOMContentLoaded', function() {
2  var parent = document.querySelector('.selectTab');
3  const items = document.querySelectorAll(".selectTab__item");
4
5  if(items.length !== 0){
6    if (!items[0].classList.contains("selectTab__item--active") && !items[1].classList.contains("selectTab__item--active") && !items[2].classList.contains("selectTab__item--active")) {
7      parent.removeChild(items[0]);
8      parent.removeChild(items[1]);
9      parent.removeChild(items[2]);
10    }
11  }
12})
13
14/*
15 * 年別、期別ドロップダウンリストの選択値をセットする
16 */
17function YearListSetSelectValue(){
18  // 画面の〇〇年等のラベルのテキストを取得(改行文字や空白は削除)
19  var disp_year = $('.disp_year').text().replace(/\r|\n|\r\n/g, '');
20  var year_text = $.trim(disp_year);
21  //ドロップダウンリストの選択肢の内容を取得
22  var options = $('select.selectMenue__list').children();
23  //ドロップダウンリストの選択値を取得したテキストと一致したもので設定
24  for(var i = 0; i < options.length; i++){
25    if(year_text === options.eq(i).text()){
26      $('select.selectMenue__list').prop('selectedIndex', i);
27      //後続処理は行わず、処理終了
28      break;
29    }
30  }
31}
32
33/*
34 * 画面表示時に年別、期別ドロップダウンリストの選択値をセットする
35 */
36window.addEventListener('DOMContentLoaded', function() {
37  //年別、期別ドロップダウンリストがあった場合のみ処理
38  if($('select.selectMenue__list').length !== 0){
39    //年別、期別ドロップダウンリストの選択値をセットする
40    YearListSetSelectValue();
41  }
42})
43
44/*
45 * 戻る、進むなど画面遷移した場合も年別、期別ドロップダウンリストの選択値をセットする
46 */
47window.onpageshow = function() {
48  //年別、期別ドロップダウンリストの選択値をセットする
49  YearListSetSelectValue();
50};
51
52

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.