{"version":3,"file":"js/common.min.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;ACAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA,0DAA0D,mBAAmB;AAC7E;AACA;AACA;AACA,gDAAgD,4CAA4C,8BAA8B;AAC1H,QAAQ;AACR,iDAAiD,mBAAmB;AACpE;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,YAAY;AACxC;AACA;AACA;AACA,uCAAuC,gCAAgC;AACvE;AACA;AACA,cAAc;AACd,uCAAuC,kCAAkC;AACzE;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;;;;;UCpFD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;ACNqC;AACX;AAC2B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,4CAA4C;AACnF,KAAK;AACL;AACA;AACA,gCAAgC,4CAA4C;AAC5E,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,QAAQ,iEAAQ;AAChB,KAAK;AACL,CAAC,E","sources":["webpack://laravel/./resources/src/css/share/common.scss","webpack://laravel/./resources/src/js/share/components/_lazyload.js","webpack://laravel/./resources/src/js/share/layout/_header.js","webpack://laravel/webpack/bootstrap","webpack://laravel/webpack/runtime/compat get default export","webpack://laravel/webpack/runtime/define property getters","webpack://laravel/webpack/runtime/hasOwnProperty shorthand","webpack://laravel/webpack/runtime/make namespace object","webpack://laravel/./resources/src/js/share/common.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","export const lazyload = function() {\r\n\r\n $(\"img.lazy\").lazyload({\r\n event: \"sporty\",\r\n effect: \"fadeIn\",\r\n threshold: 200,\r\n failure_limit: 10, //預先往下尋找非有序呈現的圖片10張\r\n skip_invisible: false //關閉Lazyload預設忽略不可見圖片(display:none)\r\n });\r\n\r\n var timeout = setTimeout(function() {\r\n $(\"img.lazy\").trigger(\"sporty\")\r\n }, 1000);\r\n}","$(function() {\r\n\r\n const $window = $(window);\r\n const winW = $window.width();\r\n // gsap.set($('.header_cate_li').find('.nav_link'), { y: 40, opacity: 0 })\r\n\r\n // $('.header_cate_li').hover(function() {\r\n // $(this).addClass('show');\r\n // gsap.to($(this).find('.nav_link'), { duration: .15, y: 0, opacity: 1, stagger: { each: 0.08, from: 'center' } })\r\n // }, function() {\r\n // gsap.set($(this).find('.nav_link'), { y: 40, opacity: 0 })\r\n // $(this).removeClass('show');\r\n // });\r\n\r\n //nav ------------------------------------------\r\n $('.nav_li').hover(function() {\r\n $(this).addClass('active');\r\n }, function() {\r\n $(this).removeClass('active');\r\n });\r\n $('.nav_li').focusin(function() {\r\n $(this).addClass('active');\r\n });\r\n $('.nav_li').focusout(function() {\r\n $(this).removeClass('active');\r\n });\r\n\r\n if (winW > 1024) {\r\n ScrollTrigger.create({\r\n start: 'top -80',\r\n end: 99999,\r\n toggleClass: { className: 'active', targets: '.header, .backtotop' }\r\n });\r\n }\r\n\r\n //menu選單 手機板-------------------------------------------\r\n if (winW <= 1024) {\r\n\r\n // $('.nav_hide').children('.subnav_row').remove();\r\n\r\n const header = $('.header');\r\n const hamburger = $('.hamburger'),\r\n nav = $('.nav'),\r\n nav_link = $('.nav_link'),\r\n subnav_row = nav.find('.subnav_row'),\r\n navReset = function() {\r\n nav_link.attr('o', 1);\r\n nav.clearQueue();\r\n subnav_row.slideUp(0);\r\n };\r\n let o = true;\r\n\r\n TweenMax.set(nav, { y: '100vh' });\r\n hamburger.click(function() {\r\n if (o) {\r\n if (winW <= 950) navReset();\r\n TweenMax.to(nav, .3, { y: '0vh', ease: Power3.easeOut });\r\n header.addClass('show');\r\n o = false;\r\n } else {\r\n TweenMax.to(nav, .3, { y: '100vh', ease: Power3.easeOut });\r\n header.removeClass('show');\r\n o = true;\r\n }\r\n });\r\n\r\n navReset();\r\n nav_link.click(function(e) {\r\n var _this = $(this),\r\n _thisSubnav = _this.siblings('.subnav_row'),\r\n _o = _this.attr('o');\r\n if (_thisSubnav.length <= 0) return;\r\n e.preventDefault();\r\n if (_o == 1) {\r\n _thisSubnav.clearQueue();\r\n _thisSubnav.slideDown();\r\n _this.attr('o', 0);\r\n } else {\r\n _thisSubnav.slideUp();\r\n _this.attr('o', 1);\r\n }\r\n });\r\n\r\n }\r\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import '../../css/share/common.scss';\r\nimport './layout/_header';\r\nimport { lazyload } from \"./components/_lazyload.js\";\r\n\r\n$(function() {\r\n\r\n\r\n $('a[href$=\"#\"]').click(function(e) {\r\n e.preventDefault();\r\n });\r\n\r\n let _hash, _scrollTop;\r\n $('a[href^=\"#anchor_\"]').click(function(e) {\r\n e.preventDefault();\r\n _hash = $(this).attr('href');\r\n _hash = _hash.substr(_hash.indexOf('#'));\r\n _scrollTop = $(_hash).offset().top - $('.header').outerHeight(true) - $('.folder_label').outerHeight(true);\r\n console.log($('.header').outerHeight(true));\r\n TweenMax.to('html, body', 1, { scrollTop: _scrollTop, ease: Quart.easeOut });\r\n });\r\n\r\n $('.backtotop').click(function() {\r\n gsap.to('html, body', { duration: .7, scrollTop: 0, ease: 'power4' })\r\n });\r\n\r\n //--------------------- imagesLoaded ---------------------//\r\n function removeLoading() {\r\n $(\".loading\").fadeOut(function() {\r\n $(this).remove();\r\n });\r\n }\r\n\r\n imagesLoaded(\"html, body\", function() {\r\n removeLoading();\r\n lazyload();\r\n });\r\n});"],"names":[],"sourceRoot":""}