PageSourceSearch

https://www.jbl.com.sg/on/demandware.static/Sites-JB-APAC-NCOM-Sit…/v1790551988158/js/app/002_storefront.js

js jbl.com.sg collected 2026-09-28 06:46:22 UTC 1,194 bytes, 45 lines download raw bytes

1/**
2 * @class app.storefront
3 *
4 * This class will set up an functionality that is needed across the store front
5 *
6 * Currently this class only handles the GeoIP notification and redirect
7 * If more functionality is added, it would make sense to namespace the GeoIP logic within this class
8 */
9
10(function (app, $) {
11
12	var $cache = {};
13	app.storefront = {
14		inflections: {
15			'screen-xs': 0,
16			'screen-sm': 600,
17			'screen-md': 1100,
18			enquire: {
19				'xs': 'screen and (min-width:0px) and (max-width:599px)',
20				'sm': 'screen and (min-width:600px) and (max-width:1099px)',
21				'md': 'screen and (min-width:1100px)'
22			}
23		},
24		init : function () {
25			//Global footer JS;
26			//TODO - possibly move to proper JS file
27			enquire.register(app.storefront.inflections.enquire.xs, {
28				match: function() {
29					$('#footer span[data-toggle="collapse"]').each(function () {
30						$(this).addClass("collapsed");
31					});
32					$('#footer div.collapse').each(function () {
33						$(this).collapse('hide');
34					});
35				},
36				unmatch: function() {
37					$('#footer div.collapse').each(function () {
38						$(this).collapse('show');
39					});
40				}
41			});
42
43		}
44	};
45}(window.app = window.app || {}, jQuery));

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.