PageSourceSearch

https://celvoke.com/Js/common.js?20230707

js celvoke.com collected 2026-09-30 20:23:52 UTC 2,002 bytes, 77 lines download raw bytes

1
2//----------------------------------------------------
3//
4// Common JS
5//
6//----------------------------------------------------
7
8// HEADER BANNER
9// ----------------------------------------------------
10$(function () {
11  let header_txt_num =  $('#header_txt_slider li').length;
12  if (1 < header_txt_num) {
13    $('#header_txt_slider').addClass("active");
14    const header_txt_slider = new Swiper("#header_txt_slider", {
15      slidesPerView: "auto",
16      autoplay: { // 自動再生
17        delay: 2500, // 1.5秒後に次のスライド
18      },
19      autoHeight: true,
20      speed: 1000,
21      loop: true,
22      autoHeight: true,
23    });
24  }
25  let header_img_num =  $('#header_img_slider li').length;
26  if (1 < header_img_num) {
27    $('#header_img_slider').addClass("active");
28    const header_img_slider = new Swiper("#header_img_slider", {
29      autoplay: { // 自動再生
30        delay: 3000, // 1.5秒後に次のスライド
31      },
32      autoHeight: true,
33      speed: 1000,
34      loop: true,
35      effect: 'fade',
36    });
37  }
38});
39
40$(function () {
41	var process = function () {
42
43
44  // FOOTER APP
45  // ----------------------------------------------------
46  var agent = navigator.userAgent;
47  if(agent.search(/iPhone/) != -1){
48    $("#footer .footer_app").addClass("is-ios");
49  } else if(agent.search(/Android/) != -1){
50    $("#footer .footer_app").addClass("is-android");
51  }
52
53
54  // GUIDE SMOOTH SCROLL
55  // ----------------------------------------------------
56
57  $(".guide-page").each(function () {
58    var urlHash = location.hash;
59    if(urlHash) {
60      $('body,html').stop().scrollTop(0);
61      var wid = $(window).width();
62      if( 768 < wid ){ //PC
63        var pstTop = 100;
64      }
65      if( wid < 769 ){ //SP
66        var pstTop = 90;
67      }
68      setTimeout(function(){
69        var target = $(urlHash);
70      $(window).scrollTop($(target).offset().top-pstTop);
71      }, 10);
72    }
73  });
74
75	};
76	if (Sys && Sys.Application) { Sys.Application.add_load(process); } else { process(); }
77});

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.