PageSourceSearch

https://ovtp.jp/wp-content/themes/ovtp/js/front-page.js?1227

js ovtp.jp collected 2026-10-02 05:16:46 UTC 2,356 bytes, 81 lines download raw bytes

1// JavaScript Document
2$(window).on('load',function(){
3	$('.l-transition').addClass('is-load');
4	// $('body').removeClass('is-transition');
5	setTimeout(function(){
6		$('.l-transition').addClass('is-load');
7		$('.l-transition').addClass('is-finish');
8		$('header').show();
9	},800);
10
11	//ポップアップ
12	var popup = document.getElementById('js-popup');
13	if(!popup) return;
14	popup.classList.add('is-show');
15
16	var blackBg = document.getElementById('js-black-bg');
17	var closeBtn = document.getElementById('js-close-btn');
18
19	closePopUp(blackBg);
20	closePopUp(closeBtn);
21
22	function closePopUp(elem) {
23	if(!elem) return;
24	elem.addEventListener('click', function() {
25	  popup.classList.remove('is-show');
26	})
27	}
28
29});
30
31/*=======================================
32画面遷移
33=========================================*/
34
35/* topのみ-scrollify使用 */
36//scrollify スクロール動作
37//scrollify footer動作 offsettop分岐
38jQuery(function($){
39	var current;
40	$.scrollify({
41		section:".home-scroll",
42		interstitialSection:"#footer",
43		setHeights:true,
44		updateHash:false,//falseだとリロードで途中からの時、左画像が変わらない ↓afterRenderで初期化すればいけた
45		before:function(i,box){
46			current = i;
47			section_image_change(i);
48		},
49		afterRender:function(){
50			//何番目かを取得、ページ途中でリロードした場合用 ただ ↓$.scrollify.enable()を入れたら常に0番開始になってしまった
51			var i = $('.home-scroll').index($.scrollify.current());
52			section_image_change(i);
53			$.scrollify.update();
54		},
55	});
56	$(window).on('resize',function(){
57      if(current){
58      var currentScrl = $('.home-scroll, .footer').eq(current).offset().top;
59			$(window).scrollTop(currentScrl);
60      }
61	});
62});
63
64
65$(function(){
66	var timer = false;
67	$(window).on('load resize', function() {
68
69		//継続呼び出し防止のtimeoutを使うと、リサイズ時に上部へ戻るので没 *loadとresizeを分けるのは試していません
70		// if (timer !== false) {clearTimeout(timer)}; 
71		// timer = setTimeout(function() { }, 200);
72
73		// スマホレイアウト時はscrollifyを無効
74		if (window.matchMedia('(max-width: 980px)').matches) {
75			$.scrollify.disable();
76		} else {
77			$.scrollify.enable();
78		}
79
80  });
81});

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.