PageSourceSearch

https://www.studio-alice.co.jp/company/news/js/news.js

js studio-alice.co.jp collected 2026-09-24 09:28:07 UTC 1,225 bytes, 59 lines download raw bytes

1$(window).load(function(){
2	
3	
4	var def_width = 0;
5	var initPC = false, initSP = false;
6	
7	$(window).resize(function() {
8		var w = $(window).width();
9		var x = 751;
10
11		if (def_width == w) {
12			return;
13		} else {
14			def_width = w;
15		}
16
17		if (w > x) {
18			//PC
19			if (!initPC) {
20				initPC = true;
21				setEventPCUser();
22			}
23		} else {
24			//SP
25			if (!initSP) {
26				initSP = true;
27				setEventSPUser();
28			}
29		}
30	}).trigger('resize');
31	
32	function setEventPCUser() {
33	}
34	
35	function setEventSPUser() {
36		
37		//アコーディオン
38		$('#naviList dt').click(function() {
39			$(this).toggleClass("open").next().stop().slideToggle(200,'swing');
40		});
41	}
42	
43	//アコーディオン
44	$('.newsList:first-child, .newsList:nth-child(2)').find("dt").addClass("open");
45	$('.newsList dt').click(function() {
46		$(this).toggleClass("open").next().stop().slideToggle(200,'swing');
47	});
48
49	//アンカー
50	$(document).on("click", "a[href^=\"#\"]" ,function(){
51		var href= $(this).attr("href");
52		var target = $(href == "#" || href == "" ? "html" : href);
53		var position = target.offset().top - 70;
54		$("html, body").animate({scrollTop:position}, 500, "swing");
55		return false;
56	});
57	
58	
59});

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.