PageSourceSearch

https://dropsofgod-anime.com/common/js/dropsofgod_script.js?20260422210944

js dropsofgod-anime.com collected 2026-09-24 22:40:48 UTC 23,163 bytes, 1,165 lines download raw bytes

1
2
3
4
5$(document).ready(function(){
6
7
8	if ( !( 'console' in window ) ){
9		window.console = {};
10		window.console.log = function(arg){
11			return arg;
12		};
13	}
14
15	//console.log('ready 1.');
16
17
18
19	$('.char_list').each(function(){
20
21		var _buttons = $('.char_list_item',$(this));
22
23		var _body_master = $('#char_list_body_in');
24
25		var _body_items = $('.char_list_body_item',_body_master);
26
27		var fade_out_timer = null;
28
29		var fade_in_timer = null;
30
31		_buttons.each(function(){
32
33			$(this).unbind('click').bind( 'click', function(){
34
35				if ( $(this).hasClass('current') ){
36
37					return false;
38
39				}
40
41				var offset = $(this).index();
42
43/*
44				if ( $(this).closest('.char_list').attr('id') == 'chlist2' ){
45
46					offset += 3;
47
48				}
49*/
50
51				_buttons.removeClass('current');
52
53				_buttons.eq(offset).addClass('current');
54
55				_body_items.removeClass('char_anim_start');
56
57				if ( fade_out_timer != null ){
58
59					clearTimeout(fade_out_timer);
60
61					fade_out_timer == null;
62
63				}
64
65				if ( fade_in_timer != null ){
66
67					clearTimeout(fade_in_timer);
68
69					fade_in_timer == null;
70
71				}
72
73				fade_out_timer = setTimeout(function(){
74
75					_body_items.each(function(){
76
77						if ( $(this).index() != offset ){
78
79							$(this).css( 'display', 'none' );
80
81						}
82
83					});
84
85				}, 800 );
86
87				//_body_items.eq(offset).css( 'display', 'flex' );
88				_body_items.eq(offset).css( 'display', 'block' );
89
90				$(window).trigger('resize');
91
92				fade_in_timer = setTimeout(function(){
93
94					_body_items.eq(offset).addClass('char_anim_start');
95
96				}, 500 );
97
98				return false;
99
100			});
101
102		});
103
104		_buttons.eq(0).trigger('click');
105
106	});
107
108
109
110
111
112
113
114	$('#dpog_header_menu_button').each(function(){
115
116		var _header = $('#dpog_header_in5');
117
118		var _body = $('#dpog_header_in6');
119
120		$.data( $(this).get(0), 'is_open', false );
121
122		var _this = $(this);
123
124		$(this).unbind('click').bind( 'click', function(){
125
126			if ( $.data( _this.get(0), 'is_open' ) != false ){
127
128				_header.stop().animate( { 'height': '0px' }, {
129					'duration': 450,
130					'easing': 'easeInOutQuint',
131					'step': function( now, fx ){
132
133						$('#dpog_header').height($('#dpog_header_cover').height());
134
135					},
136					'complete': function(){
137
138						//_header.hide();
139
140						_header.css( 'height', '' );
141
142					}
143				});
144
145				_this.removeClass('menu_open');
146
147				$.data( _this.get(0), 'is_open', false );
148
149			}else {
150
151				_header.stop().animate( { 'height': _body.height() + 'px' }, {
152					'duration': 450,
153					'easing': 'easeInOutQuint',
154					'step': function( now, fx ){
155
156						$('#dpog_header').height($('#dpog_header_cover').height());
157
158					},
159					'complete': function(){
160
161						//_header.hide();
162
163					}
164				});
165
166				_this.addClass('menu_open');
167
168				$.data( _this.get(0), 'is_open', true );
169
170			}
171
172		});
173
174		$(window).unbind('resize.spmenureset').bind( 'resize.spmenureset', function(){
175
176			_this.removeClass('menu_open');
177
178			//$.data( _this.get(0), 'is_open', false );
179
180			_header.css( 'height', '' );
181
182		});
183
184		$(window).trigger('resize.spmenureset');
185
186	});
187
188
189
190
191
192
193	$('#back_to_top').each(function(){
194
195		$(this).unbind('click').bind( 'click', function(){
196
197			if ( $(window).scrollTop() > 0 ){
198
199				var duration = 1250;
200
201				if ( $(window).scrollTop() < duration ){
202
203					duration = $(window).scrollTop();
204
205				}
206
207				$('body, html').stop().animate( { scrollTop: '0px' }, duration, 'easeOutQuart' );
208
209				return false;
210
211			}
212
213		});
214
215	});
216
217
218
219
220	$(window).unbind('scroll.scrolltop').bind( 'scroll.scrolltop', function(){
221
222		var scrolltop = $(window).scrollTop();
223
224		if ( scrolltop > 0 ){
225
226			$('body').addClass('menu_adjust');
227
228		}else {
229
230			$('body').removeClass('menu_adjust');
231
232		}
233
234		// menu hidden / vissible
235
236		var _footer = $('#dpog_footer');
237
238		var _header = $('#dpog_header');
239
240		var _sp_header_button = $('#dpog_header_menu_logo,#dpog_header_menu_button,#menu_sns_buttons');
241
242		var scroll_diff = ( _footer.offset().top - 50 ) - ( _header.height() + scrolltop );
243
244		if ( scroll_diff <= 0 ){
245
246			//_header.css( 'opacity', 0.0 );
247
248			_header.css( 'transform', 'translateY(' + scroll_diff + 'px)' );
249
250			if ( $(window).width() <= 750 ){
251
252				_sp_header_button.css( 'transform', 'translateY(' + scroll_diff + 'px)' );
253
254			}
255
256		}else {
257
258			//_header.css( 'opacity', '' );
259
260			_header.css( 'transform', '' );
261
262			if ( $(window).width() <= 750 ){
263
264				_sp_header_button.css( 'transform', '' );
265
266			}
267
268		}
269
270	});
271
272
273
274
275
276	$('.comment_modal_trigger').each(function(){
277
278		$(this).css({ 'cursor': 'pointer' });
279
280		$(this).unbind('click').bind( 'click', function(){
281
282			var _target = $('#'+$(this).attr('data-target'));
283
284			_target.css( 'display', 'flex' );
285
286			_target.stop().animate( { opacity: 1.0 }, 250, 'linear', function(){} );
287
288			$('.com_modal_overlay,.com_modal_box_close,com_modal_box_top',_target).each(function(){
289
290				$(this).unbind('click').bind( 'click', function(){
291
292					$(this).closest('.com_modal_cover').stop().animate( { opacity: 0.0 }, 250, 'linear', function(){
293
294						$(this).hide();
295
296					});
297
298				});
299
300			});
301
302			$(window).trigger('resize');
303
304			return false;
305
306		});
307
308	});
309
310
311
312
313
314
315
316
317
318
319
320
321
322	/*
323	Light Box ‚à‚Ç‚« V2 (SP‰æ‘œ‚̏ˆ—‚ð’ljÁ)
324	(Žq—v‘f‚Éimg‚ª‚ ‚éê‡‚Ædirectƒ‚[ƒh‚ªƒoƒbƒeƒBƒ“ƒO‚µ‚Ä‚¢‚½‚Ì‚Åreturn true‚ð’ljÁ)
325	*/
326	$('.modal_trigger').each(function(){
327
328		if ( $('body.sp').length != 0 ) return false;
329
330		if ( $('#kk_overlay').length == 0 ){
331
332			$('body').append('<div id="kk_overlay"></div><div id="kk_modal"><div id="kk_modal_inner"></div><div id="kk_modal_close"></div></div>');
333
334			$.ilight = {};
335			$.ilight.close = function(){
336
337				$('#kk_overlay').trigger('click');
338
339				//return this;
340
341			};
342
343			$.ilight.resize = function( iw, ih ){
344
345				var pd_width = iw;
346				var pd_height = ih;
347
348				var ol_tb_padding = 40;
349				var ol_rl_padding = 70;
350				var ol_tb_img_padding = 2;
351				var ol_rl_img_padding = 2;
352
353				var ol_width = $(window).width() - ( ol_tb_padding * 2 );
354				var ol_height = $(window).outerHeight() - ( ol_rl_padding * 2 );
355
356				var ol_img_width = ol_width - ( ol_tb_img_padding * 2 );
357				var ol_img_height = ol_height - ( ol_rl_img_padding * 2 );
358
359				var ol_img_mt = 0;
360				var ol_img_ml = 0;
361
362				if ( ol_img_width > pd_width && ol_img_height > pd_height ){
363
364					ol_width = pd_width + ( ol_tb_img_padding * 2 );
365					ol_height = pd_height + ( ol_rl_img_padding * 2 );
366					ol_img_width = pd_width;
367					ol_img_height = pd_height;
368
369				}else {
370
371					// DVLPTM5
372
373					var buf_width = parseInt( pd_width * ( ol_img_height / pd_height ) ); // c‚Éfit‚µ‚½ê‡‚Ì•
374					var buf_height = parseInt( pd_height * ( ol_img_width / pd_width ) ); // ‰¡‚Éfit‚µ‚½ê‡‚̍‚‚³
375
376					if ( buf_width <= ol_img_width ){ // cfit‚̏ꍇ‚ÉƒŠƒTƒCƒY‚µ‚½•‚ªƒEƒBƒ“ƒhƒE•‚æ‚è‚à¬‚³‚¢ê‡A‰æ‘œ‚͉æ–ʂɎû‚Ü‚Á‚Ä‚¢‚é
377
378						ol_img_width = buf_width;
379						ol_width = buf_width;
380
381					}else { // ‚»‚¤‚łȂ¢ê‡‚͉¡fit‡‚킹
382
383						ol_img_height = buf_height;
384						ol_height = buf_height;
385
386					}
387
388					//console.log('ol_img_width: ' + ol_img_width + ', buf_width: ' + buf_width);
389					//console.log('ol_img_height: ' + ol_img_height + ', buf_height: ' + buf_height);
390
391				}
392
393				$('#kk_modal').css({
394					marginTop: -parseInt( ol_height / 2 ) + 'px',
395					marginLeft: -parseInt( ol_width / 2 ) + 'px',
396					width: ol_img_width + 'px',
397					height: ol_img_height + 'px',
398					cursor: 'pointer'
399				});
400
401				$('#kk_modal_inner').width(ol_img_width).height(ol_img_height);
402
403				//$('#kk_overlay').css({ display: 'block', height: $(window).outerHeight() + 'px', width: $(window).width() + 'px' });
404				$('#kk_overlay').css({ display: 'block', height: '', width: $(window).width() + 'px' });
405
406			};
407
408			$('#kk_overlay').unbind('click').bind( 'click', function(){
409
410				$('#kk_modal_loading').css({ opacity: 0.0 });
411
412				$.data( $('#kk_modal_inner').get(0), 'owidth', false );
413				$.data( $('#kk_modal_inner').get(0), 'oheight', false );
414
415				$('#kk_modal').stop().animate( { opacity: 0.0 }, 150, 'linear', function(){
416
417					$(this).css({ display: 'none' });
418
419					$('#kk_modal').removeClass('kk_modal_popup_anim');
420
421					$('#kk_overlay').stop().animate( { opacity: 0.0 }, 150, 'linear', function(){
422
423						$(this).css({ display: 'none' });
424
425						$('#kk_modal_inner').html('');
426
427						$(document).unbind('mousewheel.stop DOMMouseScroll.stop');
428
429					});
430
431				});
432
433			});
434
435			$(window).unbind('resize.ilight').bind( 'resize.ilight', function(){
436
437				if ( $.data( $('#kk_modal_inner').get(0), 'owidth' ) && $.data( $('#kk_modal_inner').get(0), 'oheight' ) ){
438
439					$.ilight.resize( $.data( $('#kk_modal_inner').get(0), 'owidth' ), $.data( $('#kk_modal_inner').get(0), 'oheight' ) );
440
441				}
442
443			});
444
445		}
446
447		if ( $(this).attr('data-mode') && $(this).attr('data-mode') == 'iframe' ){
448
449			$(this).unbind('click').bind( 'click', function(){
450
451				$('#kk_modal_inner').html('<iframe src="'+$(this).attr('data-src')+'" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>');
452
453				$.data( $('#kk_modal_inner').get(0), 'owidth', parseInt($(this).attr('data-width')) );
454				$.data( $('#kk_modal_inner').get(0), 'oheight', parseInt($(this).attr('data-height')) );
455
456				$.ilight.resize( parseInt($(this).attr('data-width')), parseInt($(this).attr('data-height')) );
457
458				$('#kk_modal').stop().css({ display: 'block' }).addClass('kk_modal_popup_anim').animate( { opacity: 1.0 }, 250, 'linear', function(){} );
459
460				$('#kk_modal').unbind('click').bind( 'click', function(){
461
462					$.ilight.close();
463
464				});
465
466				//$('#kk_overlay').css({ display: 'block', height: $(window).outerHeight() + 'px', width: $(window).width() + 'px' });
467				$('#kk_overlay').css({ display: 'block', height: '', width: $(window).width() + 'px' });
468
469				$('#kk_overlay').stop().animate( { opacity: 1.0 }, 250, 'linear', function(){} );
470
471				$(document).bind( 'mousewheel.stop DOMMouseScroll.stop', function(e){
472
473					/* IE7, IE8, Chrome, Safari */
474					//if ( !e ){
475
476					//	e = window.event;
477
478					//}
479
480					/* Chrome, Safari, Firefox */
481					//if ( e.preventDefault ){
482
483					//	e.preventDefault();
484
485					//}
486
487					/* IE7, IE8 */
488					//e.returnValue = false;
489
490					// https://qiita.com/yukiTTT/items/773356c2483b96c9d4e0
491
492					//function handleTouchMove(event){
493
494					//	event.preventDefault();
495
496					//}
497
498					//ƒXƒNƒ[ƒ‹‹ÖŽ~
499					//document.addEventListener('touchmove', handleTouchMove, { passive: false });
500
501					//ƒXƒNƒ[ƒ‹•œ‹A
502					//document.removeEventListener('touchmove', handleTouchMove, { passive: false });
503
504				});
505
506				return false;
507
508			});
509
510			return true;
511
512		}
513
514		if ( $(this).attr('data-modal-mode') == 'direct' ){ // —vC³
515
516			$(this).each(function(){
517
518				var _this = $(this);
519
520				$(this).unbind('click').bind( 'click', function(){
521
522					var preloader = new Image;
523					preloader.onload = function(){
524
525						$('#kk_modal_loading').css({ opacity: 0.0 });
526
527						//$('#kk_modal_inner').html('<img src="'+preloader.src+'" width="100%" height="100%" style="margin-top: '+ol_img_mt+'px; margin-left: '+ol_img_ml+'px;">');
528						$('#kk_modal_inner').html('<img src="'+preloader.src+'" width="100%" height="100%">');
529
530						$.data( $('#kk_modal_inner').get(0), 'owidth', preloader.width );
531						$.data( $('#kk_modal_inner').get(0), 'oheight', preloader.height );
532
533						$.ilight.resize( preloader.width, preloader.height );
534
535						$('#kk_modal').stop().css({ display: 'block' }).animate( { opacity: 1.0 }, 250, 'linear', function(){} );
536
537						$('#kk_modal').unbind('click').bind( 'click', function(){
538
539							$.ilight.close();
540
541						});
542
543					};
544
545					$('#kk_modal_loading').css({ opacity: 1.0 });
546
547					//$('#kk_overlay').css({ display: 'block', height: $(window).outerHeight() + 'px', width: $(window).width() + 'px' });
548					$('#kk_overlay').css({ display: 'block', height: '', width: $(window).width() + 'px' });
549
550					$('#kk_overlay').stop().animate( { opacity: 1.0 }, 250, 'linear', function(){} );
551
552					if ( _this.attr('data-sp-href') && $(window).width() <= 750 ){
553
554						//console.log('data-sp-href');
555
556						preloader.src = _this.attr('data-sp-href');
557
558					}else {
559
560						//console.log('href: ' + _this.attr('href'));
561
562						preloader.src = _this.attr('href');
563
564					}
565
566					return false;
567
568				});
569
570			});
571
572			return true;
573
574		}
575
576		$('img',$(this)).each(function(){
577
578			if ( $(this).parent().attr('href') ){
579
580				var _this = $(this).parent();
581
582				$(this).parent().unbind('click').bind( 'click', function(){
583
584					var preloader = new Image;
585					preloader.onload = function(){
586
587						$('#kk_modal_loading').css({ opacity: 0.0 });
588
589						//$('#kk_modal_inner').html('<img src="'+preloader.src+'" width="100%" height="100%" style="margin-top: '+ol_img_mt+'px; margin-left: '+ol_img_ml+'px;">');
590						$('#kk_modal_inner').html('<img src="'+preloader.src+'" width="100%" height="100%">');
591
592						$.data( $('#kk_modal_inner').get(0), 'owidth', preloader.width );
593						$.data( $('#kk_modal_inner').get(0), 'oheight', preloader.height );
594
595						$.ilight.resize( preloader.width, preloader.height );
596
597						$('#kk_modal').stop().css({ display: 'block' }).animate( { opacity: 1.0 }, 250, 'linear', function(){} );
598
599						$('#kk_modal').unbind('click').bind( 'click', function(){
600
601							$.ilight.close();
602
603						});
604
605					};
606
607					$('#kk_modal_loading').css({ opacity: 1.0 });
608
609					//$('#kk_overlay').css({ display: 'block', height: $(window).outerHeight() + 'px', width: $(window).width() + 'px' });
610					$('#kk_overlay').css({ display: 'block', height: '', width: $(window).width() + 'px' });
611
612					$('#kk_overlay').stop().animate( { opacity: 1.0 }, 250, 'linear', function(){} );
613
614					preloader.src = _this.attr('href');
615
616					return false;
617
618				});
619
620			}else {
621
622				return true;
623
624			}
625
626		});
627
628	});
629
630
631
632
633
634	$('#dpog_ts_fv_kv_left').each(function(){
635
636		var _kv_nav_item = $('.thumb_item','#dpog_ts_fv_kv_thumb');
637
638		var _kv_main_item = $('img','#dpog_ts_fv_kv_body_in');
639
640		_kv_nav_item.each(function(){
641
642			$(this).unbind('click').bind( 'click', function(){
643
644				var _this = $(this);
645
646				_kv_nav_item.each(function(){
647
648					if ( _this.index() == $(this).index() ){
649
650						$(this).addClass('current');
651
652					}else {
653
654						$(this).removeClass('current');
655
656					}
657
658				});
659
660				_kv_main_item.each(function(){
661
662					if ( _this.index() == $(this).index() ){
663
664						$(this).css( 'opacity', 1.0 );
665
666					}else {
667
668						$(this).css( 'opacity', 0.0 );
669
670					}
671
672				});
673
674			});
675
676		});
677
678		_kv_nav_item.eq(_kv_nav_item.length - 1).trigger('click');
679
680	});
681
682
683
684	$('.withinpageanchor').unbind('click').bind( 'click', function(){
685
686		var withinpageid = '#' + $(this).attr('href').split("#")[1];
687
688		console.log('withinpageid: '+withinpageid);
689
690		if ( $(withinpageid).length > 0 ){
691
692			$('body, html').stop().animate( { scrollTop: $(withinpageid).offset().top }, 750, 'easeInOutExpo' );
693
694		}
695
696		if ( $.data( $('#dpog_header_menu_button').get(0), 'is_open' ) != false ){
697
698			$('#dpog_header_menu_button').trigger('click');
699
700		}
701
702		return false;
703
704	});
705
706
707
708
709
710
711
712	$('.story_thumbs').each(function(){
713
714		var _thumb = $(this);
715
716		var _thumb_items = $('img',_thumb);
717
718		_thumb.before('<p class="story_thumbs_main"></p>');
719
720		var _main = $('.story_thumbs_main',$(this).parent());
721
722		_thumb_items.each(function(){
723
724			_main.append($(this).clone());
725
726			//_thumb.append($('<span class="story_thumbs_item"></span>').append($(this).clone()));
727
728			//$(this).appendTo(_thumb.append('<span class="story_thumbs_item"></span>'));
729
730			var _item = $('<span class="story_thumbs_item"></span>').append($(this));
731
732			_thumb.append(_item);
733
734		});
735
736		var _thumb_items = $('.story_thumbs_item',_thumb);
737
738		var _main_items = $('img',_main);
739
740		//console.log(_main);
741
742		_thumb_items.each(function(){
743
744			$(this).unbind('click').bind( 'click', function(){
745
746				var _this = $(this);
747
748				_main_items.stop().animate( { 'opacity': '0.0' }, 300, 'linear', function(){} );
749
750				_thumb_items.removeClass('current');
751
752				_main_items.each(function(){
753
754					if ( _this.index() == $(this).index() ){
755
756						$(this).stop().animate( { 'opacity': '1.0' }, 300, 'linear', function(){} );
757
758						_this.addClass('current');
759
760					}else {
761
762					}
763
764				});
765
766				return false;
767
768			});
769
770		});
771
772		if ( _thumb_items.length > 0 ){
773
774			_thumb_items.eq(0).trigger('click');
775
776		}
777
778	});
779
780
781
782
783
784
785
786	$('.story_acc_type2_cover').each(function(){
787
788		var _type2_cover = $(this);
789
790		var _stroy_items = $('.story_acc_item',$(this));
791
792		var _nav_cover = $(this).prev();
793
794		_stroy_items.each(function(){
795
796			var _story_num = $('.story_acc_item_oc_text_num',$(this));
797
798			_nav_cover.append('<span class="type2_nav_item"><span class="type2_nav_item_text">'+_story_num.text()+'</span></span>');
799
800		});
801
802		var _nav_items = $('.type2_nav_item',_nav_cover);
803
804		_nav_items.each(function(){
805
806			$(this).unbind('click').bind( 'click', function(){
807
808				var offset = $(this).index();
809
810				_stroy_items.not(':eq('+offset+')').css({ 'zIndex': 0 });
811
812				_stroy_items.eq(offset).css({ 'zIndex': 10, 'display': 'block' }).stop().animate( { opacity: 1.0 }, 250, 'linear', function(){
813
814					_stroy_items.not(':eq('+offset+')').css({ 'display': 'none', 'opacity': 0.0 });
815
816				});
817
818				_type2_cover.stop().animate( { height: _stroy_items.eq(offset).height() + 'px' }, 250, 'easeInOutExpo', function(){
819
820				});
821
822			});
823
824		});
825
826		if ( _nav_items.length > 0 ){
827
828			_nav_items.eq(_nav_items.length - 1).trigger('click');
829
830		}
831
832	});
833
834	$(window).unbind('resize.stryscctype2reset').bind( 'resize.stryscctype2reset', function(){
835
836		$('.story_acc_type2_cover').each(function(){
837
838			$(this).stop();
839
840			$(this).height($('.story_acc_item:visible').height());
841
842		});
843
844	});
845
846	$(window).trigger('resize.stryscctype2reset');
847
848
849
850
851
852
853
854
855
856/*
857	$('.story_acc_item').each(function(){
858
859		//return false;
860
861		var _button = $('.story_acc_item_oc',$(this));
862
863		var _cover = $('.story_acc_item_body_cover',$(this));
864
865		var _main = $('.story_acc_item_body_cover2',$(this));
866
867		$.data( $(this).get(0), 'is_open', false );
868
869		var _this = $(this);
870
871		_button.unbind('click').bind( 'click', function(){
872
873			if ( $.data( _this.get(0), 'is_open' ) != false ){
874
875				_cover.stop().animate( { height: '0px' }, 500, 'easeOutExpo', function(){
876
877				});
878
879				_this.removeClass('acc_open');
880
881				$.data( _this.get(0), 'is_open', false );
882
883			}else {
884
885				var main_height = _main.height();
886
887				_cover.stop().animate( { height: main_height + 'px' }, 500, 'easeOutExpo', function(){
888
889					//$(this).css({ height: 'auto' });
890
891				});
892
893				_this.addClass('acc_open');
894
895				$.data( _this.get(0), 'is_open', true );
896
897			}
898
899		});
900
901	});
902
903	$(window).unbind('resize.stryaccreset').bind( 'resize.stryaccreset', function(){
904
905		$('.story_acc_item').each(function(){
906
907			var _button = $('.story_acc_item_oc',$(this));
908
909			var _cover = $('.story_acc_item_body_cover',$(this));
910
911			var _main = $('.story_acc_item_body_cover2',$(this));
912
913			if ( $.data( $(this).get(0), 'is_open' ) != false ){
914
915				_cover.stop().height(_main.height());
916
917			}else {
918
919			}
920
921		});
922
923	});
924
925	$(window).trigger('resize.stryaccreset');
926*/
927
928
929
930
931
932
933
934	$(window).trigger('resize');
935
936
937	//$(window).trigger('scroll');
938
939
940});
941
942
943
944
945
946$(window).bind( 'resize', function(){
947
948
949	//console.log('resize');
950
951
952
953
954	$('#char_list_body_in').each(function(){
955
956		//$(this).css( 'height', '' );
957
958		var _char_body_item = $('.char_list_body_item',$(this));
959
960		var char_body_item_height = 0;
961
962		_char_body_item.each(function(){
963
964			if ( char_body_item_height < $(this).height() ){
965
966				char_body_item_height = $(this).height();
967
968			}
969
970			//console.log($(this).height());
971
972		});
973
974		$(this).height(char_body_item_height);
975
976	});
977
978
979
980
981	$('#dpog_header_cover').each(function(){
982
983		if ( $(window).width() <= 750 ){
984
985			$('#dpog_header').height($(this).height());
986
987			$('#dpog_header_blank').height($(this).height() - $('#dpog_header_in5').height());
988
989		}else {
990
991			$('#dpog_header,#dpog_header_blank').height($(this).height());
992
993		}
994
995	});
996
997
998
999
1000
1001
1002	$('body.home').each(function(){
1003
1004		$('#dpog_header_menu,#dpog_footer_nav').each(function(){
1005
1006			var _nav_item = $('a',$(this));
1007
1008			_nav_item.unbind('click').bind( 'click', function(){
1009
1010				if ( $(this).attr('href').indexOf('#') != -1 ){
1011
1012					var attr_href_split = $(this).attr('href').split('#');
1013
1014					$('#'+attr_href_split[1]).each(function(){
1015
1016						$('#dpog_header_menu_button').each(function(){
1017
1018							if ( $(this).data('is_open') == true ){
1019
1020								$('#dpog_header_menu_button').trigger('click');
1021
1022							}
1023
1024						});
1025
1026						$('body, html').stop().animate( { scrollTop: $(this).offset().top + 'px' }, 750, 'easeInOutExpo' );
1027
1028					});
1029
1030					return false;
1031
1032				}else {
1033
1034					return true;
1035
1036				}
1037
1038			});
1039
1040		});
1041
1042	});
1043
1044
1045
1046
1047	$('.com_modal_box_body_in4').each(function(){
1048
1049		var _body = $('.com_modal_box_body_in5',$(this));
1050
1051		if ( $(this).height() >= _body.height() ){
1052
1053			$(this).css( 'display', 'flex' );
1054
1055		}else {
1056
1057			$(this).css( 'display', '' );
1058
1059		}
1060
1061	});
1062
1063
1064
1065
1066	//$(window).trigger('scroll');
1067
1068
1069});
1070
1071
1072
1073
1074$(window).on( 'load', function(){
1075
1076	$(window).trigger('resize');
1077
1078	//$(window).trigger('scroll');
1079
1080
1081
1082
1083
1084	var _anim01 = $('.anim01_trigger');
1085
1086	if ( _anim01.length > 0 ){
1087
1088		$(window).scroll(function(){
1089
1090			var over_line = parseInt( $(window).scrollTop() + ( $(window).height() * 0.8 ) );
1091
1092			$('.anim01_trigger').each(function(){
1093
1094				if ( over_line > $(this).offset().top ){
1095
1096					$('.anim01_init',$(this)).each(function(){
1097
1098						$(this).addClass('anim01_start');
1099
1100					});
1101
1102					$(this).removeClass('anim01_trigger');
1103
1104				}
1105
1106			});
1107
1108		});
1109
1110		$(window).trigger('scroll');
1111
1112	}
1113
1114
1115
1116	$('#splash_screen_img').each(function(){
1117
1118		var debug_mode = false;
1119
1120		if ( !debug_mode ){
1121
1122			setTimeout(function(){
1123
1124				$('#splash_screen_img').css( 'opacity', 1.0 ).css( 'filter', 'blur(0px)' );
1125
1126				//return false;
1127
1128				setTimeout(function(){
1129
1130					if ( !location.hash ){
1131
1132						$('#launch_top_movie').trigger('click');
1133
1134					}
1135
1136					$('#splash_screen_img').css( 'transition-duration', '0.55s' ).css( 'opacity', 0.0 );
1137
1138					setTimeout(function(){
1139
1140						$('#splash_screen').stop().animate( { opacity: 0.0 }, 750, 'linear', function(){
1141
1142							//$('body').css( 'overflow', 'visible' );
1143
1144							$('#splash_screen').hide();
1145
1146						});
1147
1148					}, 750 );
1149
1150				}, 1250 );
1151
1152			}, 50 );
1153
1154		}else {
1155
1156			$('#splash_screen').hide();
1157
1158		}
1159
1160	});
1161
1162
1163
1164});
1165

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.