PageSourceSearch

https://www.nasluck.co.jp/products/kitchen/common/js/common.js

js nasluck.co.jp collected 2026-10-06 07:46:42 UTC 1,676 bytes, 62 lines download raw bytes

1/* -------------------------------------------------------------------------
2
3	CREATIVE.common
4
5	サイト内で共通のスクリプトを定義
6	※jQuery必須
7	
8
9------------------------------------------------------------------------- */
10
11// グローバル名前空間定義
12var CREATIVE;
13if (!CREATIVE) CREATIVE = {};
14if (!CREATIVE.common) CREATIVE.common = {};
15
16(function (){
17	// グローバル名前空間オブジェクトをローカルオブジェクトに置き換え
18	var ns = CREATIVE.common;
19	var mediaQuery = matchMedia('(max-width: 768px)');
20
21	ns.kitchenOtherProductsSlider = function() {
22		// 現在のページのブランドを取得
23		var pathParts = location.pathname.split('/').filter(Boolean);
24		var brands = ['sespa', 'bellflower', 'riviere', 'paltage', 'puretz'];
25		var currentBrand = brands.find(function(brand) {
26			return pathParts.includes(brand);
27		});
28		
29		// 現在のブランドと同じ項目を削除
30		$('.kitchen_other_products_list_item').each(function() {
31			var logoImg = $(this).find('.kitchen_other_products_contents_logo_image img');
32			var altText = logoImg.attr('alt');
33			if (altText && altText.toLowerCase().includes(currentBrand)) {
34				$(this).remove();
35			}
36		});
37		
38		$(".kitchen_other_products_list").slick({
39			dots: true,
40			arrows: true,
41			autoplay: true,
42			slidesToShow: 3,
43			slidesToScroll: 1,
44			autoplaySpeed: 4000,
45			variableWidth: false,
46			pauseOnHover: false,
47			responsive: [
48				{
49					breakpoint: 769,
50					settings: {
51						slidesToShow: 1
52					}
53				}
54			]
55		});
56	};
57})();
58
59
60$(function(){
61	CREATIVE.common.kitchenOtherProductsSlider();
62});

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.