{"version":3,"file":"assets/js/index.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,kCAAkC,WAAW;AAC7C,4CAA4C,wCAAwC;AACpF,4CAA4C,wCAAwC;AACpF,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,4BAA4B,2DAA2D;AACvF;AACA;AACA;AACA;AACA;AACA,kCAAkC,0CAA0C;AAC5E,sCAAsC,yCAAyC;AAC/E;AACA,4BAA4B,gDAAgD;AAC5E;AACA;AACA;AACA;AACA,4BAA4B,wDAAwD;AACpF;AACA;AACA;AACA,4BAA4B,iDAAiD;AAC7E;AACA;AACA;AACA,kDAAkD,kCAAkC;AACpF,4BAA4B,gDAAgD;AAC5E;AACA;AACA;AACA,oDAAoD,kCAAkC;AACtF,4BAA4B,6CAA6C;AACzE;AACA;AACA;AACA;AACA,sCAAsC,mCAAmC;AACzE,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD,aAAa;AACb,SAAS;AACT;AACA,CAAC,E","sources":["webpack:///./assets/css/home/index.scss?bf44","webpack:///webpack/bootstrap","webpack:///webpack/runtime/make namespace object","webpack:///./assets/js/home/index.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 = (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/index.scss';\r\n\r\n$(function() {\r\n\r\n imagesLoaded(\"html, body\", function() {\r\n //kv\r\n tween = new TimelineMax({ delay: .5 })\r\n .from('.kv_maintitle_tw', .8, { y: 50, opacity: 0, ease: Quart.easeOut })\r\n .from('.kv_maintitle_en', .8, { y: 50, opacity: 0, ease: Quart.easeOut }, '-=.6')\r\n });\r\n\r\n\r\n let tween;\r\n const controller = new ScrollMagic.Controller();\r\n\r\n new ScrollMagic.Scene({ triggerElement: \"#trigger_hamburger_dark\", triggerHook: 0 })\r\n .setClassToggle(\".hamburger_link\", \"dark\")\r\n .addTo(controller);\r\n\r\n //關於校史館\r\n tween = new TimelineMax()\r\n .from('.about_pic', .8, { x: -100, opacity: 0, ease: Quart.easeOut })\r\n .from('.about_caption', .8, { x: 100, opacity: 0, ease: Quart.easeOut }, '-=.6')\r\n\r\n new ScrollMagic.Scene({ triggerElement: \".about_sec\", triggerHook: 0.7 })\r\n .setTween(tween)\r\n .addTo(controller);\r\n\r\n\r\n new ScrollMagic.Scene({ triggerElement: \".collapse_txtcrawl\", triggerHook: 0.1 })\r\n .setPin(\".collapse_txtcrawl\")\r\n .addTo(controller);\r\n\r\n new ScrollMagic.Scene({ triggerElement: \".member_sec\", triggerHook: 0.5 })\r\n .setClassToggle(\".collapse_txtcrawl\", \"hidden\")\r\n .addTo(controller);\r\n\r\n tween = TweenMax.from('.btn_backtotop', .3, { opacity: 0, ease: Power1.easeOut })\r\n new ScrollMagic.Scene({ triggerElement: \".about_sec\", triggerHook: 0.1 })\r\n .setTween(tween)\r\n .addTo(controller);\r\n\r\n tween = TweenMax.to('.btn_backtotop img', .2, { opacity: 0, ease: Power1.easeOut })\r\n new ScrollMagic.Scene({ triggerElement: \".footer\", triggerHook: 0.9 })\r\n .setTween(tween)\r\n .addTo(controller);\r\n\r\n $('.btn_backtotop_link').click(function() {\r\n TweenMax.to('html,body', 1, { scrollTop: 0, ease: Quart.easeOut })\r\n });\r\n\r\n\r\n //開闔\r\n let _o;\r\n let _this;\r\n let $collapse_handler = $('.collapse_handler');\r\n\r\n $('.collapse_content').slideUp(0);\r\n $collapse_handler.attr('o', 0);\r\n\r\n $collapse_handler.click(function() {\r\n _this = $(this);\r\n _o = _this.attr('o');\r\n if (_o == 0) {\r\n _this.parent().find('.collapse_content').slideDown();\r\n _this.attr('o', 1);\r\n _this.addClass('active');\r\n } else {\r\n _this.parent().find('.collapse_content').slideUp();\r\n _this.attr('o', 0);\r\n _this.removeClass('active');\r\n }\r\n });\r\n\r\n\r\n //swiper ------------------------------------------\r\n let $swiper;\r\n let container;\r\n let pagination;\r\n let button_next;\r\n let button_prev;\r\n\r\n if ($(\".swiper_slide_1\").length > 0) {\r\n\r\n $swiper = '.swiper_slide_1';\r\n container = $swiper + ' .swiper';\r\n pagination = $swiper + ' .swiper-pagination';\r\n button_next = $swiper + ' .swiper-button-next';\r\n button_prev = $swiper + ' .swiper-button-prev';\r\n\r\n new Swiper(container, {\r\n grabCursor: true,\r\n slidesPerView: 1,\r\n // loop: true,\r\n // loopedSlides: 6,\r\n speed: 600,\r\n autoplay: {\r\n delay: 2000,\r\n },\r\n pagination: {\r\n el: pagination,\r\n clickable: true,\r\n },\r\n navigation: {\r\n nextEl: button_next,\r\n prevEl: button_prev,\r\n },\r\n a11y: {\r\n enabled: true,\r\n firstSlideMessage: \"第一則\",\r\n lastSlideMessage: \"最後一則\",\r\n paginationBulletMessage: \"到第 {{index}} 則\",\r\n },\r\n breakpoints: {\r\n 320: {\r\n slidesPerView: 2,\r\n },\r\n 950: {\r\n slidesPerView: 1,\r\n }\r\n }\r\n });\r\n }\r\n\r\n if ($(\".swiper_slide_2\").length > 0) {\r\n\r\n $swiper = '.swiper_slide_2';\r\n container = $swiper + ' .swiper';\r\n pagination = $swiper + ' .swiper-pagination';\r\n button_next = $swiper + ' .swiper-button-next';\r\n button_prev = $swiper + ' .swiper-button-prev';\r\n\r\n new Swiper(container, {\r\n grabCursor: true,\r\n slidesPerView: 1,\r\n loop: true,\r\n loopedSlides: 1,\r\n speed: 600,\r\n autoplay: {\r\n delay: 3000,\r\n },\r\n pagination: {\r\n el: pagination,\r\n clickable: true,\r\n },\r\n navigation: {\r\n nextEl: button_next,\r\n prevEl: button_prev,\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 if ($(\".swiper_posts\").length > 0) {\r\n\r\n $swiper = '.swiper_posts';\r\n container = $swiper + ' .swiper';\r\n pagination = $swiper + ' .swiper-pagination';\r\n button_next = $swiper + ' .swiper-button-next';\r\n button_prev = $swiper + ' .swiper-button-prev';\r\n\r\n new Swiper(container, {\r\n grabCursor: true,\r\n slidesPerView: 1,\r\n // loop: true,\r\n // loopedSlides: 3,\r\n speed: 600,\r\n // autoplay: {\r\n // delay: 3000,\r\n // },\r\n pagination: {\r\n el: pagination,\r\n clickable: true,\r\n },\r\n navigation: {\r\n nextEl: button_next,\r\n prevEl: button_prev,\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});"],"names":[],"sourceRoot":""}