PageSourceSearch

https://eugeneweekly.com/wp-content/themes/soup2nuts/assets/js/soup2nuts.js?ver=1778548554

js eugeneweekly.com collected 2026-09-24 08:48:38 UTC 14,574 bytes, 426 lines download raw bytes

1/******/ (function() { // webpackBootstrap
2/******/ 	var __webpack_modules__ = ({
3
4/***/ "./assets/js/src/soup2nuts/soup2nuts.js":
5/*!**********************************************!*\
6  !*** ./assets/js/src/soup2nuts/soup2nuts.js ***!
7  \**********************************************/
8/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9
10"use strict";
11__webpack_require__.r(__webpack_exports__);
12/* harmony import */ var fitvids__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fitvids */ "./node_modules/fitvids/index.js");
13/* harmony import */ var fitvids__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fitvids__WEBPACK_IMPORTED_MODULE_0__);
14/**
15* Eugene Weekly 2018
16* http://eugeneweekly.com
17*
18* Copyright (c) 2018 Nate Bedortha @ OK/No Way
19*/
20
21
22(function (window, undefined) {
23  'use strict';
24  /**
25   * FitVids
26   */
27
28  fitvids__WEBPACK_IMPORTED_MODULE_0___default()(".has-video-hero > .entry-hero");
29  /**
30   * Lazy Loading
31   */
32
33  jQuery('.delayed').each(function () {
34    //console.log( $(this).data( 'delayed-background-image' ) );
35    if (jQuery(this).is('iframe')) {
36      jQuery(this).attr('src', jQuery(this).data('src'));
37    } else {
38      jQuery(this).css('background-image', 'url(' + jQuery(this).data('delayed-background-image') + ')');
39    }
40  });
41  /**
42   * Mobile Nav
43   */
44
45  function hideNav(e) {
46    e.preventDefault();
47    jQuery('body').removeClass('show-nav');
48  }
49
50  jQuery('.menu-toggle').on('click', function () {
51    jQuery('body').removeClass('show-search').toggleClass('show-nav'); //jQuery( '.show-nav #page' ).on( 'click', hideNav( e ) );
52  });
53  /**
54   * Sub-Menu
55   */
56
57  jQuery('.menu-item-more > a').on('click', function (e) {
58    e.preventDefault();
59    jQuery(this).parent('.menu-item-more').toggleClass('show-sub-menu');
60  });
61  /**
62   * Search
63   */
64
65  jQuery('.search-trigger').on('click', function () {
66    jQuery('body').removeClass('show-nav').toggleClass('show-search');
67  });
68})(undefined);
69/**
70 * Share drawer
71 */
72
73
74document.querySelectorAll('.share-drawer__trigger').forEach(function (trigger) {
75  return trigger.addEventListener("click", function (e) {
76    e.preventDefault();
77    document.querySelector('.share-drawer').classList.toggle("show");
78  });
79});
80
81/***/ }),
82
vendor: 3,370 bytes, lines 83-211
83/***/ "./node_modules/fitvids/index.js":
84/*!***************************************!*\
85  !*** ./node_modules/fitvids/index.js ***!
86  \***************************************/
87/***/ (function(module) {
88
89var selectors = [
90  'iframe[src*="player.vimeo.com"]',
91  'iframe[src*="youtube.com"]',
92  'iframe[src*="youtube-nocookie.com"]',
93  'iframe[src*="kickstarter.com"][src*="video.html"]',
94  "object"
95];
96
97var css =
98  ".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";
99
100module.exports = function(parentSelector, opts) {
101  parentSelector = parentSelector || "body";
102  opts = opts || {};
103
104  if (isObject(parentSelector)) {
105    opts = parentSelector;
106    parentSelector = "body";
107  }
108
109  opts.ignore = opts.ignore || "";
110  opts.players = opts.players || "";
111
112  var containers = queryAll(parentSelector);
113  if (!hasLength(containers)) return;
114
115  if (!document.getElementById("fit-vids-style")) {
116    var head = document.head || document.getElementsByTagName("head")[0];
117    head.appendChild(styles());
118  }
119
120  var custom = toSelectorArray(opts.players);
121  var ignored = toSelectorArray(opts.ignore);
122  var ignoredSelector = ignored.length > 0 ? ignored.join() : null;
123  var selector = selectors.concat(custom).join();
124
125  if (!hasLength(selector)) {
126    return;
127  }
128
129  containers.forEach(function(container) {
130    var videos = queryAll(container, selector);
131
132    videos.forEach(function(video) {
133      if (ignoredSelector && video.matches(ignoredSelector)) {
134        return;
135      }
136      wrap(video);
137    });
138  });
139}
140
141function queryAll(el, selector) {
142  if (typeof el === "string") {
143    selector = el;
144    el = document;
145  }
146  return Array.prototype.slice.call(el.querySelectorAll(selector));
147}
148
149function toSelectorArray(input) {
150  if (typeof input === "string") {
151    return input
152      .split(",")
153      .map(trim)
154      .filter(hasLength);
155  } else if (isArray(input)) {
156    return flatten(input.map(toSelectorArray).filter(hasLength));
157  }
158  return input || [];
159}
160
161function wrap(el) {
162  if (/fluid-width-video-wrapper/.test(el.parentNode.className)) {
163    return;
164  }
165
166  var widthAttr = parseInt(el.getAttribute("width"), 10);
167  var heightAttr = parseInt(el.getAttribute("height"), 10);
168
169  var width = !isNaN(widthAttr) ? widthAttr : el.clientWidth;
170  var height = !isNaN(heightAttr) ? heightAttr : el.clientHeight;
171  var aspect = height / width;
172
173  el.removeAttribute("width");
174  el.removeAttribute("height");
175
176  var wrapper = document.createElement("div");
177  el.parentNode.insertBefore(wrapper, el);
178  wrapper.className = "fluid-width-video-wrapper";
179  wrapper.style.paddingTop = aspect * 100 + "%";
180  wrapper.appendChild(el);
181}
182
183function styles() {
184  var div = document.createElement("div");
185  div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + "</style>";
186  return div.childNodes[1];
187}
188
189function hasLength(input) {
190  return input.length > 0;
191}
192
193function trim(str) {
194  return str.replace(/^\s+|\s+$/g, "");
195}
196
197function flatten(input) {
198  return [].concat.apply([], input);
199}
200
201function isObject(input) {
202  return Object.prototype.toString.call(input) === "[object Object]";
203}
204
205function isArray(input) {
206  return Object.prototype.toString.call(input) === "[object Array]";
207}
208
209
210/***/ }),
211
212/***/ "./assets/css/src/soup2nuts.scss":
213/*!***************************************!*\
214  !*** ./assets/css/src/soup2nuts.scss ***!
215  \***************************************/
216/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
217
218"use strict";
219__webpack_require__.r(__webpack_exports__);
220// extracted by mini-css-extract-plugin
221
222
223/***/ }),
224
225/***/ "./assets/css/src/login.scss":
226/*!***********************************!*\
227  !*** ./assets/css/src/login.scss ***!
228  \***********************************/
229/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
230
231"use strict";
232__webpack_require__.r(__webpack_exports__);
233// extracted by mini-css-extract-plugin
234
235
236/***/ }),
237
238/***/ "./assets/css/src/editor.scss":
239/*!************************************!*\
240  !*** ./assets/css/src/editor.scss ***!
241  \************************************/
242/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
243
244"use strict";
245__webpack_require__.r(__webpack_exports__);
246// extracted by mini-css-extract-plugin
247
248
249/***/ })
249
250
251/******/ 	});
252/************************************************************************/
253/******/ 	// The module cache
254/******/ 	var __webpack_module_cache__ = {};
255/******/ 	
256/******/ 	// The require function
257/******/ 	function __webpack_require__(moduleId) {
258/******/ 		// Check if module is in cache
259/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
260/******/ 		if (cachedModule !== undefined) {
261/******/ 			return cachedModule.exports;
262/******/ 		}
263/******/ 		// Create a new module (and put it into the cache)
264/******/ 		var module = __webpack_module_cache__[moduleId] = {
265/******/ 			// no module.id needed
266/******/ 			// no module.loaded needed
267/******/ 			exports: {}
268/******/ 		};
269/******/ 	
270/******/ 		// Execute the module function
271/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
272/******/ 	
273/******/ 		// Return the exports of the module
274/******/ 		return module.exports;
275/******/ 	}
276/******/ 	
277/******/ 	// expose the modules object (__webpack_modules__)
278/******/ 	__webpack_require__.m = __webpack_modules__;
279/******/ 	
280/************************************************************************/
281/******/ 	/* webpack/runtime/chunk loaded */
282/******/ 	!function() {
283/******/ 		var deferred = [];
284/******/ 		__webpack_require__.O = function(result, chunkIds, fn, priority) {
285/******/ 			if(chunkIds) {
286/******/ 				priority = priority || 0;
287/******/ 				for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
288/******/ 				deferred[i] = [chunkIds, fn, priority];
289/******/ 				return;
290/******/ 			}
291/******/ 			var notFulfilled = Infinity;
292/******/ 			for (var i = 0; i < deferred.length; i++) {
293/******/ 				var chunkIds = deferred[i][0];
294/******/ 				var fn = deferred[i][1];
295/******/ 				var priority = deferred[i][2];
296/******/ 				var fulfilled = true;
297/******/ 				for (var j = 0; j < chunkIds.length; j++) {
298/******/ 					if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {
299/******/ 						chunkIds.splice(j--, 1);
300/******/ 					} else {
301/******/ 						fulfilled = false;
302/******/ 						if(priority < notFulfilled) notFulfilled = priority;
303/******/ 					}
304/******/ 				}
305/******/ 				if(fulfilled) {
306/******/ 					deferred.splice(i--, 1)
307/******/ 					var r = fn();
308/******/ 					if (r !== undefined) result = r;
309/******/ 				}
310/******/ 			}
311/******/ 			return result;
312/******/ 		};
313/******/ 	}();
314/******/ 	
315/******/ 	/* webpack/runtime/compat get default export */
316/******/ 	!function() {
317/******/ 		// getDefaultExport function for compatibility with non-harmony modules
318/******/ 		__webpack_require__.n = function(module) {
319/******/ 			var getter = module && module.__esModule ?
320/******/ 				function() { return module['default']; } :
321/******/ 				function() { return module; };
322/******/ 			__webpack_require__.d(getter, { a: getter });
323/******/ 			return getter;
324/******/ 		};
325/******/ 	}();
326/******/ 	
327/******/ 	/* webpack/runtime/define property getters */
328/******/ 	!function() {
329/******/ 		// define getter functions for harmony exports
330/******/ 		__webpack_require__.d = function(exports, definition) {
331/******/ 			for(var key in definition) {
332/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
333/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
334/******/ 				}
335/******/ 			}
336/******/ 		};
337/******/ 	}();
338/******/ 	
339/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
340/******/ 	!function() {
341/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
342/******/ 	}();
343/******/ 	
344/******/ 	/* webpack/runtime/make namespace object */
345/******/ 	!function() {
346/******/ 		// define __esModule on exports
347/******/ 		__webpack_require__.r = function(exports) {
348/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
349/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
350/******/ 			}
351/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
352/******/ 		};
353/******/ 	}();
354/******/ 	
355/******/ 	/* webpack/runtime/jsonp chunk loading */
356/******/ 	!function() {
357/******/ 		// no baseURI
358/******/ 		
359/******/ 		// object to store loaded and loading chunks
360/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
361/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
362/******/ 		var installedChunks = {
363/******/ 			"/assets/js/soup2nuts": 0,
364/******/ 			"assets/css/editor": 0,
365/******/ 			"assets/css/login": 0,
366/******/ 			"assets/css/soup2nuts": 0
367/******/ 		};
368/******/ 		
369/******/ 		// no chunk on demand loading
370/******/ 		
371/******/ 		// no prefetching
372/******/ 		
373/******/ 		// no preloaded
374/******/ 		
375/******/ 		// no HMR
376/******/ 		
377/******/ 		// no HMR manifest
378/******/ 		
379/******/ 		__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };
380/******/ 		
381/******/ 		// install a JSONP callback for chunk loading
382/******/ 		var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
383/******/ 			var chunkIds = data[0];
384/******/ 			var moreModules = data[1];
385/******/ 			var runtime = data[2];
386/******/ 			// add "moreModules" to the modules object,
387/******/ 			// then flag all "chunkIds" as loaded and fire callback
388/******/ 			var moduleId, chunkId, i = 0;
389/******/ 			if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
390/******/ 				for(moduleId in moreModules) {
391/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
392/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
393/******/ 					}
394/******/ 				}
395/******/ 				if(runtime) var result = runtime(__webpack_require__);
396/******/ 			}
397/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
398/******/ 			for(;i < chunkIds.length; i++) {
399/******/ 				chunkId = chunkIds[i];
400/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
401/******/ 					installedChunks[chunkId][0]();
402/******/ 				}
403/******/ 				installedChunks[chunkId] = 0;
404/******/ 			}
405/******/ 			return __webpack_require__.O(result);
406/******/ 		}
407/******/ 		
408/******/ 		var chunkLoadingGlobal = self["webpackChunksoup2nuts"] = self["webpackChunksoup2nuts"] || [];
409/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
410/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
411/******/ 	}();
412/******/ 	
413/************************************************************************/
414/******/ 	
415/******/ 	// startup
416/******/ 	// Load entry module and return exports
417/******/ 	// This entry module depends on other loaded chunks and execution need to be delayed
418/******/ 	__webpack_require__.O(undefined, ["assets/css/editor","assets/css/login","assets/css/soup2nuts"], function() { return __webpack_require__("./assets/js/src/soup2nuts/soup2nuts.js"); })
419/******/ 	__webpack_require__.O(undefined, ["assets/css/editor","assets/css/login","assets/css/soup2nuts"], function() { return __webpack_require__("./assets/css/src/soup2nuts.scss"); })
420/******/ 	__webpack_require__.O(undefined, ["assets/css/editor","assets/css/login","assets/css/soup2nuts"], function() { return __webpack_require__("./assets/css/src/login.scss"); })
421/******/ 	var __webpack_exports__ = __webpack_require__.O(undefined, ["assets/css/editor","assets/css/login","assets/css/soup2nuts"], function() { return __webpack_require__("./assets/css/src/editor.scss"); })
422/******/ 	__webpack_exports__ = __webpack_require__.O(__webpack_exports__);
423/******/ 	
424/******/ })()
425;
426//# sourceMappingURL=soup2nuts.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.