{"version":3,"sources":["webpack:///webpack/bootstrap f79c6ba865672524c29a","webpack:///./assets/src/scripts/modules/app.js","webpack:///./assets/src/scripts/app.js","webpack:///./assets/src/scripts/modules/smooth-wheel.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","app","App","_classCallCheck","this","el","document","listeners","init","console","addEventListener","elClick","e","propertyName","jQuery","scrollTop","$","container","minScrollTop","direction","running","currentY","targetY","oldY","onRenderCallback","vy","animateLoop","requestAnimFrame","onWheel","evt","originalEvent","delta","dir","updateScrollTarget","window","callback","distribution","done","options","arguments","each","index","elm","onRender","remove","log"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAhB,GACA,IAAAS,EAAAT,KAAAiB,WACA,WAA2B,OAAAjB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAH,EAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,OAAAR,OAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,IAGAzB,IAAA0B,EAAA,0ZCnCAC,aAxBC,SAAAC,iGAAcC,CAAAC,KAAAF,GACbE,KAAAC,GA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oB,EAAJK,WACInB,EAAmBc,EAAnBd,UAEAc,EAAJM,QACIC,qCACAzB,KACAH,yBACAA,8BACGG,IACHA,KACAM,SAhJpB,CAAAZ","file":"/js/app.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f79c6ba865672524c29a","class App {\r\n\r\n\tconstructor() {\r\n\t\tthis.el = document.querySelector( '.el' );\r\n\r\n\t\tthis.listeners();\r\n\t\tthis.init();\r\n\t}\r\n\r\n\tinit() {\r\n\t\tconsole.info( 'App Initialized' );\r\n\t}\r\n\r\n\tlisteners() {\r\n\t\tif ( this.el ) {\r\n\t\t\tthis.el.addEventListener( 'click', this.elClick );\r\n\t\t}\r\n\t}\r\n\r\n\telClick( e ) {\r\n\t\te.target.classList.add( 'text-light-grey' );\r\n\t\te.target.addEventListener( 'transitionend', ( e ) => ( 'color' === e.propertyName ) ? e.target.classList.remove( 'text-light-grey' ) : '' );\r\n\t}\r\n\r\n}\r\n\r\nexport default App;\r\n\n\n\n// WEBPACK FOOTER //\n// ./assets/src/scripts/modules/app.js","/**\r\n * Manage global libraries like jQuery or THREE from the package.json file\r\n */\r\n\r\n// Import libraries\r\n\r\n// Import custom modules\r\nimport App from \"./modules/app.js\";\r\nimport smoothWheel from \"./modules/smooth-wheel.js\";\r\n\r\n// /** Boostrap JS **/\r\n//require('bootstrap-sass');\r\n\r\nconst app = new App();\r\n\r\n// preloading\r\njQuery(document).ready(function () {\r\n jQuery(\"#preloader-wrap\").addClass(\"disable\");\r\n});\r\n\r\n// Go to top when you click a tag\r\n// jQuery(document).ready(function () {\r\n// jQuery('a[href^=\"http\"]').click(function () {\r\n// jQuery(\"html, body\").animate({\r\n// scrollTop: 0\r\n// },\r\n// 600\r\n// ); //IE, FF\r\n// });\r\n// });\r\n\r\n// Smooth Wheel\r\n// jQuery(document).ready(function () {\r\n// jQuery('html').smoothWheel()\r\n// });\r\n\r\n// Go to top button\r\njQuery(document).ready(function () {\r\n //Check to see if the window is top if not then display button\r\n jQuery(window).scroll(function () {\r\n if (jQuery(this).scrollTop() > 100) {\r\n jQuery(\".scrollToTop\").fadeIn();\r\n } else {\r\n jQuery(\".scrollToTop\").fadeOut();\r\n }\r\n });\r\n\r\n //Click event to scroll to top\r\n jQuery(\".scrollToTop\").click(function () {\r\n jQuery(\"html, body\").animate({\r\n scrollTop: 0\r\n },\r\n 800\r\n );\r\n return false;\r\n });\r\n});\r\n\r\n//global.$ = global.jQuery = require('jquery');\r\n//window.$ = window.jQuery = require('jquery');\n\n\n// WEBPACK FOOTER //\n// ./assets/src/scripts/app.js","/**\r\n * Created by IntelliJ IDEA.\r\n *\r\n * User: phil\r\n * Date: 15/11/12\r\n * Time: 11:04 AM\r\n *\r\n */\r\n(function ($) {\r\n\r\n var self = this,\r\n container, running = false,\r\n currentY = 0,\r\n targetY = 0,\r\n oldY = 0,\r\n maxScrollTop = 0,\r\n minScrollTop, direction, onRenderCallback = null,\r\n fricton = 0.95, // higher value for slower deceleration\r\n vy = 0,\r\n stepAmt = 1,\r\n minMovement = 0.1,\r\n ts = 0.1;\r\n\r\n var updateScrollTarget = function (amt) {\r\n targetY += amt;\r\n vy += (targetY - oldY) * stepAmt;\r\n\r\n oldY = targetY;\r\n\r\n\r\n }\r\n var render = function () {\r\n if (vy < -(minMovement) || vy > minMovement) {\r\n\r\n currentY = (currentY + vy);\r\n if (currentY > maxScrollTop) {\r\n currentY = vy = 0;\r\n } else if (currentY < minScrollTop) {\r\n vy = 0;\r\n currentY = minScrollTop;\r\n }\r\n\r\n container.scrollTop(-currentY);\r\n\r\n vy *= fricton;\r\n\r\n // vy += ts * (currentY-targetY);\r\n // scrollTopTweened += settings.tweenSpeed * (scrollTop - scrollTopTweened);\r\n // currentY += ts * (targetY - currentY);\r\n\r\n if (onRenderCallback) {\r\n onRenderCallback();\r\n }\r\n }\r\n }\r\n var animateLoop = function () {\r\n if (!running) return;\r\n requestAnimFrame(animateLoop);\r\n render();\r\n //log(\"45\",\"animateLoop\",\"animateLoop\", \"\",stop);\r\n }\r\n var onWheel = function (e) {\r\n e.preventDefault();\r\n var evt = e.originalEvent;\r\n\r\n var delta = evt.detail ? evt.detail * -1 : evt.wheelDelta / 40;\r\n var dir = delta < 0 ? -1 : 1;\r\n if (dir != direction) {\r\n vy = 0;\r\n direction = dir;\r\n }\r\n\r\n //reset currentY in case non-wheel scroll has occurred (scrollbar drag, etc.)\r\n currentY = -container.scrollTop();\r\n\r\n updateScrollTarget(delta);\r\n }\r\n\r\n /*\r\n * http://paulirish.com/2011/requestanimationframe-for-smart-animating/\r\n */\r\n window.requestAnimFrame = (function () {\r\n return window.requestAnimationFrame ||\r\n window.webkitRequestAnimationFrame ||\r\n window.mozRequestAnimationFrame ||\r\n window.oRequestAnimationFrame ||\r\n window.msRequestAnimationFrame ||\r\n function (callback) {\r\n window.setTimeout(callback, 1000 / 60);\r\n };\r\n\r\n\r\n })();\r\n\r\n /*\r\n * http://jsbin.com/iqafek/2/edit\r\n */\r\n var normalizeWheelDelta = function () {\r\n // Keep a distribution of observed values, and scale by the\r\n // 33rd percentile.\r\n var distribution = [],\r\n done = null,\r\n scale = 30;\r\n return function (n) {\r\n // Zeroes don't count.\r\n if (n == 0) return n;\r\n // After 500 samples, we stop sampling and keep current factor.\r\n if (done != null) return n * done;\r\n var abs = Math.abs(n);\r\n // Insert value (sorted in ascending order).\r\n outer: do { // Just used for break goto\r\n for (var i = 0; i < distribution.length; ++i) {\r\n if (abs <= distribution[i]) {\r\n distribution.splice(i, 0, abs);\r\n break outer;\r\n }\r\n }\r\n distribution.push(abs);\r\n } while (false);\r\n // Factor is scale divided by 33rd percentile.\r\n var factor = scale / distribution[Math.floor(distribution.length / 3)];\r\n if (distribution.length == 500) done = factor;\r\n return n * factor;\r\n };\r\n }();\r\n\r\n\r\n $.fn.smoothWheel = function () {\r\n // var args = [].splice.call(arguments, 0);\r\n var options = jQuery.extend({}, arguments[0]);\r\n return this.each(function (index, elm) {\r\n\r\n if (!('ontouchstart' in window)) {\r\n container = $(this);\r\n container.bind(\"mousewheel\", onWheel);\r\n container.bind(\"DOMMouseScroll\", onWheel);\r\n\r\n //set target/old/current Y to match current scroll position to prevent jump to top of container\r\n targetY = oldY = container.get(0).scrollTop;\r\n currentY = -targetY;\r\n\r\n minScrollTop = container.get(0).clientHeight - container.get(0).scrollHeight;\r\n if (options.onRender) {\r\n onRenderCallback = options.onRender;\r\n }\r\n if (options.remove) {\r\n log(\"122\", \"smoothWheel\", \"remove\", \"\");\r\n running = false;\r\n container.unbind(\"mousewheel\", onWheel);\r\n container.unbind(\"DOMMouseScroll\", onWheel);\r\n } else if (!running) {\r\n running = true;\r\n animateLoop();\r\n }\r\n\r\n }\r\n });\r\n };\r\n\r\n\r\n})(jQuery);\n\n\n// WEBPACK FOOTER //\n// ./assets/src/scripts/modules/smooth-wheel.js"],"sourceRoot":""}