PageSourceSearch

https://www.euyansang.com.sg/on/demandware.static/Sites-EYS-Site/-…/v1790229921292/js/slickSliderComponent.js

js euyansang.com.sg collected 2026-09-24 10:47:17 UTC 8,816 bytes, 306 lines download raw bytes

1/******/ (function(modules) { // webpackBootstrap
2/******/ 	// The module cache
3/******/ 	var installedModules = {};
4/******/
5/******/ 	// The require function
6/******/ 	function __webpack_require__(moduleId) {
7/******/
8/******/ 		// Check if module is in cache
9/******/ 		if(installedModules[moduleId]) {
10/******/ 			return installedModules[moduleId].exports;
11/******/ 		}
12/******/ 		// Create a new module (and put it into the cache)
13/******/ 		var module = installedModules[moduleId] = {
14/******/ 			i: moduleId,
15/******/ 			l: false,
16/******/ 			exports: {}
17/******/ 		};
18/******/
19/******/ 		// Execute the module function
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ 		// Flag the module as loaded
23/******/ 		module.l = true;
24/******/
25/******/ 		// Return the exports of the module
26/******/ 		return module.exports;
27/******/ 	}
28/******/
29/******/
30/******/ 	// expose the modules object (__webpack_modules__)
31/******/ 	__webpack_require__.m = modules;
32/******/
33/******/ 	// expose the module cache
34/******/ 	__webpack_require__.c = installedModules;
35/******/
36/******/ 	// define getter function for harmony exports
37/******/ 	__webpack_require__.d = function(exports, name, getter) {
38/******/ 		if(!__webpack_require__.o(exports, name)) {
39/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
40/******/ 		}
41/******/ 	};
42/******/
43/******/ 	// define __esModule on exports
44/******/ 	__webpack_require__.r = function(exports) {
45/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47/******/ 		}
48/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
49/******/ 	};
50/******/
51/******/ 	// create a fake namespace object
52/******/ 	// mode & 1: value is a module id, require it
53/******/ 	// mode & 2: merge all properties of value into the ns
54/******/ 	// mode & 4: return value when already ns object
55/******/ 	// mode & 8|1: behave like require
56/******/ 	__webpack_require__.t = function(value, mode) {
57/******/ 		if(mode & 1) value = __webpack_require__(value);
58/******/ 		if(mode & 8) return value;
59/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60/******/ 		var ns = Object.create(null);
61/******/ 		__webpack_require__.r(ns);
62/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64/******/ 		return ns;
65/******/ 	};
66/******/
67/******/ 	// getDefaultExport function for compatibility with non-harmony modules
68/******/ 	__webpack_require__.n = function(module) {
69/******/ 		var getter = module && module.__esModule ?
70/******/ 			function getDefault() { return module['default']; } :
71/******/ 			function getModuleExports() { return module; };
72/******/ 		__webpack_require__.d(getter, 'a', getter);
73/******/ 		return getter;
74/******/ 	};
75/******/
76/******/ 	// Object.prototype.hasOwnProperty.call
77/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78/******/
79/******/ 	// __webpack_public_path__
80/******/ 	__webpack_require__.p = "";
81/******/
82/******/
83/******/ 	// Load entry module and return exports
84/******/ 	return __webpack_require__(__webpack_require__.s = 337);
85/******/ })
86/************************************************************************/
87/******/ ({
88
89/***/ 337:
90/***/ (function(module, exports) {
91
92function placeholderImage() {
93  var src = $('#PlaceHolderURL').val();
94  $('img').on('error', function () {
95    $(this).attr('src', src);
96    $(this).css('object-fit', 'cover');
97  });
98}
99placeholderImage();
100$('.slick-slider-wrapper').slick({
101  dots: false,
102  infinite: false,
103  slidesToShow: 4,
104  slidesToScroll: 1,
105  autoplay: false,
106  autoplaySpeed: 1600,
107  arrows: true,
108  responsive: [
109    {
110      breakpoint: 767,
111      settings: {
112        arrows: true,
113        slidesToShow: 2,
114        slidesToScroll: 1
115        // centerpadding: 40
116      }
117    },
118    {
119      breakpoint: 991,
120      settings: {
121        arrows: true,
122        slidesToShow: 2,
123        slidesToScroll: 1
124        // centerpadding: 40
125      }
126    }
127  ]
128});
129
130
131$(window).on('load', function () {
132  var TimeInterval = setInterval(() => {
133    $('body').find('.slick-slider-recommendation').each(function () {
134      $(this).slick({
135        dots: false,
136        infinite: false,
137        autoplay: false,
138        speed: 300,
139        slidesToShow: 5,
140        slidesToScroll: 5,
141        responsive: [
142          {
143            breakpoint: 767,
144            settings: {
145              arrows: true,
146              slidesToShow: 2,
147              slidesToScroll: 2,
148              centerpadding: 40
149            }
150          }
151        ]
152      });
153    });
154    if ($('body').find('.slick-slider-recommendation').hasClass('slick-slider')) {
155      clearInterval(TimeInterval);
156    }
157    var lazyloadImages = document.querySelectorAll("img.lazy");
158    if (lazyloadImages) {
159      window.lazyload(lazyloadImages);
160    }
161  }, 100);
162
163  // for recently viewed
164
165  var TimeInterval1 = setInterval(() => {
166    $('body').find('.slick-recently-view').each(function () {
167      $(this).slick({
168        dots: true,
169        infinite: false,
170        speed: 300,
171        autoplay: false,
172        slidesToShow: 5,
173        slidesToScroll: 5,
174        responsive: [
175          {
176            breakpoint: 767,
177            settings: {
178              arrows: true,
179              slidesToShow: 2,
180              slidesToScroll: 2,
181              centerpadding: 40
182            }
183          }
184        ]
185      });
186    });
187
188    if ($('body').find('.slick-recently-view').hasClass('slick-slider')) {
189      clearInterval(TimeInterval1);
190    }
191    var lazyloadImages = document.querySelectorAll("img.lazy");
192    if (lazyloadImages) {
193      window.lazyload(lazyloadImages);
194    }
195  }, 100);
196
197  // for match block
198
199  var TimeInterval2 = setInterval(() => {
200    $('body').find('.slick-match-block').each(function () {
201      $(this).slick({
202        dots: false,
203        infinite: false,
204        speed: 300,
205        autoplay: false,
206        slidesToShow: 5,
207        slidesToScroll: 5,
208        responsive: [
209          {
210            breakpoint: 767,
211            settings: {
212              arrows: false,
213              slidesToShow: 2,
214              slidesToScroll: 2,
215              centerpadding: 40
216            }
217          }
218        ]
219      });
220    });
221
222    if ($('body').find('.slick-match-block').hasClass('slick-slider')) {
223      clearInterval(TimeInterval2);
224    }
225    var lazyloadImages = document.querySelectorAll("img.lazy");
226    if (lazyloadImages) {
227      window.lazyload(lazyloadImages);
228    }
229  }, 100);
230
231  // for customer also bought
232
233  var TimeInterval3 = setInterval(() => {
234    $('body').find('.slick-customer-also-bought').each(function () {
235      $(this).slick({
236        dots: false,
237        infinite: false,
238        speed: 300,
239        autoplay: false,
240        slidesToShow: 5,
241        slidesToScroll: 5,
242        responsive: [
243          {
244            breakpoint: 767,
245            settings: {
246              arrows: false,
247              slidesToShow: 2,
248              slidesToScroll: 2,
249              centerpadding: 40
250            }
251          }
252        ]
253      });
254    });
255
256    if ($('body').find('.slick-customer-also-bought').hasClass('slick-slider')) {
257      clearInterval(TimeInterval3);
258    }
259    var lazyloadImages = document.querySelectorAll("img.lazy");
260    if (lazyloadImages) {
261      window.lazyload(lazyloadImages);
262    }
263  }, 100);
264
265
266  // for cart page recommendation
267  // recently view
268
269  // for recently viewed
270
271  var TimeInterval4 = setInterval(() => {
272    $('body').find('.cart-recently-view').each(function () {
273      $(this).slick({
274        dots: false,
275        infinite: false,
276        speed: 300,
277        slidesToShow: 5,
278        autoplay: false,
279        slidesToScroll: 5,
280        responsive: [
281          {
282            breakpoint: 767,
283            settings: {
284              arrows: false,
285              slidesToShow: 2,
286              slidesToScroll: 2,
287              centerpadding: 40
288            }
289          }
290        ]
291      });
292    });
293
294    if ($('body').find('.cart-recently-view').hasClass('slick-slider')) {
295      clearInterval(TimeInterval4);
296    }
297    var lazyloadImages = document.querySelectorAll("img.lazy");
298    if (lazyloadImages) {
299      window.lazyload(lazyloadImages);
300    }
301  }, 100);
302})
303
304/***/ })
305
306/******/ });

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.