PageSourceSearch

https://doctor-x-movie.jp/js/home.js

js doctor-x-movie.jp collected 2026-10-01 06:11:32 UTC 5,742 bytes, 225 lines download raw bytes

1function sleep(ms) {
2  return new Promise(function(resolve) { 
3    setTimeout(function() { 
4      resolve()
5    }, ms)
6})
7}
8
9window.onload = function() {
10  $('.wrap').addClass('is-show');
11  $(".js-loading").delay(300).fadeOut(500,function(){
12    $(this).remove();
13    sleep(300)
14    .then(function() {
15      $('.mainCopy_txt').addClass('is-show');
16      return sleep(1000)
17    }).then(function() {
18      $('.mainLogo').addClass('is-show');
19       return sleep(500)
20    }).then(function() {
21      $('.roadshow').addClass('is-show');
22      $('.billing').addClass('is-show');
23      $('.homeBnr_wrap').addClass('is-show');
24    })
25  });
26};
27
28
29
30
31$(function(){
32
33//禁止処理
34document.oncontextmenu = function(){ return false; };
35document.body.oncontextmenu = "return false;"
36
37document.onselectstart = function(){ return false; };
38document.onmousedown = function(){ return false; };
39document.body.onselectstart = "return false;"
40document.body.onmousedown = "return false;"
41
42//動画再生(中ページTRAILERボタン)
43$(document).ready(function(){
44  $('.js-trailer').modaal({type: 'iframe',overlay_opacity: '1.0',fullscreen: 'true'});
45});
46
47$('.js-hover').easyRollover({
48	suffix: '_off.',
49	suffix_replace: '_on.'
50});
51
52
53$(document).ready(function() {
54  $('.js-modal').modaal({
55    type: 'inline',
56    start_open: true, // ページロード時に表示する
57    animation_speed: 800,
58  });
59});
60
61
62$(document).ready(function() {
63  $('.js-modal2').modaal({
64    type: 'inline',
65    start_open: false, // ページロード時に表示する
66    animation_speed: 100,
67  });
68});
69
70
71//ムビチケ開閉
72$('#mvck_online').on('click', function() {
73  $('#mvckAll').toggleClass('is-show');
74});
75
76//ムビチケCLOSEボタン
77$('#mvckClose').on('click', function() {
78    $('#mvckAll').removeClass('is-show');
79});
80
81
82//ナビゲーション開閉
83$('.navbar_toggle').on('click', function() {
84  $('.nav_btn').toggleClass('is-open');
85		$('.navbar_toggle_icon').toggleClass('is-open');
86  $('.gnav').toggleClass('is-show');
87  $(this).toggleClass('open');
88});
89
90//navi内他サイト、アンカーリンクなどのリンククリック時にナビゲーションを閉じる
91$('.gnavCloseLink').on('click', function() {
92    $('.navbar_toggle').trigger('click');
93});
94
95
96
97
98$('a[href^="#"]').on('click',function(){
99 var speed = 700;
100 var href= $(this).attr("href");
101 var target = $(href === "#" || href === "" ? 'html' : href);
102 var position = (target.offset().top);
103 $('body,html').animate({scrollTop:position}, speed, 'swing');
104 return false;
105});
106 
107}); // $(function() end
108
109$(document).ready(function() {
110  var pagetop = $('.pagetop');
111  pagetop.hide();
112    $(window).scroll(function () {
113       if ($(this).scrollTop() > 100) {
114            pagetop.fadeIn();
115       } else {
116            pagetop.fadeOut();
117            }
118       });
119       pagetop.click(function () {
120           $('body, html').animate({ scrollTop: 0 }, 500);
121              return false;
122   });
123});
124
125
126jQuery(function() {
127
128var footer = $('.footer').innerHeight(); // footerの高さを取得
129
130window.onscroll = function () {
131  var point = window.pageYOffset; // 現在のスクロール地点 
132  var docHeight = $(document).height(); // ドキュメントの高さ
133  var dispHeight = $(window).height(); // 表示領域の高さ
134
135  if(point > docHeight-dispHeight-footer){ // スクロール地点>ドキュメントの高さ-表示領域-footerの高さ
136    $('.pc_Parallax').addClass('is-hidden'); //footerより下にスクロールしたらis-hiddenを追加
137  }else{
138    $('.pc_Parallax').removeClass('is-hidden'); //footerより上にスクロールしたらis-hiddenを削除
139  }
140};
141});
142
143//動画再生(中ページTRAILERボタン)
144$(document).ready(function(){
145  $('.js-trailer').modaal({type: 'iframe',start_open: false, fullscreen: true, background: '#fdbcc3'});
146});
147
148//コメント
149$(document).ready(function(){
150  $('.js-comment').modaal({type: 'iframe',overlay_opacity: '1.0',fullscreen: 'true', background: '#530103'});
151});
152
153/*=====================================================
154meta: {
155  title: "jquery-opacity-rollover.js",
156  version: "2.1",
157  copy: "copyright 2009 h2ham ([email protected])",
158  license: "MIT License(http://www.opensource.org/licenses/mit-license.php)",
159  author: "THE HAM MEDIA - http://h2ham.seesaa.net/",
160  date: "2009-07-21"
161  modify: "2009-07-23"
162}
163=====================================================*/
164(function($) {
165	
166	$.fn.opOver = function(op,oa,durationp,durationa){
167		
168		var c = {
169			op:op? op:1.0,
170			oa:oa? oa:0.6,
171			durationp:durationp? durationp:'fast',
172			durationa:durationa? durationa:'fast'
173		};
174		
175
176		$(this).each(function(){
177			$(this).css({
178					opacity: c.op,
179					filter: "alpha(opacity="+c.op*100+")"
180				}).hover(function(){
181					$(this).fadeTo(c.durationp,c.oa);
182				},function(){
183					$(this).fadeTo(c.durationa,c.op);
184				})
185		});
186	},
187	
188	$.fn.wink = function(durationp,op,oa){
189
190		var c = {
191			durationp:durationp? durationp:'slow',
192			op:op? op:1.0,
193			oa:oa? oa:0.2
194		};
195		
196		$(this).each(function(){
197			$(this)	.css({
198					opacity: c.op,
199					filter: "alpha(opacity="+c.op*100+")"
200				}).hover(function(){
201				$(this).css({
202					opacity: c.oa,
203					filter: "alpha(opacity="+c.oa*100+")"
204				});
205				$(this).fadeTo(c.durationp,c.op);
206			},function(){
207				$(this).css({
208					opacity: c.op,
209					filter: "alpha(opacity="+c.op*100+")"
210				});
211			})
212		});
213	}
214	
215})(jQuery);
216
217// opacity-rollover
218
219(function($) {
220$(function() {
221	$('.over').wink('100');
222	$('.over').css("cursor", "pointer");
223});
224})(jQuery);
225

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.