vendor: 4,194 bytes, lines 1-89
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 = "./src/works-page.js"); 85 /******/ }) 86 /************************************************************************/ 87 /******/ ({ 88 89
89/***/ "./src/scripts/watch-invert-scroll.js": 90 /*!********************************************!*\ 91 !*** ./src/scripts/watch-invert-scroll.js ***! 92 \********************************************/ 93 /*! no static exports found */ 94 /***/ (function(module, exports) { 95 96 eval("function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n$(function () {\n var elements = $(\".scroll-loop\");\n $(elements).each(function (index) {\n var $this = $(this);\n var context = this;\n var target = $this.data(\"invert-scroll\");\n var contentHeight = 0;\n\n var watchHeaderHeight = function watchHeaderHeight() {\n var headerHeight = $(\"#header-wrap\").height();\n contentHeight = $(window).height() - headerHeight;\n $this.height(isResponsive() ? \"auto\" : \"\".concat(contentHeight, \"px\"));\n };\n\n if (index === 0) {\n $this.addClass(\"active\");\n }\n\n var disableScroll = false,\n scrollHeight = 0,\n scrollPos = 0,\n clonesHeight = 0;\n\n var clones = function clones() {\n return context.querySelectorAll(\".is-clone\");\n };\n\n function getScrollPos(elem) {\n return (elem.pageYOffset || elem.scrollTop) - (elem.clientTop || 0);\n }\n\n function setScrollPos(pos, elem) {\n elem.scrollTop = pos;\n $(elem).attr(\"data-prev-pos\", pos);\n }\n\n function getClonesHeight(array) {\n var height = 0;\n\n for (var i = 0; i < clones().length; i += 1) {\n height = height + array[i].offsetHeight;\n }\n\n return height;\n }\n\n function reCalc() {\n watchHeaderHeight();\n\n if (!isResponsive()) {\n initClones();\n }\n\n scrollPos = getScrollPos(context);\n scrollHeight = context.scrollHeight;\n clonesHeight = getClonesHeight(clones());\n\n if (scrollPos <= 0) {\n setScrollPos(1, context); // Scroll 1 pixel to allow upwards scrolling\n }\n }\n\n function scrollUpdate() {\n if (!isResponsive()) {\n if (!disableScroll) {\n scrollPos = getScrollPos(context);\n\n if (clonesHeight + scrollPos >= scrollHeight) {\n // Scroll to the top when youâve reached the bottom\n setScrollPos(1, context); // Scroll down 1 pixel to allow upwards scrolling\n\n disableScroll = true;\n } else if (scrollPos <= 0) {\n // Scroll to the bottom when you reach the top\n setScrollPos(scrollHeight - clonesHeight, context);\n disableScroll = true;\n }\n }\n\n if (!$(target).hasClass(\"active\") && $this.hasClass(\"active\")) {\n var scrollTop = getScrollPos(context);\n var prevScrollPos = parseInt($this.attr(\"data-prev-pos\"));\n var walk = Math.abs(scrollTop - prevScrollPos);\n var isDown = prevScrollPos < scrollTop;\n $this.attr(\"data-prev-pos\", scrollTop);\n var valTop = $(target).scrollTop() > 0 ? $(target).scrollTop() : scrollHeight - clonesHeight;\n var targetScrollPos = isDown ? valTop - walk : valTop + walk;\n setScrollPos(targetScrollPos, $(target)[0]);\n }\n\n if (disableScroll) {\n // Disable scroll-jumping for a short time to avoid flickering\n window.setTimeout(function () {\n disableScroll = false;\n }, 40);\n }\n }\n }\n\n $this.attr(\"data-prev-pos\", 1);\n\n var isResponsive = function isResponsive() {\n var windowWidth = $(window).width();\n return windowWidth <= 768;\n };\n\n var removeAllClones = function removeAllClones() {\n $this.find(\".is-clone\").remove();\n };\n\n var cleanActiveElement = function cleanActiveElement() {\n var sibblings = _toConsumableArray($this.parent().children());
96\n\n sibblings.forEach(function (child, i) {\n if (i !== index) {\n $(child).removeClass(\"active\");\n }\n });\n };\n\n var initClones = function initClones() {\n removeAllClones();\n\n var children = _toConsumableArray($this.children());\n\n var clonesAmount = Math.ceil(contentHeight / children[0].clientHeight);\n var childrenClone = [];\n var i = 0;\n\n while (clonesAmount-- > 0) {\n if (i === children.length) {\n i = 0;\n }\n\n var clone = $(children[i]).clone(true);\n clone.addClass(\"is-clone\");\n childrenClone.push(clone);\n i++;\n }\n\n $this.append(childrenClone);\n var targetId = \"col\".concat(index + 1, \"-start-tile\");\n $($this.children()[0]).prop(\"id\", targetId); // const target = $this.find(`#${targetId}`);\n // target[0].scrollIntoView({ block: \"start\" });\n };\n\n var init = function init() {\n reCalc();\n context.addEventListener(\"scroll\", function () {\n window.requestAnimationFrame(scrollUpdate);\n\n if (!$this.hasClass(\"active\")) {\n cleanActiveElement();\n $this.addClass(\"active\");\n }\n }, false);\n window.addEventListener(\"resize\", function () {\n if (!isResponsive()) {\n window.requestAnimationFrame(reCalc);\n }\n }, false);\n $this.on(\"mouseenter\", function () {\n cleanActiveElement();\n $this.addClass(\"active\");\n });\n $this.on(\"mouseleave\", function () {\n $this.removeClass(\"active\");\n });\n };\n\n init();\n });\n});\n\n//# sourceURL=webpack:///./src/scripts/watch-invert-scroll.js?"); 97 98 /***/ }), 99 100
100/***/ "./src/scripts/works.js": 101 /*!******************************!*\ 102 !*** ./src/scripts/works.js ***! 103 \******************************/ 104 /*! no static exports found */ 105 /***/ (function(module, exports) { 106 107 eval("$(function () {\n var imageFilter = $(\".works-page .filters__input#byImageFilter\");\n\n function toggleContent(elem) {\n var isChecked = $(elem).prop(\"checked\");\n var value = $(elem).data(\"filter-value\");\n var selector = \".works-page [data-filter=\\\"\".concat(value, \"\\\"]\");\n\n if (isChecked) {\n $(selector).fadeIn({\n duration: \"fast\"\n });\n } else {\n $(selector).fadeOut({\n duration: \"fast\"\n });\n }\n }\n\n function handleFilters() {\n var vWidth = $(window).width();\n\n if (vWidth <= 768) {\n imageFilter.prop(\"checked\", true);\n toggleContent(imageFilter);\n }\n }\n\n handleFilters();\n $(window).on(\"resize\", handleFilters);\n});\n$(window).on(\"load\", function () {\n setTimeout(function () {\n $(\"html\").scrollTop(0);\n }, 0);\n});\n\n//# sourceURL=webpack:///./src/scripts/works.js?"); 108 109 /***/ }), 110 111
111/***/ "./src/works-page.js": 112 /*!***************************!*\ 113 !*** ./src/works-page.js ***! 114 \***************************/ 115 /*! no exports provided */ 116 /***/ (function(module, __webpack_exports__, __webpack_require__) { 117 118 "use strict"; 119 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scripts_watch_invert_scroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scripts/watch-invert-scroll */ \"./src/scripts/watch-invert-scroll.js\");\n/* harmony import */ var _scripts_watch_invert_scroll__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_scripts_watch_invert_scroll__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _scripts_works__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scripts/works */ \"./src/scripts/works.js\");\n/* harmony import */ var _scripts_works__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_scripts_works__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n//# sourceURL=webpack:///./src/works-page.js?"); 120 121 /***/ })
121 122 123 /******/ });
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.