{"version":3,"sources":["webpack:///webpack/bootstrap 2413109de1674ccc04e5","webpack:///./src/js/index.js","webpack:///./src/js/float-menu.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","__webpack_exports__","value","__WEBPACK_IMPORTED_MODULE_0__float_menu__","$","document","ready","floatMenu","promokit","page","caution","game","menu","cnb","topButton","headerButton","el","home","event","sns","footer","theme","layer","buttons","render","quick","$menu","$btnTop","$doc","$contents","sclTop","window","scrollTop","fixTop","offset","top","height","checkPos","each","idx","item","eq","removeClass","addClass","on","e","preventDefault","target","this","attr","offsetTop","stop","animate","scroll"],"mappings":";;;;gBACA,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,GAGAzB,IAAA0B,EAAA,kCC7DAZ,OAAAC,eAAAY,EAAA,cAAAC,OAAA,QAAAC,EAAA7B,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,SAASC,GACzBA,EAAEC,iBACFlB,EAAKuB,OAAOC,SAAUpB,UAAY,GAAK","file":"index.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 2413109de1674ccc04e5","import floatMenu from './float-menu';\r\n\r\n$(document).ready(function () {\r\n floatMenu();\r\n});\r\n\r\nvar page = promokit.page({\r\n caution: '#section-caution',\r\n game: 'bns',\r\n menu: true,\r\n cnb: true,\r\n topButton: true,\r\n\r\n headerButton: {\r\n el: '.header-button',\r\n home: true,\r\n event:true,\r\n sns: true,\r\n },\r\n\r\n footer: {\r\n theme:'black'\r\n },\r\n});\r\n\r\n\r\nvar layer1 = promokit.layer({\r\n el: '#layer-1',\r\n buttons: '.btn-layer1',\r\n render: true\r\n});\r\n\r\nvar layer2 = promokit.layer({\r\n el: '#layer-2',\r\n buttons: '.btn-layer2',\r\n render: true\r\n});\r\n\r\nvar layer3 = promokit.layer({\r\n el: '#layer-3',\r\n buttons: '.btn-layer3',\r\n render: true\r\n});\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/index.js","\r\n\r\nconst quick = ()=>{\r\n let $menu = $('.quick-menu li'),\r\n $btnTop = $('.btn-top'),\r\n $doc = $('html, body'),\r\n $contents = $('#section-2, #section-3, #section-4, #section-5, #section-6');\r\n let sclTop = $(window).scrollTop(),\r\n fixTop = $('.p-header').offset().top + $('.p-header').height();\r\n\r\n if (!(fixTop <= sclTop)) $menu.removeClass('active');\r\n\r\n checkPos();\r\n\r\n $menu.on('click', 'a', function(e){\r\n e.preventDefault();\r\n let target = $(this).attr(\"href\"),\r\n offsetTop = $(target).offset().top;\r\n $doc.stop().animate({ scrollTop :offsetTop }, 800);\r\n });\r\n\r\n $(window).scroll(function(){\r\n checkPos();\r\n });\r\n\r\n function checkPos() {\r\n let sclTop = $(window).scrollTop();\r\n $.each($contents, function(idx, item){\r\n let $target = $contents.eq(idx),\r\n i = idx,\r\n targetTop = $target.offset().top;\r\n\r\n if (targetTop <= sclTop) {\r\n $menu.removeClass('active');\r\n $menu.eq(i).addClass('active');\r\n }\r\n\r\n if (!(fixTop <= sclTop)) $menu.removeClass('active');\r\n });\r\n if(sclTop < $('#section-2').offset().top){\r\n $menu.removeClass('active');\r\n }\r\n sclTop >= fixTop ? $('.quick-menu').addClass('fix') : $('.quick-menu').removeClass('fix');\r\n }\r\n\r\n $btnTop.on('click', function(e){\r\n e.preventDefault();\r\n $doc.stop().animate({ scrollTop : 0 }, 800);\r\n });\r\n};\r\n\r\nexport default quick;\n\n\n// WEBPACK FOOTER //\n// ./src/js/float-menu.js"],"sourceRoot":""}