PageSourceSearch

https://www.osakacastle.jp/wpweb/wp-content/themes/xeory_extension/index/js/index.js

js osakacastle.jp collected 2026-10-04 11:14:37 UTC 7,521 bytes, 381 lines download raw bytes

1// JavaScript Document
2
3
4if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {
5	$(document).ready(function() {
6		$(".wrapper").bgswitcher({
7			images: ["../index/img/main_slide-01.jpg"]
8		});
9	});
10}else {
11	
12//	jQuery(document).ready(function () {
13//		
14//		jQuery(window).on('load',function(){
15//				jQuery('.youtube').mb_YTPlayer();
16//			});
17//			
18//	});
19	/*
20	$(document).ready(function () {
21		
22	  $('body').vide('/cms/wp-content/themes/grandginza_2017/index/video/tgg02', {
23	  		muted: false,
24	  		loop: true,
25	  		autoplay: true,
26	  		position: "50%"
27		});
28    
29  	});
30   */
31
32}
33
34
35$(document).ready(function() {
36
37			var flg = false;
38		
39			$('#fullpage').fullpage({
40				verticalCentered: false,
41				scrollOverflow: true ,
42				scrollBar: false ,
43				scrollingSpeed: 1200,
44				easing: 'easeInOutExpo',
45				easingcss3: 'cubic-bezier(0.78, .18, .34, .98)',
46				navigation: true,
47				navigationPosition : 'right',
48				scrollOverflowReset: true,
49				scrollOverflowResetKey: 'QU5ZX0lyUWMyTnliMnhzVDNabGNtWnNiM2RTWlhObGRBPT16bHQ=',
50				anchors: ['page1','page2', 'page3', 'page4', 'page5', 'page6'],
51				afterLoad: function(anchorLink, index){
52					var loadedSection = $(this);
53					if(index == 1){
54						if(flg == true){
55							$('.logo_white').fadeOut(100);
56							flg = false;
57						}
58						//$('#moveDown').fadeIn(300);
59						$('#mainimage').delay(50).queue(function(next) {
60							$(this).addClass('highlight');
61							next();
62							
63						});
64					}
65			
66					if(index != 1){
67						if(flg == false){
68							$('.logo_white').fadeIn(300);
69							flg = true;
70						}
71					}
72                    
73					
74					$('.section:not(.active)').removeClass('highlight');
75					
76					if(index == 6){
77						$('#moveDown').fadeOut(100);
78					}else{
79						$('#moveDown').fadeIn(300);
80					}
81				},
82				onLeave: function(index, nextIndex, direction){
83					
84					if(nextIndex == 2){
85						$('#concept').delay(500).queue(function(next) {
86							$(this).addClass('highlight');
87							next();
88							
89						});
90					}
91					if(nextIndex == 3){
92						$('#wedding').delay(500).queue(function(next) {
93							$(this).addClass('highlight');
94							next();
95						});
96					}
97					if(nextIndex == 4){
98						$('#partymice').delay(500).queue(function(next) {
99							$(this).addClass('highlight');
100							next();
101						});
102					}
103					if(nextIndex == 5){
104						$('#restaurant').delay(500).queue(function(next) {
105							$(this).addClass('highlight');
106							next();
107						});
108					}
109					if(nextIndex == 6){
110						$('#bottom').delay(500).queue(function(next) {
111							$(this).addClass('highlight');
112							next();
113						});
114					}
115				}
116			});
117			$(document).on('click', '#moveDown', function(){
118				$.fn.fullpage.moveSectionDown();
119			});
120	
121});
122
123/*
124$(document).ready(function() {
125
126			var flg = false;
127		
128			$('#fullpage').fullpage({
129				verticalCentered: false,
130				scrollOverflow: true ,
131				scrollBar: false ,
132				scrollingSpeed: 1200,
133				easing: 'easeInOutExpo',
134				easingcss3: 'cubic-bezier(0.78, .18, .34, .98)',
135				navigation: true,
136				navigationPosition : 'right',
137				scrollOverflowReset: true,
138				scrollOverflowResetKey: 'QU5ZX0lyUWMyTnliMnhzVDNabGNtWnNiM2RTWlhObGRBPT16bHQ=',
139				anchors: ['page1','page2', 'page3', 'page4', 'page5', 'page6','page7','page8','page9','page10','page11'],
140				afterLoad: function(anchorLink, index){
141					var loadedSection = $(this);
142					if(index == 1){
143						if(flg == true){
144							$('.logo_white').fadeOut(100);
145							flg = false;
146						}
147						//$('#moveDown').fadeIn(300);
148						
149					}
150			
151					if(index != 1){
152						if(flg == false){
153							$('.logo_white').fadeIn(300);
154							flg = true;
155						}
156					}
157					
158					$('.section:not(.active)').removeClass('highlight');
159					
160					if(index == 12){
161						$('#moveDown').fadeOut(100);
162					}else{
163						$('#moveDown').fadeIn(300);
164					}
165				},
166				onLeave: function(index, nextIndex, direction){
167					
168					
169					
170					if(nextIndex == 2){
171						$('#concept').delay(500).queue(function(next) {
172							$(this).addClass('highlight');
173							next();
174							
175						});
176					}
177					if(nextIndex == 3){
178						$('#lounge').delay(500).queue(function(next) {
179							$(this).addClass('highlight');
180							next();
181						});
182					}
183					if(nextIndex == 4){
184						$('#g47').delay(500).queue(function(next) {
185							$(this).addClass('highlight');
186							next();
187						});
188					}
189					if(nextIndex == 5){
190						$('#kiwami').delay(500).queue(function(next) {
191							$(this).addClass('highlight');
192							next();
193						});
194					}
195					if(nextIndex == 6){
196						$('#salon').delay(500).queue(function(next) {
197							$(this).addClass('highlight');
198							next();
199						});
200					}
201					if(nextIndex == 7){
202						$('#multiple').delay(500).queue(function(next) {
203							$(this).addClass('highlight');
204							next();
205						});
206					}
207					if(nextIndex == 8){
208						$('#vip').delay(500).queue(function(next) {
209							$(this).addClass('highlight');
210							next();
211						});
212					}
213					if(nextIndex == 9){
214						$('#wedding').delay(500).queue(function(next) {
215							$(this).addClass('highlight');
216							next();
217						});
218					}
219					if(nextIndex == 10){
220						$('#partymice').delay(500).queue(function(next) {
221							$(this).addClass('highlight');
222							next();
223						});
224					}
225					
226				}
227			});
228			$(document).on('click', '#moveDown', function(){
229				$.fn.fullpage.moveSectionDown();
230			});
231	
232});
233*/
234$(window).on('load', function(){
235 
236winW = $(window).width(); //画面の幅を取得
237winH = $(window).height(); //画面の高さを取得
238spW = 768; //ブレイクポイントを定義
239 
240//==============================
241// for PC
242//==============================
243if(winW > spW){
244 
245 
246// scrollify-------------*/
247
248
249 
250
251
252
253
254 
255 
256
257 
258 
259//==============================
260// for SP
261//==============================
262}else{
263 
264
265
266
267 
268};
269 
270 
271});
272
273
274
275
276
277
278
279
280
281var active_slide_no = 0;
282var load_time = 0;
283
284
285
286$(window).ready(fn_top_layout);
287$(window).resize(fn_top_layout);
288
289function fn_top_layout(){
290	
291winW = $(window).width(); //画面の幅を取得
292winH = $(window).height(); //画面の高さを取得
293spW = 768; //ブレイクポイントを定義
294 
295//==============================
296// for PC
297//==============================
298if(winW > spW){
299 
300 
301 
302	$("#mainimage").css("width", winW + "px");
303	$("#mainimage").css("height", winH + "px");
304	//$("#mainimage iframe").css("width", winW + "px");
305	//$("#mainimage iframe").css("height", winH + "px");
306	
307	
308	$("#main aside").css("width", winW + "px");
309	$("#main aside").css({"height": winH + "px"});
310	
311	$("#main aside .slide_bg").css("width", winW + "px");
312	$("#main aside .slide_bg").css({"height": winH + "px"});
313	
314	//$("#party").css({"height": winH + 630 + "px"});
315
316
317	$(".scrollslide .inner").each(function(){
318
319		inner_H = $(this).height(); 
320		$(this).css("margin-top", - inner_H / 2 + "px");
321
322	});
323
324 
325	
326	
327 
328 
329 
330//==============================
331// for SP
332//==============================
333}else{
334 
335
336
337
338
339
340	$("#mainimage").css("width", winW + "px");
341	$("#mainimage").css("height", winH + "px");
342//	$("#mainimage iframe").css("width", winW + "px");
343//	$("#mainimage iframe").css("height", winH + "px");
344	
345	
346	$("#main aside").css("width", winW + "px");
347	$("#main aside").not(document.getElementById( "bottom" )).css({"height": winH + "px"});
348	
349	
350
351	$(".scrollslide .inner").each(function(){
352
353		inner_H = $(this).height(); 
354		$(this).css("margin-top", - inner_H / 2 + "px");
355
356
357	});
358
359	
360
361 
362};
363 
364
365}
366// /fn_top_layout
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381

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.