PageSourceSearch

https://www.orcio.jp/wpcube/wp-content/themes/cubetheme/js/common.js?ver=5.2.21

js orcio.jp collected 2026-10-05 07:59:40 UTC 6,150 bytes, 196 lines download raw bytes

1/* -------------------------------------------------------------------------
2
3  CUBE.common
4
5  サイト内で共通のスクリプトを定義
6  ※jQuery必須
7  2017/04 CUBE
8
9------------------------------------------------------------------------- */
10
11// グローバル名前空間定義
12var CUBE;
13if (!CUBE) CUBE = {};
14if (!CUBE.common) CUBE.common = {};
15
16(function (){
17  // グローバル名前空間オブジェクトをローカルオブジェクトに置き換え
18  var ns = CUBE.common;
19
20
21  /* -----------------------------------------------------
22  pageTopSet ページトップ表示位置
23  ----------------------------------------------------- */
24  ns.pageTopSet = function() {
25    $('.page_top').hide();
26    $(window).scroll(function () {
27      if($(window).scrollTop() > 300) {
28        $('.page_top').fadeIn(500);
29      } else {
30        $('.page_top').fadeOut(500);
31      }
32    });
33  }
34
35  /* -----------------------------------------------------
36  scrollSet スムーススクロール
37  ----------------------------------------------------- */
38  ns.scrollSet = function() {
39    $('a[href^="#"]').click(function() {
40      // スクロールの速度
41      var speed = 400; // ミリ秒
42      // アンカーの値取得
43      var href= $(this).attr("href");
44      // 移動先を取得
45      var target = $(href == "#" || href == "" ? 'html' : href);
46      // 移動先を数値で取得
47      var position = target.offset().top;
48      // スムーススクロール
49      $('body,html').animate({scrollTop:position}, speed, 'swing');
50      return false;
51    });
52  }
53
54})();
55
56
57$(function(){
58
59  CUBE.common.pageTopSet();
60  CUBE.common.scrollSet();
61
62});
63
64/* -----------------------------------------------------
65サイドバー アーカイブドロップダウン
66----------------------------------------------------- */
67$(function () {
68  $(".months_list").hide();
69  $(".year_head").click(function () {
70    $(this).next("ul").slideToggle();
71    $(this).toggleClass("open");
72  });
73});
74
75
76/* -----------------------------------------------------
77SPドロワーナビ
78----------------------------------------------------- */
79$(function() {
80  $('.nav_toggle').click(function() {
81    $('.site_header').toggleClass('nav_open');
82    $('html').toggleClass('nav_bg');
83  });
84  if (window.matchMedia('(min-width: 961px)').matches) {
85    $('.global_nav').css('display', 'block');
86  }
87});
88$(window).on('load resize', function() {
89  $('html').removeClass('nav_bg');
90  $('.site_header').removeClass('nav_open');
91});
92
93
94/* -----------------------------------------------------
95AOS
96----------------------------------------------------- */
97$(function() {
98  AOS.init();
99});
100
101
102/* -----------------------------------------------------
103Object fit image
104----------------------------------------------------- */
105$(function() {
106  objectFitImages(".ofi img");
107});
108
109
110/* -----------------------------------------------------
111form validation
112----------------------------------------------------- */
113// $(function () {
114//   $('#form').validationEngine({ promptPosition: 'topLeft' });
115// });
116
117/* -----------------------------------------------------
118target blank
119----------------------------------------------------- */
120$(function() {
121  $("a[href*='.pdf']").attr("target","_blank");
122  $("a[href*='.doc']").attr("target","_blank");
123  $("a[href*='.xls']").attr("target","_blank");
124  $("a[href^='http']:not([target])").each(function() {
125    if (!this.href.match(new RegExp("^(#|\/|(https?:\/\/" + location.hostname + "))"))) {
126      $(this).attr('target', '_blank');
127    }//if
128  });
129});
130
131/* -----------------------------------------------------
132accordion
133----------------------------------------------------- */
134$(function () {
135  //開いたままpattern
136  // $(".accordion").hide();
137  // $(".click_btn").click(function () {
138  // 	$(this).next(".accordion").slideToggle();
139  // 	$(this).toggleClass("open");
140  // });
141  //他を閉じるpattern
142  $(".accordion").hide();
143  $(".open").next('.accordion').show();
144  $(".click_btn").click(function () {
145    $(this).next('.accordion').slideToggle(400).siblings('.accordion').slide
145Up(400);
146    $(this).siblings('.click_btn').removeClass('open');
147    $(this).toggleClass('open');
148  });
149});
150
151
152/* -----------------------------------------------------
153MW WP FOME disabled SET
154----------------------------------------------------- */
155// $(function () {
156//   var childLen = $("body.cucina .radio_btn01").children('.mwform-checkbox-field').length;
157//   var textSearch = '満席';
158//   for (i = 1; i <= childLen; i++) {
159//     var getText = 'body.cucina #select_course-' + i + '+.mwform-checkbox-field-text'
160//     var textMsg = $(getText).text();
161//     if( textMsg.indexOf(textSearch) !== -1){
162//       var setDisabled='body.cucina #select_course-' + i;
163//       $(setDisabled).prop('disabled', true);
164//     }
165//   }
166// });
167
168/* -----------------------------------------------------
169MW WP FOME separator "&lt;br&gt;"->"<br>"
170----------------------------------------------------- */
171$(function () {
172  var textMsg = $("body.cucina .mw_wp_form_confirm .radio_btn01").html();
173  if( textMsg !== undefined){
174    var result = textMsg.replace(/&lt;br&gt;/g, "<br>");
175    $("body.cucina .mw_wp_form_confirm .radio_btn01").html(result);
176  }
177});
178
179  /* -----------------------------------------------------
180  MW WP FOME 遷移時のスクロール
181  ----------------------------------------------------- */
182// $(function () {
183//   $('body.cucina btn_return').on('submit',function(){
184//     var scroll_top = $(window).scrollTop();
185//     $('input.scroll_top',this).prop('value',scroll_top);
186//     $('body.cucina').on('load',function(){
187//         //ロード時に隠しフィールドから取得した値で位置をスクロール
188//       $(window).scrollTop("<?php echo @$_REQUEST['scroll_top']; ?>");
189//     });
190//   });
191// });
192// $(function () {
193//   $('body.complete').on('load',function(){
194//     $('body,html').scrollTop(0);
195//   });
196// });

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.