PageSourceSearch

https://www.williscroft.co.uk/wp-content/themes/williscroft/dist/main.js?ver=17

js williscroft.co.uk collected 2026-10-08 23:13:34 UTC 7,217 bytes, 195 lines download raw bytes

vendor: 87 bytes, lines 1-4
1/******/ (() => { // webpackBootstrap
2/******/ 	var __webpack_modules__ = ({
3
4/***/ "./
4js/script.js":
5/*!**********************!*\
6  !*** ./js/script.js ***!
7  \**********************/
8/***/ (() => {
9
10// Returns a function, that, as long as it continues to be invoked, will not
11// be triggered. The function will be called after it stops being called for
12// N milliseconds. If `immediate` is passed, trigger the function on the
13// leading edge, instead of the trailing.
14function debounce(func, wait, immediate) {
15  var timeout;
16  return function () {
17    var context = this,
18        args = arguments;
19
20    var later = function later() {
21      timeout = null;
22      if (!immediate) func.apply(context, args);
23    };
24
25    var callNow = immediate && !timeout;
26    clearTimeout(timeout);
27    timeout = setTimeout(later, wait);
28    if (callNow) func.apply(context, args);
29  };
30}
31
32;
33var loading_icon = '<svg width="42" height="42" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="loading_icon" style="background: none;"><circle cx="50" cy="50" fill="none" stroke="#03417d" stroke-width="8" r="35" stroke-dasharray="164.93361431346415 56.97787143782138" transform="rotate(215.934 50 50)"><animateTransform attributeName="transform" type="rotate" calcMode="linear" values="0 50 50;360 50 50" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animateTransform></circle></svg>';
34jQuery(window).on('load', function () {
35  jQuery('html').removeClass('preload');
36});
37jQuery(document).ready(function () {
38  var width = jQuery(window).width();
39
40  function resiNav() {
41    jQuery(".menu").before("<figure></figure>");
42    jQuery('.sub-menu').prepend('<li class="current_parent"><p></p></li>');
43    var parents = jQuery('.menu-item-has-children');
44
45    for (var i = 0; i < parents.length; i++) {
46      var parentTitle = parents[i].children[0].text;
47      var previousParentTitle = parents[i].children[1].children[0].children[0];
48      previousParentTitle.innerText = parentTitle;
49    }
50
51    jQuery('.menu-header .menu-item-has-children > a').click(function (e) {
52      // if (jQuery(window).width() < 920) {
53      // 	e.preventDefault();
54      // }
55      // console.log(jQuery(this)[0].text);
56      // jQuery(this).parent().toggleClass('open');
57      jQuery(this).next('ul.sub-menu').toggleClass('open');
58    });
59    jQuery('li.current_parent').click(function () {
60      jQuery(this).parent().toggleClass('open');
61    });
62    jQuery('.resi_button, .resi_over, .menu-header figure').click(function () {
63      jQuery('html').toggleClass('js-nav');
64      jQuery('ul.sub-menu').removeClass('open');
65    });
66  }
67
68  resiNav();
69  jQuery('*[data-scroll]').click(function () {
70    var target = jQuery(this).data('scroll');
71    jQuery('html, body').animate({
72      scrollTop: jQuery(target).offset().top - 129
73    }, 300);
74  }); // Remove error message form CF7 when input is clicked
75
76  if (jQuery('.wpcf7').length > 0) {
77    jQuery('.wpcf7 input, .wpcf7 teaxtarea, .wpcf7 select').click(function () {
78      jQuery(this).next('.wpcf7-not-valid-tip').remove();
79    });
80  }
81
82  if (WPURLS.ajaxurl) {}
83
84  jQuery(".home_banner__slider").bxSlider({
85    controls: false,
86    auto: true
87  });
88  document.addEventListener('wpcf7mailsent', function (event) {
89    console.log(event);
90  }, false); // if ( jQuery('body').hasClass('blog') ) {
91  // 	jQuery("#recent-sticky").stick_in_parent({offset_top: 40});
92  // }
93});
94
95/***/ }),
96
97/***/ "./scss/style.scss":
98/*!*************************!*\
99  !*** ./scss/style.scss ***!
100  \*************************/
101/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
102
103"use strict";
104__webpack_require__.r(__webpack_exports__);
105// extracted by mini-css-extract-plugin
106
107
108/***/ })
vendor: 3,244 bytes, lines 108-187
108
109
110/******/ 	});
111/************************************************************************/
112/******/ 	// The module cache
113/******/ 	var __webpack_module_cache__ = {};
114/******/ 	
115/******/ 	// The require function
116/******/ 	function __webpack_require__(moduleId) {
117/******/ 		// Check if module is in cache
118/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
119/******/ 		if (cachedModule !== undefined) {
120/******/ 			return cachedModule.exports;
121/******/ 		}
122/******/ 		// Create a new module (and put it into the cache)
123/******/ 		var module = __webpack_module_cache__[moduleId] = {
124/******/ 			// no module.id needed
125/******/ 			// no module.loaded needed
126/******/ 			exports: {}
127/******/ 		};
128/******/ 	
129/******/ 		// Execute the module function
130/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
131/******/ 	
132/******/ 		// Return the exports of the module
133/******/ 		return module.exports;
134/******/ 	}
135/******/ 	
136/************************************************************************/
137/******/ 	/* webpack/runtime/compat get default export */
138/******/ 	(() => {
139/******/ 		// getDefaultExport function for compatibility with non-harmony modules
140/******/ 		__webpack_require__.n = (module) => {
141/******/ 			var getter = module && module.__esModule ?
142/******/ 				() => (module['default']) :
143/******/ 				() => (module);
144/******/ 			__webpack_require__.d(getter, { a: getter });
145/******/ 			return getter;
146/******/ 		};
147/******/ 	})();
148/******/ 	
149/******/ 	/* webpack/runtime/define property getters */
150/******/ 	(() => {
151/******/ 		// define getter functions for harmony exports
152/******/ 		__webpack_require__.d = (exports, definition) => {
153/******/ 			for(var key in definition) {
154/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
155/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
156/******/ 				}
157/******/ 			}
158/******/ 		};
159/******/ 	})();
160/******/ 	
161/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
162/******/ 	(() => {
163/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
164/******/ 	})();
165/******/ 	
166/******/ 	/* webpack/runtime/make namespace object */
167/******/ 	(() => {
168/******/ 		// define __esModule on exports
169/******/ 		__webpack_require__.r = (exports) => {
170/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
171/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
172/******/ 			}
173/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
174/******/ 		};
175/******/ 	})();
176/******/ 	
177/************************************************************************/
178var __webpack_exports__ = {};
179// This entry need to be wrapped in an IIFE because it need to be in strict mode.
180(() => {
181"use strict";
182/*!*********************!*\
183  !*** ./js/index.js ***!
184  \*********************/
185__webpack_require__.r(__webpack_exports__);
186/* harmony import */ var _scss_style_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scss/style.scss */ "./scss/style.scss");
187/* harmony import */ var _script_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./script.js */ "./js/script.
187js");
188/* harmony import */ var _script_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_script_js__WEBPACK_IMPORTED_MODULE_1__);
189
190
191})();
192
193/******/ })()
194;
195//# sourceMappingURL=main.js.map

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.