PageSourceSearch

https://gariben.me/js/app.js

js gariben.me collected 2026-10-04 15:15:54 UTC 12,571 bytes, 357 lines download raw bytes

vendor: 87 bytes, lines 1-4
1/******/ (() => { // webpackBootstrap
2/******/ 	var __webpack_modules__ = ({
3
4/***/ "./
4resources/js/app.js":
5/*!*****************************!*\
6  !*** ./resources/js/app.js ***!
7  \*****************************/
8/***/ (() => {
9
10/* カウントダウン */
11var countdown = setInterval(function () {
12  var now = new Date(); //今の日時
13  var target = new Date("2022/12/21 00:00:00");
14  var remainTime = target - now;
15
16  //指定の日時を過ぎていたら処理をしない
17  if (remainTime < 0) return false;
18
19  //差分の日・時・分・秒を取得
20  var difDay = Math.floor(remainTime / 1000 / 60 / 60 / 24);
21  var difHour = Math.floor(remainTime / 1000 / 60 / 60) % 24;
22  var difMin = Math.floor(remainTime / 1000 / 60) % 60;
23  var difSec = Math.floor(remainTime / 1000) % 60;
24
25  //残りの日時を上書き
26  document.getElementById("countdown-day").textContent = difDay;
27  document.getElementById("countdown-hour").textContent = difHour;
28  document.getElementById("countdown-min").textContent = difMin;
29  document.getElementById("countdown-sec").textContent = difSec;
30
31  //指定の日時になればカウントを止める
32  if (remainTime < 0) clearInterval(countdown);
33}, 1000);
34$(window).on('load', function () {
35  //var scrollPos;
36
37  /* SP global nav */
38  $(".menu-btn").click(function () {
39    $(this).toggleClass('active');
40    if ($(this).hasClass('active')) {
41      $('.nav__box').removeClass('hide');
42      // scrollPos = $(window).scrollTop();
43      // console.log(scrollPos);
44      // $('body').addClass('fixed').css('top', -scrollPos);
45      return false;
46    } else {
47      $('.nav__box').addClass('hide');
48      // $('body').removeClass('fixed').css('top',0);
49      // $(window).scrollTop(scrollPos);
50      return false;
51    }
52  });
53
54  // $('.nav__btn.open').on('click', function () {
55  //
56  //     $('.nav__box').removeClass('hide');
57  //     $(this).css('display', 'none');
58  //     $('.fixed__box').removeClass('show');
59  // });
60  //
61  // $('.nav__btn.open').on('mouseenter', function () {
62  //     $('.nav__box').removeClass('hide');
63  //     $(this).css('display', 'none');
64  //     $('.fixed__box').removeClass('show');
65  // });
66
67  // $('.nav__btn.close,.lp,.nav__item a, .nav__logo a').on('click', function () {
68  //
69  //     $('.nav__box').addClass('hide');
70  //     $('.nav__btn.open').css('display', 'block');
71  //     $('.nav__btn.open').css('opacity', '1');
72  //
73  //     if ($(window).scrollTop() > 2000 && $(window).scrollTop() < 13300) {
74  //
75  //         $('.fixed__box').addClass('show');
76  //     }
77  // });
78
79  // /* pc用 navからカーソルが外れたら閉じる */
80  //
81  // $(".nav__box").on({
82  //     "mouseleave": function(){
83  //         $('.nav__box').addClass('hide');
84  //         $('.nav__btn.open').css('display', 'block');
85  //         $('.nav__btn.open').css('opacity', '1');
86  //
87  //         if ($(window).scrollTop() > 2000 && $(window).scrollTop() < 12000) {
88  //
89  //             $('.fixed__box').addClass('show');
90  //         }
91  //     }
92  // });
93
94  /* fixed btn*/
95  $(window).scroll(function () {
96    if ($(this).scrollTop() > 500) {
97      $('.fixed__box').addClass('show');
98    } else {
99      $('.fixed__box').removeClass('show');
100    }
101  });
102
103  /* ユーザの声 slider */
104  $('.slick-review').slick({
105    arrows: true,
106    prevArrow: '<div class="prev"><i class="fas fa-arrow-left icon"></i></div>',
107    nextArrow: '<div class="next"><i class="fas fa-arrow-right icon"></i></div>',
108    dots: true,
109    dotsClass: 'slide-dots',
110    centerMode: false,
111    centerPadding: '290px',
112    lazyLoad: 'ondemand',
113    responsive: [{
114      breakpoint: 560,
115      settings: {
116        centerPadding: '20px',
117        arrows: true,
118        centerMode: true,
119        infinite: true,
120        slidesToShow: 1
121      }
122    }]
123  });
124
125  /* インタビュー slider */
126  $('.slick-interview').slick({
127    arrows: true,
128    prevArrow: '<div class="prev"><i class="fas fa-arrow-left icon"></i></div>',
129    nextArrow: '<div class="next"><i class="fas fa-arrow-right icon"></i></div>',
130    dots: true,
131    dotsClass: 'slide-dots',
132    centerMode: true,
133    fade: false,
134    slidesToShow: 1,
135    centerPadding: '290px',
136    responsive: [{
137      breakpoint: 560,
138      settings: {
139        centerPadding: '20px',
140        arrows: true
141      }
142    }]
143  });
144
145  /* faq accordion */
146  $('.faq__item-q').on('click', function () {
147    var target = $(this).next('.faq__item-a');
148    if (target.hasClass('a-open')) {
149      target.removeClass('a-open');
150      $(this).children('.fa-minus').remove();
151      $(this).css('border-radius', '4px').append('<span class="fas fa-plus icon"></span>');
152    } else {
153      target.addClass('a-open');
154      $(this).children('.fa-plus').remove();
155      $(this).css('border-radius', '4px 4px 0 0').append('<span class="fas fa-minus icon"></span>');
156    }
157  });
158
159  /* guideline accordion */
160  // $('.guideline__accordion-title').on('click', function() {
161  //
162  //     let target = $(this).next('.guideline__accordion-content');
163  //
164  //     if(target.hasClass('c-open')) {
165  //         target.removeClass('c-open');
166  //         $(this).children('.fa-minus').remove();
167  //         $(this).css('border-radius','10px').append('<span class="fas fa-plus icon"></span>');
168  //     } else {
169  //         target.addClass('c-open');
170  //         $(this).children('.fa-plus').remove();
171  //         $(this).css('border-radius','10px 10px 0 0').append('<span class="fas fa-minus icon"></span>');
172  //     }
173  // });
174
175  /* counseling form*/
176
177  var $submitBtn = $('#js-submit');
178  $('#form input,#form textarea,select').on('change', function () {
179    if ($('#form input[type="text"]').val() !== "" && $('#form input[type="email"]').val() !== "" && $('#form input[type="tel"]').val() !== "" && $('#form #privacyCheck').prop('checked') === true) {
180      $submitBtn.prop('disabled', false);
181    } else {
182      $submitBtn.prop('disabled', true);
183    }
184  });
185
186  /* scroll */
187  $('a[href^="#"]').on('click', function () {
188    var href = $(this).attr('href');
189    if (href !== '#' || href !== '') {
190      var target = href === '#top' && !$('#top').length ? 'html' : href,
191        position = $(target).offset().top;
192      $('body, html').animate({
193        scrollTop: position
194      }, 500);
195      return false;
196    }
197  });
198});
199
200/***/ }),
201
202/***/ "./resources/scss/style.scss":
203/*!***********************************!*\
204  !*** ./resources/scss/style.scss ***!
205  \***********************************/
206/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
207
208"use strict";
209__webpack_require__.r(__webpack_exports__);
210// extracted by mini-css-extract-plugin
211
212
213/***/ })
vendor: 5,924 bytes, lines 213-357
213
214
215/******/ 	});
216/************************************************************************/
217/******/ 	// The module cache
218/******/ 	var __webpack_module_cache__ = {};
219/******/ 	
220/******/ 	// The require function
221/******/ 	function __webpack_require__(moduleId) {
222/******/ 		// Check if module is in cache
223/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
224/******/ 		if (cachedModule !== undefined) {
225/******/ 			return cachedModule.exports;
226/******/ 		}
227/******/ 		// Create a new module (and put it into the cache)
228/******/ 		var module = __webpack_module_cache__[moduleId] = {
229/******/ 			// no module.id needed
230/******/ 			// no module.loaded needed
231/******/ 			exports: {}
232/******/ 		};
233/******/ 	
234/******/ 		// Execute the module function
235/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
236/******/ 	
237/******/ 		// Return the exports of the module
238/******/ 		return module.exports;
239/******/ 	}
240/******/ 	
241/******/ 	// expose the modules object (__webpack_modules__)
242/******/ 	__webpack_require__.m = __webpack_modules__;
243/******/ 	
244/************************************************************************/
245/******/ 	/* webpack/runtime/chunk loaded */
246/******/ 	(() => {
247/******/ 		var deferred = [];
248/******/ 		__webpack_require__.O = (result, chunkIds, fn, priority) => {
249/******/ 			if(chunkIds) {
250/******/ 				priority = priority || 0;
251/******/ 				for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
252/******/ 				deferred[i] = [chunkIds, fn, priority];
253/******/ 				return;
254/******/ 			}
255/******/ 			var notFulfilled = Infinity;
256/******/ 			for (var i = 0; i < deferred.length; i++) {
257/******/ 				var [chunkIds, fn, priority] = deferred[i];
258/******/ 				var fulfilled = true;
259/******/ 				for (var j = 0; j < chunkIds.length; j++) {
260/******/ 					if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
261/******/ 						chunkIds.splice(j--, 1);
262/******/ 					} else {
263/******/ 						fulfilled = false;
264/******/ 						if(priority < notFulfilled) notFulfilled = priority;
265/******/ 					}
266/******/ 				}
267/******/ 				if(fulfilled) {
268/******/ 					deferred.splice(i--, 1)
269/******/ 					var r = fn();
270/******/ 					if (r !== undefined) result = r;
271/******/ 				}
272/******/ 			}
273/******/ 			return result;
274/******/ 		};
275/******/ 	})();
276/******/ 	
277/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
278/******/ 	(() => {
279/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
280/******/ 	})();
281/******/ 	
282/******/ 	/* webpack/runtime/make namespace object */
283/******/ 	(() => {
284/******/ 		// define __esModule on exports
285/******/ 		__webpack_require__.r = (exports) => {
286/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
287/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
288/******/ 			}
289/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
290/******/ 		};
291/******/ 	})();
292/******/ 	
293/******/ 	/* webpack/runtime/jsonp chunk loading */
294/******/ 	(() => {
295/******/ 		// no baseURI
296/******/ 		
297/******/ 		// object to store loaded and loading chunks
298/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
299/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
300/******/ 		var installedChunks = {
301/******/ 			"/js/app": 0,
302/******/ 			"css/style": 0
303/******/ 		};
304/******/ 		
305/******/ 		// no chunk on demand loading
306/******/ 		
307/******/ 		// no prefetching
308/******/ 		
309/******/ 		// no preloaded
310/******/ 		
311/******/ 		// no HMR
312/******/ 		
313/******/ 		// no HMR manifest
314/******/ 		
315/******/ 		__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
316/******/ 		
317/******/ 		// install a JSONP callback for chunk loading
318/******/ 		var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
319/******/ 			var [chunkIds, moreModules, runtime] = data;
320/******/ 			// add "moreModules" to the modules object,
321/******/ 			// then flag all "chunkIds" as loaded and fire callback
322/******/ 			var moduleId, chunkId, i = 0;
323/******/ 			if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
324/******/ 				for(moduleId in moreModules) {
325/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
326/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
327/******/ 					}
328/******/ 				}
329/******/ 				if(runtime) var result = runtime(__webpack_require__);
330/******/ 			}
331/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
332/******/ 			for(;i < chunkIds.length; i++) {
333/******/ 				chunkId = chunkIds[i];
334/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
335/******/ 					installedChunks[chunkId][0]();
336/******/ 				}
337/******/ 				installedChunks[chunkId] = 0;
338/******/ 			}
339/******/ 			return __webpack_require__.O(result);
340/******/ 		}
341/******/ 		
342/******/ 		var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
343/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
344/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
345/******/ 	})();
346/******/ 	
347/************************************************************************/
348/******/ 	
349/******/ 	// startup
350/******/ 	// Load entry module and return exports
351/******/ 	// This entry module depends on other loaded chunks and execution need to be delayed
352/******/ 	__webpack_require__.O(undefined, ["css/style"], () => (__webpack_require__("./resources/js/app.js")))
353/******/ 	var __webpack_exports__ = __webpack_require__.O(undefined, ["css/style"], () => (__webpack_require__("./resources/scss/style.scss")))
354/******/ 	__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
355/******/ 	
356/******/ })()
357;

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.