{"version":3,"file":"js/about.min.js","mappings":";;;;;;;;;;;AAAA;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;ACNmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,mDAAmD,QAAQ;AAC3D,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA,4CAA4C,YAAY;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,IAAI;AAChF;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,uDAAuD,QAAQ;AAC/D,qBAAqB;AACrB,iBAAiB;AACjB,wCAAwC,0BAA0B;AAClE;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT;AACA,CAAC,E","sources":["webpack://laravel/./resources/src/css/home/about.scss?d45e","webpack://laravel/webpack/bootstrap","webpack://laravel/webpack/runtime/make namespace object","webpack://laravel/./resources/src/js/home/about.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// 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","// 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/home/about.scss';\r\n\r\n$(function() {\r\n\r\n\r\n const scene = document.getElementById('scene');\r\n new Parallax(scene);\r\n\r\n let _href;\r\n let _index;\r\n\r\n if ($(\".chronology_swiper\").length > 0) {\r\n\r\n const swiper_el = '.chronology_swiper';\r\n\r\n const $swiper = new Swiper('.chronology_swiper', {\r\n grabCursor: true,\r\n slidesPerView: 'auto',\r\n freeMode: true,\r\n a11y: {\r\n enabled: true,\r\n firstSlideMessage: \"第一則\",\r\n lastSlideMessage: \"最後一則\",\r\n paginationBulletMessage: \"到第 {{index}} 則\",\r\n },\r\n on: {\r\n slideChange: function() {\r\n _href = $('.chronology_slide').eq(this.activeIndex).attr('id');\r\n if (_href != undefined) {\r\n $('.anchor_link').removeClass('active');\r\n $('.anchor_link[href=\"#' + _href + '\"]').addClass('active');\r\n }\r\n }\r\n },\r\n });\r\n\r\n $('.anchor_link').click(function(e) {\r\n e.preventDefault();\r\n _href = $(this).attr('href');\r\n _index = $(_href).index();\r\n $swiper.slideTo(_index);\r\n });\r\n\r\n let _this;\r\n let _pic_swiper_id;\r\n $('.pic_swiper').each(function(i, o) {\r\n _this = $(o);\r\n _pic_swiper_id = _this.attr('id');\r\n new Swiper('#' + _pic_swiper_id, {\r\n // grabCursor: true,\r\n allowTouchMove: false,\r\n spaceBetween: 10,\r\n navigation: {\r\n nextEl: '#' + _pic_swiper_id + ' .swiper-button-next',\r\n prevEl: '#' + _pic_swiper_id + ' .swiper-button-prev',\r\n },\r\n pagination: {\r\n el: '#' + _pic_swiper_id + ' .swiper-pagination',\r\n clickable: true,\r\n },\r\n a11y: {\r\n enabled: true,\r\n firstSlideMessage: \"第一則\",\r\n lastSlideMessage: \"最後一則\",\r\n paginationBulletMessage: \"到第 {{index}} 則\",\r\n },\r\n });\r\n });\r\n\r\n\r\n let _tpl, _id, _this_caption;\r\n $(document).on('click', '.lb_btn', function() {\r\n gsap.set('.lightbox .swiper', { opacity: 0 });\r\n setTimeout(() => {\r\n _tpl = $(this).closest('.swiper_tpl').html();\r\n $('.lb_show_box').html(_tpl);\r\n $('.lightbox').find('.pic_swiper').removeClass('pic_swiper').addClass('lb_swiper').attr('id', '');\r\n $('.lightbox').find('.lb_btn').removeClass('lb_btn');\r\n $('.lightbox').find('.chronology_img').removeClass('chronology_img').addClass('lb_show_img');\r\n $('.lightbox').find('.chronology_caption').removeClass('chronology_caption').addClass('lb_show_caption');\r\n $('.lb_show_caption').each(function(i, o) {\r\n _this_caption = $(o);\r\n _id = _this_caption.data('id');\r\n _this_caption.find('p').append(`\r\n \r\n `);\r\n });\r\n new Swiper('.lb_swiper', {\r\n slidesPerView: 1,\r\n grabCursor: true,\r\n navigation: {\r\n nextEl: '.lb_swiper .swiper-button-next',\r\n prevEl: '.lb_swiper .swiper-button-prev',\r\n },\r\n pagination: {\r\n el: '.lb_swiper .swiper-pagination',\r\n clickable: true,\r\n },\r\n a11y: {\r\n enabled: true,\r\n firstSlideMessage: \"第一則\",\r\n lastSlideMessage: \"最後一則\",\r\n paginationBulletMessage: \"到第 {{index}} 則\",\r\n },\r\n });\r\n gsap.to('.lb_swiper', { duration: .4, opacity: 1 });\r\n $('.lb_show_caption_link').click(function() {\r\n console.log('hi');\r\n });\r\n }, 400);\r\n });\r\n }\r\n});"],"names":[],"sourceRoot":""}