PageSourceSearch

https://prism-rush.com/assets/js/common.js?d=180806

js prism-rush.com collected 2026-10-02 19:37:55 UTC 3,573 bytes, 117 lines download raw bytes

1var winw = $(window).width();
2var winh = $(window).height();
3var w_num, h_num, size;
4$(function(){
5	var loc = location.href.split('/');
6	var dir = loc[loc.length-2];
7	$('.nav_'+dir).addClass('now_page');
8
9	$('.page_top').on('click', function(){
10		$('body,html').animate({scrollTop:0}, 800, 'swing');
11	});
12
13	//IE、Edgeでスクロールしたとき背景がガタつくバグの回避
14	if(navigator.userAgent.match(/MSIE/i) || navigator.userAgent.match(/Trident/) || navigator.userAgent.match(/Edge/)) {
15		$('body').on("mousewheel", function () {
16			event.preventDefault();
17			var wd = event.wheelDelta;
18			var csp = window.pageYOffset;
19			window.scrollTo(0, csp - wd);
20		});
21	}
22
23	//twinkle設定
24	var n = 0;
25	for(i=1; i<=2; i++){
26		for(i2=1; i2<=4; i2++){
27			n++;
28			w_num = Math.floor(Math.random() * (winw-50));
29			h_num = Math.floor(Math.random() * (winh/1.3-50));
30			$('.bg_bubble').append('<p class="twinkle0'+i2+' action'+n+'" style="left:'+w_num+'px; top:'+h_num+'px;"></p>');
31		}
32	}
33	function ac(){
34		for(i=1; i<=8; i++){
35			$('.action'+i).delay(i*270).animate({opacity: 1}, 350, function(){
36				$(this).delay(700).animate({opacity: 0}, 350, function(){
37					w_num = Math.floor(Math.random() * (winw-50));
38					h_num = Math.floor(Math.random() * (winh/1.3-50));
39					$(this).css({top:h_num, left:w_num});
40				});
41			});
42		}
43	}
44	ac();
45	setInterval(function(){
46		ac();
47	},3300);
48
49	//bubble設定
50	for(i=1; i<=9; i++){
51		for(i2=1; i2<=5; i2++){
52			size = Math.floor(Math.random() * 100) + 70;
53			w_num = Math.floor(Math.random() * (winw-50));
54			$('.bg_bubble').append('<p class="bubble0'+i2+' top0'+i+'" style="left:'+w_num+'px; width:'+size+'px; height:'+size+'px;"></p>');
55		}
56	}
57
58	//youtubeモーダル
59	$('.modal_youtube').on('click', function(){
60		var yb_ps = $(this).attr('href').split('https://youtu.be/')[1];
61		winw = $(window).width();
62		if(winw < 960){
63			youtubew = winw;
64			youtubeh = winw/16*9;
65		}else{
66			youtubew = 960;
67			youtubeh = 540;
68		}
69		$('.modal_in').css({'width':youtubew,'height':youtubeh});
70		$('.modal_back').stop().fadeIn(400, function(){
71			$('.modal_in').append('<iframe width="'+youtubew+'" height="'+youtubeh+'" src="https://www.youtube.com/embed/'+yb_ps+'?rel=0&autoplay=1" frameborder="0"></iframe>');
72		});
73		$('.modal_in').stop().delay(150).fadeIn(400);
74		$('.modal_close').fadeIn(400);
75		return false;
76	});
77
78	$('.modal_img').on('click', function(){
79		var imgurl = $(this).attr('href');
80		$('.modal_in').css({'width':'auto','height':'auto'});
81		$('.modal_back').stop().fadeIn(400, function(){
82			$('.modal_in').append('<img src="'+imgurl+'" alt="" style="min-width: 960px;">');
83		});
84		$('.modal_in').stop().delay(150).fadeIn(400);
85		$('.modal_close').fadeIn(400);
86		return false;
87	});
88	$('.modal_back').on('click', function(){
89		$(this).stop().fadeOut(400);
90		$('.modal_in').stop().fadeOut(400, function(){
91			$(this).children().remove();
92			$(this).append('<div class="modal_close"></div>');
93		});
94		$('.modal_close').fadeOut(400);
95	});
96	$('.modal_close').on('click', function(){
97		$('.modal_back').stop().fadeOut(400);
98		$('.modal_in').stop().fadeOut(400, function(){
99			$(this).children().remove();
100			$(this).append('<div class="modal_close"></div>');
101		});
102		$(this).fadeOut(400);
103	});
104
105	$('a[href^="#"]').click(function(){
106		var href= $(this).attr('href');
107		var target = $(href == '#' || href == '' ? 'html' : href);
108		var position = target.offset().top - 100;
109		$('html, body').animate({scrollTop:position}, 500, 'swing');
110		return false;
111	});
112
113});
114
115$(window).on('load', function(){
116	$('.wrapper').addClass('load');
117});

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.