PageSourceSearch

https://www.fujita-denki.co.jp/dcms_media/js/original.js

js fujita-denki.co.jp collected 2026-10-09 04:12:30 UTC 26,053 bytes, 632 lines download raw bytes

1const scrollElm = (function () {
2  if (document.scrollingElement) return document.scrollingElement;
3  if (navigator.userAgent.indexOf('WebKit') != -1) return 'body';
4  return document.documentElement;
5})();
6
7$(function(){
8  //アンカー付きURLずらし対応
9  const hash = location.hash;
10  const headerHeight = $("header").height();
11  if(hash && hash != "#") {
12    setTimeout(function(){
13      $(scrollElm).scrollTop($(hash).offset().top - headerHeight - 20);
14    }, 100);
15  }
16  
17  //アンカーリンク スムーズスクロール
18  $('a[href^="#"]').click(function() {
19    const hash = this.hash;
20    const headerHeight = $("header").height();
21      if(!hash || hash == "#")  
22          return false;  
23      $(scrollElm).animate({scrollTop: $(hash).offset().top - headerHeight}, 350, "swing");
24      return false;
25  });
26
27  // Mv Swiper
28  const swiper = new Swiper(".swiper-mv", {
29    loop: true,
30    speed: 1000,
31    autoplay: {
32      delay: 5000,
33    },
34    // ページネーション
35    pagination: {
36      el: ".swiper-pagination",
37      clickable: true,
38    },
39  });
40
41  // 再生/停止ボタン
42  const pauseBtn = $(".swiper_pause");
43  const startBtn = $(".swiper_start");
44  pauseBtn.on("click", function () {
45    swiper.autoplay.stop();
46    $(this).hide();
47    startBtn.css("display", "flex").show();
48  });
49  startBtn.on("click", function () {
50    swiper.autoplay.start();
51    $(this).hide();
52    pauseBtn.css("display", "flex").show();
53  });
54
55  // Recruit Mv Swiper
56  const recruitSwiper = new Swiper(".swiper-recruit-mv", {
57    loop: true,
58    speed: 1000,
59    effect: "fade",
60    autoplay: {
61      delay: 5000,
62    },
63    // ページネーション
64    pagination: {
65      el: ".swiper-pagination",
66      clickable: true,
67    },
68  });
69
70  // Infinity Scroll Slider
71  const sliders = document.querySelectorAll(".js-infinity-scroll-slider");
72  const SPEED_PX_PER_SECOND = 50; // スライドの速度 (px/s)
73  const BREAKPOINT = 1153; // PCとモバイルを分ける幅
74  
75  sliders.forEach(slider => {
76      const wrapper = slider.querySelector(".infinity-scroll-slider__inner");
77      const slides = wrapper.querySelectorAll(".js-infinity-scroll-slider-slide");
78      
79      let isVertical = window.innerWidth >= BREAKPOINT 
80          ? slider.classList.contains("infinity-scroll-slider--vertical")
81          : false;
82      let slideSize = 0;
83      // クローンを作成(無限ループ用)
84      slides.forEach(slide => {
85          let size = isVertical ? slide.offsetHeight : slide.offsetWidth;
86          slideSize = slideSize + size;
87          let clone = slide.cloneNode(true);
88          wrapper.appendChild(clone);
89      });
90  
91      // スライダーサイズ更新
92      function updateSliderSize() {
93          let isVertical = window.innerWidth >= BREAKPOINT 
94          ? slider.classList.contains("infinity-scroll-slider--vertical")
95          : false;
96          
97          slideSize = 0;
98          slides.forEach(slide => {
99              let size = isVertical ? slide.offsetHeight : slide.offsetWidth;
100              slideSize = slideSize + size;
101          });
102
103          let isToBottom = slider.classList.contains("--to-bottom")? true : false;
104          let totalSize = slideSize * 2; // クローン分も含める
105          
106          if (isVertical) {
107              wrapper.style.height = `${totalSize}px`;
108              wrapper.style.width = ``;
109              if(isToBottom) {
110                wrapper.style.animationName = `infinityScrollVerticalBottom`;
111              } else {
112                wrapper.style.animationName = `infinityScrollVertical`;
113              }
114          } else {
115              wrapper.style.width = `${totalSize}px`;
116              wrapper.style.height = ``;
117              if(isToBottom) {
118                wrapper.style.animationName = `infinityScrollLeft`;
119              } else {
120                wrapper.style.animationName = `infinityScroll`;
121              }
122          }
123  
124          // アニメーション時間を設定(距離 ÷ 速度 = 時間)
125          const animationTime = totalSize / SPEED_PX_PER_SECOND;
126          wrapper.style.animationDuration = `${animationTime}s`;
127      }
128  
129      // 初期化
130      updateSliderSize();
131  
132      // ResizeObserverでリサイズ時に更新
133      const resizeObserver = new ResizeObserver(updateSliderSize);
134      resizeObserver.observe(slider);
135  
136      // ウィンドウリサイズ時にも適用
137      window.addEventListener("resize", updateSliderSize);
138  });
139
140  
141  // Topics Swiper
142  const swiperTopics = new Swiper(".swiper-topics", {
143    loop: true,
144    autoplay: false,
145    speed: 300,
146    slidesPerView: 1.5,
147    spaceBetween: 20,
148    breakpoints: {
149      480: {
150        slidesPerView: 2.5,
151        spaceBetween: 40,
152      },
153      768: {
154        width: 1400,
155        slidesPerView: 3.5,
156        spaceBetween: 40,
157      },
158    },
159    // 前後の矢印
160    navigation: {
161      nextEl: ".swiper-button-next",
162      prevEl: ".swiper-button-prev",
163    },
164  });
165
166  // History Swiper
167  const swiperHistory = new Swiper(".swiper-history", {
168    loop: false,
169    autoplay: false,
170    centeredSlides: true,
171    speed: 500,
172    slidesPerView: 1,
173    spaceBetween: 20,
174    breakpoints: {
175      768: {
176        slidesPerView: 1,
177        spaceBetween: 57,
178      },
179    },
180    on: {
181      slideChange: function (index) {
182        const $targets = $(".history-slider__heading-set").find(".history-slider__heading");
183        $targets.hide();
184        $targets.eq(this.realIndex).show();
185      }
186    },
187    // ページネーション
188    pagination: {
189      el: ".swiper-pagination",
190      clickable: true,
191      renderBullet: function (index, className) {
192        let num = index + 1;
193        if(num < 9) {
194          num = "0" + num;
195        }
196        return `<span class="${className}">${num}</span>`;
197      },
198    },
199    // 前後の矢印
200    navigation: {
201      nextEl: ".swiper-button-next",
202      prevEl: ".swiper-button-prev",
203    },
204  });
205
206  // Interview Swiper
207  const swiperInterview = new Swiper(".swiper-recruit-interview", {
208    loop: false,
209    autoplay: false,
210    speed: 300,
211    slidesPerView: 1,
212    spaceBetween: 20,
213    breakpoints: {
214      768: {
215        slidesPerView: 3,
216        spaceBetween: 34,
217      },
218    },
219    // 前後の矢印
220    navigation: {
221      nextEl: ".swiper-button-next",
222      prevEl: ".swiper-button-prev",
223    },
224    // ページネーション
225    pagination: {
226      el: ".swiper-pagination",
227      clickable: true,
228    },
229  });
230
231  //ヘッダー
232  $("#h-link-business").off("click").on("click", function(){
233    $(this).toggleClass("is-open");
234    $("#h-link-company").removeClass("is-open");
235    if($("#js-menu-sub-company").hasClass("is-open")) {
236      $("#js-menu-sub-company").removeClass("is-open");
237      $("#js-menu-sub-business").addClass("is-open");
238      $("#js-menu-sub-company").slideUp(500, function(){
239        $("#js-menu-sub-business").slideDown(500);
240      });
241    } else {
242      $("#js-menu-sub-business").toggleClass("is-open");
243      $("#js-menu-sub-business").slideToggle(500);
244    }
245    if($("#js-menu-sub-business").hasClass("is-open")||$("#js-menu-sub-company").hasClass("is-open")) {
246      $("#header").addClass("is-open");
247      $("#js-header-bg").addClass("is-active");
248      $("#js-header-bg").fadeIn(500);
249      // $("#top").addClass("is-no-scroll");
250    }else {
251      $("#header").removeClass("is-open");
252      $("#js-header-bg").removeClass("is-active");
253      $("#js-header-bg").fadeOut(500);
254      // $("#top").removeClass("is-no-scroll");
255    }
256    return false;
257  });
258  $("#h-link-company").off("click").on("click", function(){
259    $(this).toggleClass("is-open");
260    $("#h-link-business").removeClass("is-open");
261    if($("#js-menu-sub-business").hasClass("is-open")) {
262      $("#js-menu-sub-business").removeClass("is-open");
263      $("#js-menu-sub-company").addClass("is-open");
264      $("#js-menu-sub-business").slideUp(500, function(){
265        $("#js-menu-sub-company").slideDown(500);
266      });
267    } else {
268      $("#js-menu-sub-company").toggleClass("is-open");
269      $("#js-menu-sub-company").slideToggle(500);
270    }
271    if($("#js-menu-sub-business").hasClass("is-open")||$("#js-menu-sub-company").hasClass("is-open")) {
272      $("#header").addClass("is-open");
273      $("#js-header-bg").addClass("is-active");
274      $("#js-header-bg").fadeIn(500);
275      // $("#top").addClass("is-no-scroll");
276    }else {
277      $("#header").removeClass("is-open");
278      $("#js-header-bg").removeClass("is-active");
279      $("#js-header-bg").fadeOut(500);
280      // $("#top").removeClass("is-no-scroll");
281    }
282    return false;
283  });
284  $(".js-menu-sp-sub").off("click").on("click", function(){
285    $(this).toggleClass("is-open");
286    return false;
287  });
288  let scrollPosition = 0;
289  $("#js-menu-toggle-button").on("click", function(){
290    $("#header").toggleClass("is-open");
291    $("#js-menu-sp").toggleClass("is-open");
292    $("#js-menu-sp").slideToggle(500);
293    $("#js-header-bg").toggleClass("is-active");
294    $("#js-header-bg").fadeToggle(500);
295    //$("#top").toggleClass("is-no-scroll");
296    if($("#js-menu-sp").hasClass("is-open")){
297      scrollPosition = $(window).scrollTop();
298      $("body").css("top", scrollPosition * -1 + "px");
299      $("html, body").addClass("is-no-scroll");
300    }else {
301      $(".js-menu-sp-sub").removeClass("is-open");
302
303      $("body").removeClass("is-no-scroll");
304      $("body").css("top", "");
305      $(window).scrollTop(scrollPosition);
306    }
307    event.preventDefault()
308    return false;
309  });
310  // $("#js-header-bg").off("click").on("click", function(){
311  //   $("#js-menu-sp").removeClass("is-open");
312  //   $("#js-header-bg").removeClass("is-active");
313  //   $("#top").removeClass("is-no-scroll");
314  //   $("#header").removeClass("is-open");
315  //   $("#js-menu-sub-business").removeClass("is-open");
316  //   $("#js-menu-sub-company").removeClass("is-open");
317  //   $(".js-menu-sp-sub").removeClass("is-open");
318  //   return false;
319  // });
320
321  let spFlg = false;
322  spflg = (window.innerWidth >= 1153)? true : false;
323  $(window).resize(function(){
324    let _spFlg = (window.innerWidth >= 1153)? true : false;
325    if(spFlg != _spFlg) {
326      $("#js-menu-sp").removeClass("is-open").hide();
327      $("#js-header-bg").removeClass("is-active").hide();
328      $("#top").removeClass("is-no-scroll");
329      $("#header").removeClass("is-open");
330      $("#js-menu-sub-business").removeClass("is-open").hide();
331      $("#js-menu-sub-company").removeClass("is-open").hide();
332      $(".js-menu-sp-sub").removeClass("is-open").hide();
333    }
334    spFlg = _spFlg;
335  });
336  $(window).on("load", function() {
337    if ($(window).scrollTop() < 200) {
338      $("#header").addClass("is-top");
339    } else {
340      $("#header").removeClass("is-top");
341    }
342  });
343  $(window).on("scroll", function() {
344    if ($(window).scrollTop() < 200) {
345      $("#header").addClass("is-top");
346    } else {
347      $("#header").removeClass("is-top");
348    }
349  });
350
351  //language menu
352  if($(".header__language-select").length) {
353    $(".header__language-select").on("click", function(){
354      $(this).toggleClass("is-open");
355    });
356  }
357
358  //top text animation
359  if($(".mv__heading").length) {
360    const duration = null;
361    const aDuration = 500;
362    let jaMain = $(".mv__heading").find(".main");
363    let jaSub = $(".mv__heading").find(".sub");
364    
365    const spFlg = (jaMain.parents().hasClass("sp"))? true : false;
366    const lang = "ja";
367    jaMain.each(function(){
368      let text = $(this).text();
369      let textbox = strSplit(text, spFlg, lang);
370      $(this).html(textbox);
371    });
372    jaSub.each(function(){
373      let text = $(this).text();
374      let textbox = strSplit(text, spFlg, lang);
375      $(this).html(textbox);
376    });
377    jaMain.show();
378    jaSub.show();
379    jaMain.find(".parts").each(function(i){
380      const _partsDuration = (duration)? duration : (i+1) * 30;
381      const _animateDuration = (aDuration)? aDuration : 1000;
382      const elem = $(this);
383      setTimeout(function(){
384        if(elem.parents().hasClass("key-visual-text-mask")) {
385          elem.animate({
386            verticalAlign: 0
387          }, _animateDuration);
388        } else {
389          elem.addClass("is-animate");
390        }
391      }, _partsDuration);
392    });
393    jaSub.find(".parts").each(function(i){
394      const _partsDuration = (duration)? duration : (i+1) * 50;
395      const _animateDuration = (aDuration)? aDuration : 1000;
396      const elem = $(this);
397      setTimeout(function(){
398        if(elem.parents().hasClass("key-visual-text-mask")) {
399          elem.animate({
400            verticalAlign: 0
401          }, _animateDuration);
402        } else {
403          elem.addClass("is-animate");
404        }
405      }, _partsDuration);
406    });
407  }
408  function strSplit(str, spFlg, lang) {
409    var textbox = '';
410    str.split('').forEach(function (t, i) {
411      if (t !== " ") {
412        var word = $('<span>' + t + '</span>');
413        var n;
414        if (i < 10) {
415          n = i;
416        } else {
417          n = i / 10;
418        }
419        var reg = (lang == "en")? new RegExp(/^[a-zA-Z]+$/) : new RegExp(/[^\x01-\x7E]/);
420        //if(spFlg && !reg.test(t)) {
421        if(spFlg) {
422          if(t == " ") {
423            //textbox += '<span class="parts">&nbsp;</span>';
424            textbox += '</span><span class="line">';
425          } else {
426            textbox += '<span class="parts"><span class="char">' + t + '</span></span>';
427          }
428        } else {
429          textbox += '<span class="parts"><span class="char">' + t + '</span></span>';
430        }
431      } else {
432        textbox += t;
433      }
434    });
435    if(spFlg) {
436      textbox = '<span class="line">' + textbox + '</span>';
437    }
438    return textbox;
439  }
440
441  //newsのタグ移動
442  if($(".news-list__item-date").length) {
443    const $badges = $(".news-list__item-text").find(".badge");
444    $badges.each(function(){
445      const $wrapper = $(this).parents(".news-list__item").find(".news-list__item-text");
446      $wrapper.prepend($(this));
447    });
448    const $dates = $(".news-list__item-date");
449    $dates.each(function(){
450      const $wrapper = $(this).parents(".news-list__item").find(".news-list__item-text");
451      $wrapper.prepend($(this));
452    });
453
454
455  }
456
457  
458  // faq開閉
459  const $faqTrigger = $(".js-faq-trigger");
460  $faqTrigger.each(function() {
461    const $this = $(this);
462    
463    $this.on("click", function(){
464      $this.toggleClass("--is-open");
465      $this.find(".faq-box__a").slideToggle(400);
466    });
467  });
468
469  // Tab Switcher
470  (() => {
471    const tabs = document.querySelectorAll('[role="tab"]');
472    const tabList = document.querySelector('[role="tablist"]');
473    if (!tabs.length || !tabList) return;
474
475    const changeTabs = (e) => {
476      const target = e.currentTarget;
477      const wrapper = target.closest('[role="tablist"]');
478
479      if (!wrapper) return;
480
481      // タブリスト内のすべてのタブからaria-selectedを解除
482      wrapper.querySelectorAll('[role="tab"]').forEach((tab) => {
483        tab.setAttribute("aria-selected", "false");
484        tab.setAttribute("tabindex", "0");
485      });
486
487      // クリックされたタブを選択状態に
488      target.setAttribute("aria-selected", "true");
489      target.setAttribute("tabindex", "-1");
490
491      // 全てのtabpanelを非表示に
492      document.querySelectorAll('[role="tabpanel"]').forEach((panel) => {
493        panel.setAttribute("hidden", "");
494      });
495
496      // aria-controlsで関連付けられたtabpanelを表示
497      const panelId = target.getAttribute("aria-controls");
498      const activePanel = document.getElementById(panelId);
499      if (activePanel) {
500        activePanel.removeAttribute("hidden");
501      }
502    };
503
504    // クリックイベントの追加
505    tabs.forEach((tab) => {
506      tab.addEventListener("click", changeTabs);
507    });
508
509    // 矢印キーによるフォーカス移動
510    let tabFocus = 0;
511
512    tabList.addEventListener("keydown", (e) => {
513      const keyLeft = 37;
514      const keyRight = 39;
515
516      if (e.keyCode === keyRight || e.keyCode === keyLeft) {
517        tabs[tabFocus].setAttribute("tabindex", "-1");
518
519        if (e.keyCode === keyRight) {
520          tabFocus = (tabFocus + 1) % tabs.length;
521        } else if (e.keyCode === keyLeft) {
522          tabFocus = (tabFocus - 1 + tabs.length) % tabs.length;
523        }
524
525        tabs[tabFocus].setAttribute("tabindex", "0");
526        tabs[tabFocus].focus();
527      }
528    });
529
530    //初期タブ切り替え
531    document.addEventListener("DOMContentLoaded", function () {
532      // URLのハッシュを取得
533      const hash = window.location.hash;
534
535      if (hash) {
536        // ハッシュと同じIDを持つ要素を取得
537        const targetElement = document.querySelector(hash);
538
539        // その要素が<button>かどうかをチェックしてクリック
540        if (targetElement && targetElement.tagName.toLowerCase() === "button") {
541          targetElement.click();
542        }
543      }
544    });
545  })();
546
547  // Breadcrumbs
548  // パンくずの移動
549  if($(".l-breadcrumb__outer").length) {
550    if($(".page-title__img").length) {
551      $(".l-breadcrumb__outer").insertAfter($(".page-title"));
552    } else {
553      $(".l-breadcrumb__outer").insertAfter($(".page-title__body"));
554
555    }
556  }
557   // 2カラムの時h1をouterの外に移動
558  if($(".l-column__outer").length) {
559    $(".page-title__wrapper").insertBefore($(".l-column__outer"));
560  }
561
562
563  // top-service-box
564  if($(".top-service-box").length) {
565    const S_BREAKPOINT = 1199.5; // PCとモバイルを分ける幅
566    let isPC = window.innerWidth >= S_BREAKPOINT 
567              ? true
568              : false;
569
570    let panelWidth = $(".top-service-box__item").not(".is-open").width();
571    $(".top-service-box__toggle").off("click").on("click", function(){
572      const $this = $(this);
573      const $thisItem = $this.closest(".top-service-box__item");
574      const $thisBox = $this.siblings(".top-service-linkbox");
575
576      if(isPC) {
577        // クリックしたアイテム
578        $this.width(panelWidth);
579        $thisBox.show().width(panelWidth);
580        if(!$thisItem.hasClass("is-open")) {
581          $thisItem.addClass("is-open");
582          $thisItem.css("transition", "width .5s ease, opacity .3s ease").width($thisItem.width() * 2);
583          // 他を非表示
584          $(".top-service-box__toggle").not($this).closest(".top-service-box__item").css("transition", "width .5s ease, opacity .3s ease").width(panelWidth);
585          setTimeout(function(){
586            $(".top-service-box__toggle").not($this).closest(".top-service-box__item").removeClass("is-open");
587          }, 500);
588        } else {
589          $thisItem.css("transition", "width .5s ease, opacity .3s ease").width(panelWidth);
590          setTimeout(function(){
591            $thisItem.removeClass("is-open");
592          }, 500);
593        }
594      } else {
595        $thisItem.toggleClass("is-open");
596        $thisBox.slideToggle();
597      }
598
599    });
600
601    function updateServicePanelSize() {
602      $(".top-service-box__item").not(".is-open").css({
603        "transition": "",
604        "width": "",
605      });
606      setTimeout(function(){
607        panelWidth = $(".top-service-box__item").not(".is-open").width();
608        $(".top-service-box__item").each(function(){
609          const $thisItem = $(this);
610          const $this = $thisItem.find(".top-service-box__toggle");
611          const $thisBox = $thisItem.find(".top-service-linkbox");
612          $this.width(panelWidth);
613          $thisBox.width(panelWidth);
614          if($thisItem.hasClass("is-open")) {
615            $thisItem.width($thisItem.width() * 2);
616          } else {
617            $thisItem.width(panelWidth);
618          }
619        });
620      }, 1);
621    }
622    
623    window.addEventListener("resize", updateServicePanelSize);
624    // 初期化
625    updateServicePanelSize();
626  }
627
628  // お知らせ
629  if($(".l-rss__entrie").length) {
630    "use strict";$(function(){function a(a){var e=a.find(".js-pager__first"),r=a.find(".js-pager__prev"),t=a.find(".js-pager__last"),d=a.find(".js-pager__next");e.attr("aria-disabled",a.find(n).is('[aria-current="page"]')?"true":"false"),r.attr("aria-disabled",a.find(n).is('[aria-current="page"]')?"true":"false"),t.attr("aria-disabled",a.find(s).is('[aria-current="page"]')?"true":"false"),d.attr("aria-disabled",a.find(s).is('[aria-current="page"]')?"true":"false"),r.attr("aria-disabled",0===a.find('.js-pager[aria-current="page"]').prev(i).length?"true":"false"),d.attr("aria-disabled",0===a.find('.js-pager[aria-current="page"]').next(i).length?"true":"false")}function e(a,e){e.find(p).attr("aria-hidden",!0),e.find('.js-rss__pager[data-rss-paging="'+a+'"]').attr("aria-hidden",!1),e.find(i).removeAttr("aria-current"),e.find('.js-pager[data-rss-paging="'+a+'"]').attr("aria-current","page").focus(),e.find(".js-rss__outer > .js-rss__pager:nth-child("+a+")").attr("aria-hidden",!1)}function r(a){var e=a.siblings(i).addBack();e.index(a)<4?a.closest(d).removeClass("is-move").removeClass("is-end"):a.closest(d).addClass("is-move").removeClass("is-end"),e.length-e.index(a)<=4&&a.closest(d).addClass("is-end")}function t(a){a.attr("aria-label","ページが切り替わりました / Change Page").attr("tabindex","0").focus(),setTimeout(function(){a.removeAttr("aria-label").removeAttr("tabindex")},100)}var i=".js-pager",n=".js-pager:first",s=".js-pager:last",d=".js-pager__list",l=".js-rss__entrie",p=".js-rss__pager";$(l).each(function(l){var p=$(this);e(1,p),p.find(".js-pager > a").on("click",function(r){r.preventDefault();var i=$(this).parent().data("rss-paging");p.find(".js-pager__list .js-pager").attr("aria-hidden",!0),$(this).parent().attr("aria-hidden",!1),$(this).parent().prev().attr("aria-hidden",!1),$(this).parent().prev().prev().attr("aria-hidden",!1),$(this).parent().next().attr("aria-hidden",!1),$(this).parent().next().next().attr("aria-hidden",!1),e(i,p),a(p),t(p)}),p.find(".js-pager__prev > a").on("click",function(r){r.preventDefault();var s=p.find('.js-pager[aria-current="page"]').data("rss-paging");p.find(".js-pager__list .js-pager").attr("aria-hidden",!0),1===p.find('.js-pager[aria-current="page"]').index(i)?p.find(n).nextAll(":lt(2)").addBack().attr("aria-hidden",!1):(p.find('.js-pager[aria-current="page"]').prevAll(":lt(3)").addBack().attr("aria-hidden",!1),p.find('.js-pager[aria-current="page"]').nextAll(":lt(1)").addBack().attr("aria-hidden",!1)),e(s-1,p),a(p),t(p)}),p.find(".js-pager__next > a").on("click",function(r){r.preventDefault();var i=p.find('.js-pager[aria-current="page"]').data("rss-paging");p.find(".js-pager__list .js-pager").attr("aria-hidden",!0);var n=$(r.target).closest("li");n.is(".js-pager__next")&&p.find(s).prev().is('[aria-current="page"]')?p.find(s).prevAll(":lt(2)").addBack().attr("aria-hidden",!1):(p.find('.js-pager[aria-current="page"]').nextAll(":lt(3)").addBack().attr("aria-hidden",!1),p.find('.js-pager[aria-current="page"]').prevAll(":lt(1)").addBack().attr("aria-hidden",!1)),e(i+1,p),a(p),t(p)}),p.find(".js-pager__first > a, .js-pager:first > a").on("click",function(r){r.preventDefault(),("keyup"!==r.type||"ke
630yup"===r.type&&"Enter"===r.key&&"true"!==$(this).attr("aria-disabled"))&&(p.find(".js-pager__list .js-pager").attr("aria-hidden",!0),p.find(".js-pager__list .js-pager:last").attr("aria-hidden",!1),p.find(n).nextAll(":lt(2)").addBack().attr("aria-hidden",!1),e(1,p),a(p),t(p))}),p.find(".js-pager__last > a, .js-pager:last > a").on("click",function(r){r.preventDefault();var i=p.find(s).data("rss-paging");p.find(".js-pager__list .js-pager:not(:first)").attr("aria-hidden",!0),p.find(s).prevAll(":lt(2)").addBack().attr("aria-hidden",!1),p.find(".js-pager__list .js-pager:last").attr("aria-hidden",!1),e(i,p),a(p),t(p)});var f=$(this).find(d),c=f.children(i).length;1==c&&f.find(".js-pager__next").attr("aria-disabled",!0),c>9&&(f.addClass("is-ellipsis"),f.find(i).attr("aria-hidden",!0),f.find(n).nextAll(":lt(2)").addBack().attr("aria-hidden",!1),f.find(s).attr("aria-hidden",!1),f.find(".js-pager > a").on("click",function(){var a=$(this).parent(i);r(a)}),p.find(".js-pager__prev > a").on("click",function(a){a.preventDefault(),r(p.find('.js-pager[aria-current="page"]'))}),p.find(".js-pager__next > a").on("click",function(a){a.preventDefault(),r(p.find('.js-pager[aria-current="page"]'))}),p.find(".js-pager__first > a, .js-pager:first > a").on("click",function(a){a.preventDefault(),p.find(d).removeClass("is-end").removeClass("is-move")}),p.find(".js-pager__last > a, .js-pager:last > a").on("click",function(a){a.preventDefault(),p.find(d).addClass("is-move is-end")})),f.find("a").on("click",function(a){a.preventDefault(),c<10?f.find("> li").removeAttr("aria-hidden"):p.find(".js-pager:last,.js-pager:first").attr("aria-hidden",!1)})}),$(d).find("a").on("click",function(a){a.preventDefault();var e=300,r=$(this).closest(".js-rss__entrie"),t=r.children(".js-rss__outer"),i=r.offset().top-$anchorPC,n=r.offset().top-$anchorSP,s=r.offset().top-$anchorSP;r[0]&&(t.css({opacity:"0",transition:"unset"}),$(window).width()<$BreakPointTB?setTimeout(function(){$("html, body").animate({scrollTop:s},e,"swing")},200):$(window).width()<$BreakPointHeader?setTimeout(function(){$("html, body").animate({scrollTop:n},e,"swing")},200):setTimeout(function(){$("html, body").animate({scrollTop:i},e,"swing")},200),setTimeout(function(){t.css({opacity:"1",transition:".3s"})},300))}),$(".js-rss__entrie").each(function(){var a=$(this).find("li[data-rss-paging]").length;$(this).find(".js-rss__total").text("全"+a+"ページ中 / ")})});
631  }
632});

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.