PageSourceSearch

http://whiteeeen.com/wp-content/themes/whiteeeen_sp/js/index.js

js whiteeeen.com collected 2026-10-04 05:33:03 UTC 3,022 bytes, 119 lines download raw bytes

1// JavaScript Document
2
3
4$(function(){
5	
6	// QandAトグル
7	$('.toggle-click').click(function(){	
8		$(this).next().slideToggle( 'fast' );
9	}); 
10	
11	
12	//SP-memu closeボタン
13	var menuBtn = $(".nav-button-sp img").attr("src");
14	if(menuBtn == "common/img/sp_menu.png"){
15		$(".nav-button-sp").toggle(
16			function(){
17				$(".nav-button-sp img").attr("src","http://whiteeeen.com/wp-content/themes/whiteeeen_sp/img//menu_sp_close.png");
18			},
19			function(){
20				$(".nav-button-sp img").attr("src","http://whiteeeen.com/wp-content/themes/whiteeeen_sp/img//menu_sp.png");
21			}
22		);
23	} else {
24		$(".nav-button-sp").toggle(
25			function(){
26				$(".nav-button-sp img").attr("src","http://whiteeeen.com/wp-content/themes/whiteeeen_sp/img//menu_sp_close.png");
27			},
28			function(){
29				$(".nav-button-sp img").attr("src","http://whiteeeen.com/wp-content/themes/whiteeeen_sp/img//menu_sp.png");
30			}
31		);
32		
33	}
34	
35	
36	// discography menuトグル
37	$('.menu-item-has-children').each(function(){
38		$(this).find('a').first().on('click', function() {
39			var locationHref = location.href;
40			if(locationHref.indexOf('/category/discography') == -1){
41				$(this).next().slideToggle(100);
42			}
43		});
44	});
45	
46	//contents枠の右上にロゴを表示
47	if(location.href != "http://whiteeeen.com/"){
48		$('.contents').append('<div class="eye"><img src="/wp-content/themes/whiteeeen/img/bg_contents.png"></div>');
49	}
50	
51});
52
53
54//ページの一番上へボタン設置
55jQuery.event.add(window,"load",function(){
56		
57	$('body').append('<div class="to-top"></div>');
58	
59	setTimeout(function(){
60		
61		var speed = 500;
62		var fadePos = 500;
63		var footerH = parseInt($('#footer').height());
64		var windowH = parseInt($(window).height());
65		var footerOffset = $('#footer').offset();
66		var footerOffsetTop = parseInt(footerOffset.top);	
67		var scTop = parseInt($('body').scrollTop());
68		
69		if(scTop > fadePos){
70			$('.to-top').fadeIn();
71		}
72		
73		$(window).scroll(function(){
74			footerOffset = $( "#footer" ).offset();
75			footerOffsetTop = footerOffset.top;	
76			scTop = $('body').scrollTop();
77			if(scTop > speed){
78				$('.to-top').fadeIn();
79			} else {
80				$('.to-top').fadeOut();
81			}
82		
83			var bottomPos = (windowH+scTop)-footerOffsetTop;
84			
85			if(bottomPos > 0){
86				$('.to-top').css({"bottom": bottomPos+'px'});
87			} else {
88				$('.to-top').css({"bottom": 0});
89			}
90		});
91		
92		$('.to-top').click(function(){
93			$("html, body").animate({scrollTop:0}, speed, "swing");
94			return false;
95		});
96		
97	},2000);
98});
99
100
101//Videos PCモーダルで出す
102$(document).ready(function(){
103	$(".inline").colorbox({inline:true, width:"600px"});
104});
105
106
107//スマホ判別
108$.isMobile = CheckUserAgent();
109
110function CheckUserAgent(){
111	var agent = navigator.userAgent;
112 
113	if(agent.search(/iPhone/) != -1 || agent.search(/iPad/) != -1 || agent.search(/iPod/) != -1 || agent.search(/Android/) != -1){
114		$('body').addClass('isMobile');
115		return true;
116	}
117	return false;
118}
119

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.