PageSourceSearch

https://www.yourforma-anime.com/assets/js/jquery.top.js?e

js yourforma-anime.com collected 2026-10-02 05:48:59 UTC 6,848 bytes, 245 lines download raw bytes

1let mvSwiper;
2const topSwiper=()=>{
3	mvSwiper=new Swiper('#js-mvSwiper',{
4		loop:true,
5		effect:'fade',
6		speed:2000,
7		fadeEffect:{
8			crossFade:true
9		},
10		autoplay:{
11			delay:4750,
12			disableOnInteraction:false,
13			pauseOnMouseEnter:false,
14		},
15		on:{
16			slideChange:function(ev){
17				var ind=ev.realIndex;
18				$(".mv__switcher a").removeClass('is-active');
19				$(".mv__switcher").eq(ind).find('a').addClass('is-active');
20				$("body").removeClass(['mm0','mm1']).addClass('mm'+ind);
21			},
22		}
23	});
24}
25const mv=_num=>mvSwiper.slideToLoop(_num)
26gsap.fromTo(".bgb",{
27	yPercent:0,
28},{
29	yPercent:-20,
30	ease:"none",
31	scrollTrigger:{
32		trigger:"#subContents",
33		start:"top bottom",
34		end:"bottom top",
35		scrub:true,
36	},
37});
38gsap.fromTo(".bgt",{
39	yPercent:0,
40},{
41	yPercent:-40,
42	ease:"none",
43	scrollTrigger:{
44		trigger:"#subContents",
45		start:"top bottom",
46		end:"bottom top",
47		scrub:true,
48	},
49});
50gsap.fromTo(".bgb2",{
51	yPercent:0,
52},{
53	yPercent:-20,
54	ease:"none",
55	scrollTrigger:{
56		trigger:"#subContents2",
57		start:"top bottom",
58		end:"bottom top",
59		scrub:true,
60	},
61});
62gsap.fromTo(".bgt2",{
63	yPercent:0,
64},{
65	yPercent:-40,
66	ease:"none",
67	scrollTrigger:{
68		trigger:"#subContents2",
69		start:"top bottom",
70		end:"bottom top",
71		scrub:true,
72	},
73});
74$(function(){
75	if($("#js-newsLists")[0]){
76		getPosts('posts',1,3).done(function(data,status,xhr){
77			data.forEach((v)=>{
78				var lidate=new Date(v.date);
79				var yy=lidate.getFullYear();
80				var mm=(lidate.getMonth()+1).toString().padStart(2,'0');
81				var dd=lidate.getDate().toString().padStart(2,'0');
82				$("#js-newsLists").append(
83					'<li class="news__list efn">'+
84						'<a href="./news/detail.html?id='+v.id+'" class="news__listLink">'+
85							'<span class="news__listLinkTitle">'+v.title.rendered+'</span>'+
86							'<time class="news__listLinkTime" datetime="'+yy+'-'+mm+'-'+dd+'">'+yy+'.'+mm+'.'+dd+'</time>'+
87						'</a>'+
88					'</li>'
89				);
90			})
91		}).fail(function(){
92			console.log('[ERROR]Failed to get news list');
93		});
94	}
95	if($("#js-movieLists")[0]){
96		getPosts('movie',1,2).done(function(data,status,xhr){
97			data.forEach((v)=>{
98				$("#js-movieLists").append(
99					'<div class="movie__list">'+
100						'<dt class="efn">MOVIE :<small>'+v.title.rendered+'</small></dt>'+
101						'<dd class="efn">'+
102							'<a href="javascript:movie(\''+v.acf.mo_ytid+'\');" class="movie__link js-movieOpen js-ytThumb" data-yt="'+v.acf.mo_ytid+'">'+
103								'<span class="movie__thumb"></span>'+
104								'<span class="play-btn">'+
105									'<span class="play-btn__circle"></span>'+
106									'<span class="play-btn__triangle"></span>'+
107								'</span>'+
108							'</a>'+
109							'<span class="movie__frame"></span>'+
110						'</dd>'+
111					'</div>'
112				);
113			});
114			getYtThumb();
115		}).fail(function(){
116			console.log('[ERROR]Failed to get movie list');
117		});
118	}
119	if($("#js-specialLists")[0]){
120		getPosts('special',1,5).done(function(data,status,xhr){
121			if(data.length){
122				data.forEach((v)=>{
123					var pl='./special/detail.html?id='+v.id;
124					if(v.acf.sp_type=='out'){
125						pl=v.acf.sp_outurl;
126					}
127					var spThumb='./assets/img/common/comingsoon_thumb.jpg';
128					if(v.acf.sp_thumb){
129						spThumb=v.acf.sp_thumb.sizes.large;
130					}
131					$("#js-specialLists").append(
132						'<li class="special__list efn">'+
133							'<p class="special__listThumb"><a href="'+pl+'"'+((v.acf.sp_type=='out')?' target="_blank"':'')+'><img src="'+spThumb+'" alt=""></a><span class="special__listFrame"></span></p>'+
134							'<p class="special__listName">'+v.title.rendered+'</p>'+
135						'</li>'
136					);
137				})
138			}else{
139				$("#special").hide();
140				$("#js-gn_special").addClass('is-soon');
141			}
142		}).fail(function(){
143			console.log('[ERROR]Failed to get special list');
144			$("#special").hide();
145			$("#js-gn_special").addClass('is-soon');
146		});
147	}
148	if($("#js-onairLists")[0]){
149		getPost('pages',91).done(function(data,status,xhr){
150			var onairHtml='';
151			if(data.acf.onair_lists){
152				data.acf.onair_lists.forEach((v)=>{
153					onairHtml += '<div class="onair__list">';
154					if(v.onair_list_tvname && v.onair_list_tvname!=''){
155						onairHtml += '<dt class="efn">'+v.onair_list_tvname+'</dt>';
156					}
157					if(v.onair_list_date && v.onair_list_date!=''){
158						onairHtml += '<dd class="efn">'+v.onair_list_date+'</dd>';
159					}
160					onairHtml += '</div>';
161				});
162				$("#js-onairLists").append(onairHtml);
163			}
164		}).fail(function(){
165			console.log('[ERROR]Failed to get onair list')
166		});
167	}
168});
169//Intersection observer
170const section_option={
171	threshold:0,
172	rootMargin:'-49% 0px -50% 0px',
173}
174menus.forEach((v)=>{
175	if(v[2]){
176		var sc=v[1];
177		if(v[1]=='top'){
178			sc='mv';
179		}
180		var section_target=document.getElementById(sc);
181		var section_observer=new IntersectionObserver(([{isIntersecting}])=>{
182			if(isIntersecting){
183				$(".js-topCont").removeClass('is-active');
184				$("#js-gn_"+v[1]).addClass('is-active');
185			}
186		},section_option);
187		section_observer.observe(section_target);
188	}
189});
190
191$(window).on('load',function(){
192	var hs=location.hash;
193	if((hs && $(hs)[0])||hs=='#skip'){
194		if(hs=='#skip'){
195			hs='#top';
196		}
197		$(".mv__switcher").eq(0).find('a').addClass('is-active');
198		$("body").addClass('is-load');
199		$('body,html').animate({scrollTop:$(hs).offset().top+'px'},10);
200		$("#loading").fadeOut(1000);
201		$(".mv__scroll").fadeIn(500);
202		topSwiper();
203	}else{
204		var mvHeight=$("#mv").outerHeight();
205		var wHeight=$(window).innerHeight();
206		var wWidth=$(window).innerWidth();
207		if(wWidth>=768){
208			$('body,html').stop(true,false).animate({scrollTop:'0px'},10);
209			$("#loading").delay(500).fadeOut(1000,'linear',function(){
210				setTimeout(()=>{
211					wWidth=$(window).innerWidth();
212					mvHeight=$("#mv").outerHeight();
213					wHeight=$(window).innerHeight();
214					var lHeight=$(".mv__logoset").innerHeight();
215					$('body,html').stop(true,false).animate({scrollTop:(mvHeight*0.5-(wHeight-lHeight))+'px'},1500,'easeInOutQuart',function(){
216						$("body").addClass('is-load');
217					});
218					$(".mv__switcher").eq(0).find('a').addClass('is-active');
219				},500);
220				setTimeout(()=>{
221					$(".mv__scroll").fadeIn(500);
222					topSwiper();
223				},3000);
224			});
225		}else{
226			$('body,html').animate({scrollTop:0},10);
227			$(".mv__switcher").eq(0).find('a').addClass('is-active');
228			$("#loading").delay(500).fadeOut(1000,'linear',function(){
229				$("body").addClass('is-load');
230				$(".mv__scroll").fadeIn(500);
231				topSwiper()
232			});
233		}
234	}
235});
236$(window).on('load resize scroll',function(){
237	var wHeight=$(window).innerHeight();
238	var scrTop=$(window).scrollTop();
239	$(".efn").each(function(){
240		var pos=$(this).offset().top;
241		if(scrTop>pos-wHeight+wHeight/4){
242			$(this).addClass("efs");
243		}
244	});
245})

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.