PageSourceSearch

https://www.minet.jp/wp-content/themes/minet_v1.1/js/single.js?ver=1.0.1

js minet.jp collected 2026-10-02 10:05:28 UTC 2,623 bytes, 109 lines download raw bytes

1$(function () {
2	/*
3	SP用スクロール
4	*/
5
6
7	var $window = $(window),
8		window_width;
9
10	$window.on("load resize", function () {
11		news_scroll();
12	})
13
14	/*
15	スティッキヘッダー
16	*/
17	// $('.toolnav').each(function(){
18	// 	var $toolnav = $(this),
19	// 		toolnav_top = $('.content').offset().top;
20
21	// 		$toolnavClone = $toolnav.contents().clone(true);
22
23	// 		$toolnavCloneContainer = $('<div class="toolnav sticky"></div>');
24
25	// 		$toolnavCloneContainer.append($toolnavClone);
26
27	// 		$toolnavCloneContainer.appendTo('body');
28
29	// 		//console.log($toolnavCloneContainer);
30
31
32	// 	$window.on('scroll',$.throttle(1000/15,function(){
33
34	// 		if($window.scrollTop()>toolnav_top){
35	// 			$toolnavCloneContainer.stop().fadeIn(200);
36	// 		}else{
37	// 			$toolnavCloneContainer.stop().fadeOut(200);
38	// 		}
39	// 	}))
40
41	// 	$window.trigger('scroll');
42	// })
43
44
45	function news_scroll() {
46
47		window_width = $window.outerWidth();
48		var $single_relatedPosts = $('.singlePage__related-posts-inner');
49
50		if (window_width <= 640) {
51			var $post_item = $single_relatedPosts.find('.singlePage__related-posts-item'),
52				post_item_count = $post_item.length,
53				post_item_width = $post_item.outerWidth(),
54				post_item_margin = parseInt($post_item.css("marginRight")),
55				content_size = post_item_width + post_item_margin * 2;
56
57
58
59			$single_relatedPosts.css({ "width": post_item_count * content_size + "px" });
60		} else {
61			$single_relatedPosts.attr("style", "");
62		}
63
64
65	}
66
67	/*
68	TOOLページスクロール用
69	*/
70	var $toolSingleImage_scroll = $('.toolSingleImage-scroll');
71	$toolSingleImage_scroll.on('click', function (e) {
72		e.preventDefault();
73		var $content = $('.content');
74
75		var scroll = $content.offset().top;
76
77		$("html,body").animate({ scrollTop: scroll + 'px' }, 200, "swing");
78		//console.log(top)
79		//$window.animate({scrollTop:top},500);
80	})
81
82	function slide_scroll() {
83
84		window_width = $window.outerWidth();
85		var $slide_content = $('.singleBrand-product .slide-content');
86
87		if (window_width <= 640) {
88			var $news_item = $slide_content.find('.slide-content-item'),
89				news_item_count = $news_item.length,
90				news_item_width = $news_item.outerWidth(),
91				news_item_margin = parseInt($news_item.css("marginLeft")) + parseInt($news_item.css("marginRight")),
92				content_size = news_item_width + news_item_margin;
93
94			$news_item.each(function () {
95				if ($(this).css("display") == "none") {
96					news_item_count = news_item_count - 1;
97				}
98			})
99			$slide_content.css({ "width": news_item_count * content_size + "px" });
100			//console.log(news_item_count)
101
102		} else {
103			$slide_content.attr("style", "");
104		}
105	}
106
107
108
109})

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.