PageSourceSearch

https://sukasuka-anime.com/core_sys/images/others/js/index.js

js sukasuka-anime.com collected 2026-10-02 07:20:59 UTC 3,403 bytes, 120 lines download raw bytes

1var videoId = '4d4MQhOPzdw';	//Youtube再生対象ビデオID
2var intervalDay = 0;			//自動再生間隔日数(0で常に再生/-1で常に自動非再生)
3$(function() {
4	$("#skip_button,#op_area").on("click", function() {
5		showMain();
6	});
7
8	$("#play_button,#play_button2").on("click", function() {
9		if(YPlayer._ObjList[videoId]
10		&& YPlayer._ObjList[videoId].player) {
11			$("#skip_button").show();
12			$("#op_area").show();
13			$("#top_contents").hide();
14
15			YPlayer._ObjList[videoId].player.seekTo(0, true);
16			YPlayer._ObjList[videoId].player.playVideo();
17		}else{
18			openingMovie();
19			$("#skip_button").show();
20			$("#op_area").show();
21			$("#top_contents").hide();
22		}
23	});
24
25	function openingMovie() {
26		playerObj = YPlayer.setPlayer({
27			 'target': 'op_movie_area'
28			,'videoID': videoId
29			,'isUseControl': true
30			,'isAutoPlay': true
31			,'callback': showMain
32			,'autoHide': 1			//コントロールの自動非表示(2:プログレスバーのみ非表示、1:自動非表示、0:常に表示)
33			,'player': {
34				 'width': 960
35				,'height': 540
36				,'quality': 'default'
37			}
38		,'startVolume': 30	//初期音量
39		});
40		YPlayer.create();
41		$("#op_area").show();
42	}
43
44	function showMain() {
45		YPlayer.stopVideo(videoId);
46		$("#skip_button").hide();
47		$("#op_area").fadeOut(500);
48		$("#top_contents").show();
49	}
50
51	function onMovie() {
52		$("#loading").fadeOut(1000);
53		$("#top_contents").hide();
54
55		var ref = document.referrer;
56		var domain = location.hostname;
57		if(ref != ""
58		&& ref != "http://"+domain && ref != "http://"+domain+"/" && ref != "http://"+domain+"/index.html"
59		&& ref != "https://"+domain && ref != "https://"+domain+"/" && ref != "https://"+domain+"/index.html"
60		&& (ref.indexOf("http://"+domain)===0 || ref.indexOf("https://"+domain)===0)
61		) {
62			showMain();
63		} else {
64			var saveVideoId = getMyCookie('save_video');
65			var lastPlayDate = Number(getMyCookie('last_play_date'));
66			if(isNaN(lastPlayDate)) {
67				lastPlayDate = 0;
68			}
69
70			var now = new Date();
71			var nowValue = now.getFullYear()*1000+(now.getMonth()+1)*100+now.getDate();
72
73			if(YPlayer._isUseIframe
74			&& intervalDay >= 0
75			&& (lastPlayDate+intervalDay <= nowValue || saveVideoId !== videoId)) {
76				var noMovieList = [
77					 'Android', 'iPhone', 'iPad', 'iPod', 'KDDI', 'UP.Browser', 'DoCoMo', 'FOMA'
78					,'J-PHONE', 'Vodafone', 'SoftBank', 'NetFront'
79					,'DDIPOCKET', 'WILLCOM', 'Mobile', 'Phone', 'BlackBerry', 'SymbianOS'
80//					,'FireFox'
81				];
82				var noMovieRegObj = new RegExp(noMovieList.join('|'), 'i');
83//				if(noMovieRegObj.test(navigator.userAgent)) {
84				if(false) {
85					showMain();
86				} else {
87					setMyCookie('save_video', videoId);
88					setMyCookie('last_play_date', nowValue);
89
90					openingMovie();
91				}
92			} else {
93				showMain();
94			}
95		}
96
97	}
98
99	$(window).on("load", function() {
100		onMovie();
101	});
102
103	function getMyCookie(inkey) {
104		key=inkey+"=";
105		tmp = document.cookie;
106		pos = tmp.indexOf(key);
107		if(pos == -1) {
108			return null;
109		} else {
110			sepPos = tmp.indexOf(";", pos + key.length);
111			return unescape(tmp.substring(pos + key.length, sepPos));
112		}
113	}
114
115	function setMyCookie(key, val) {
116		date = new Date();
117		date.setTime(date.getTime()+1000*60*60*24*365);
118		document.cookie=key+"="+escape(val)+"; expires=" + date.toGMTString();
119	}
120});

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.