PageSourceSearch

https://kidsdesignaward.jp/js/user/common.js

js kidsdesignaward.jp collected 2026-10-01 11:51:54 UTC 1,004 bytes, 56 lines download raw bytes

1/**
2 * user/common.js
3 * ユーザー側の共通JS
4 *
5 * @returns
6 */
7
8$( function()
9{
10	$( '#nav li:has(ul)' ).doubleTapToGo();
11});
12
13$(function(){
14	$('#nav li a').each(function(){
15		var $href = $(this).attr('href');
16		if(location.href.match($href)) {
17			$(this).addClass('active');
18		} else {
19			$(this).removeClass('active');
20		}
21	});
22});
23
24$(".hover").mouseleave(
25	function () {
26		$(this).removeClass("hover");
27	}
28);
29
30/**
31 * スクロールヘッダー
32 * @returns
33 */
34$(window).on('scroll', function() {
35    $('#header').toggleClass('fixed', $(this).scrollTop() > 50);
36});
37
38/**
39 * サムネイル
40 * @returns
41 */
42$(function() {
43$('.single-item').slick({
44          infinite: true,
45          dots:true,
46          slidesToShow: 1,
47          autoplay:true, //自動再生
48          responsive: [{
49               breakpoint: 480,
50                    settings: {
51                         centerMode: false,
52               }
53          }]
54     });
55});
56

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.