{"version":3,"sources":["webpack:///webpack/bootstrap 50217b98e17823384b82","webpack:///./src/js/deathknight.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","nc","promokit","Preloader","game","youtube","image","Ptab","el","$el","$","find","eq","addClass","on","num","this","getAttribute","removeClass","document","TopBtn","Folding","open","remote","element","margin","top","fix","show","quick","cspeed","slick","infinite","fade","dots","arrows","player_weapon","Player","selector","videoId","mute","loop","play","index","pause","seek"],"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,mBC7DA,IAAIC,GAAGC,SAASC,WACZC,KAAQ,WACRC,SACI,gCAEJC,OACI,gFACA,gFACA,+EACA,+EACA,+EACA,gFACA,yEACA,8EACA,8EACA,gFACA,+EACA,+EACA,+EACA,+EACA,6EACA,4EACA,gFAIR,IAAIC,EAAO,SAASC,GAChB,IAAIC,EAAMC,EAAEF,GACZC,EAAIE,KAAK,qBAAqBC,GAAG,GAAGC,SAAS,4BAC7CJ,EAAIE,KAAK,qBAAqBC,GAAG,GAAGC,SAAS,4BAC7CJ,EAAIK,GAAG,QAAQ,oBAAqB,WAChC,IAAIC,EAAMC,KAAKC,aAAa,YAAc,EAC1CR,EAAIE,KAAK,qBAAqBO,YAAY,4BAC1CT,EAAIE,KAAK,qBAAqBO,YAAY,4BAC1CT,EAAIE,KAAK,qBAAqBC,GAAGG,GAAKF,SAAS,4BAC/CJ,EAAIE,KAAK,qBAAqBC,GAAGG,GAAKF,SAAS,+BAIvDH,EAAES,UAAUL,GAAG,aAAc,WACzBJ,EAAE,QAAQU,SACVV,EAAE,mBAAmBW,SAASC,MAAM,IAEpC,IAAIrB,GAAGC,SAASqB,QACZC,QAAQ,cACRC,QAAQ,IACRC,IAAI,IACJC,IAAI,IACJC,MAAK,EACLC,OAAM,EACNC,OAAO,MAEX,IAAIvB,EAAK,SACT,IAAIA,EAAK,UAEeG,EAAE,gBAAgBqB,OACtCC,UAAU,EACVC,MAAO,EACPC,MAAM,EACNC,QAAQ,IAEKzB,EAAE,SAASqB,OACxBC,UAAU,EACVC,MAAO,EACPC,MAAM,EACNC,QAAQ,IAVZ,IAaIC,EAAgB,IAAInC,GAAGC,SAASmC,QAChCC,SAAU,kBACVC,QAAQ,cACRC,MAAM,EACNC,MAAM,IAGVL,EAActB,GAAG,UAAU,WACvBsB,EAAcM,OACdhC,EAAE,eAAeQ,YAAY,6BAsCjCR,EAAE,UAAUI,GAAG,QAAQ,oBAAqB,WAE7B,IADCJ,EAAE,4BAA4BiC,MAAM3B,MAG5CoB,EAAcQ,SAOdR,EAAcS,KAAK,GACnBT,EAAcM","file":"deathknight.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 50217b98e17823384b82","new nc.promokit.Preloader({\r\n 'game': 'lineage2',\r\n 'youtube': [\r\n 'https://youtu.be/Duspwgdf39g',\r\n ],\r\n 'image': [\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-cave3-1.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-cave3-2.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/bg-section3.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/bg-section1.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/bg-section2.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-cave2-1.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/sword.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/layer-item.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-cave1.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-cave2-2.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/layer-raid2.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/layer-raid1.jpg',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-sword3.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-sword2.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/cont-info.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/tab-cave.png',\r\n '/promo/lineage2/history/2019/191106_unboxing/img/deathknight/tab-sword.png',\r\n ]\r\n});\r\n\r\nvar Ptab = function(el) {\r\n var $el = $(el);\r\n $el.find('.p-tab-list__item').eq(0).addClass('p-tab-list__item--active');\r\n $el.find('.p-tab-cont__item').eq(0).addClass('p-tab-cont__item--active');\r\n $el.on('click','.p-tab-list__item', function () {\r\n var num = this.getAttribute('data-tab') - 1;\r\n $el.find('.p-tab-list__item').removeClass('p-tab-list__item--active');\r\n $el.find('.p-tab-cont__item').removeClass('p-tab-cont__item--active');\r\n $el.find('.p-tab-list__item').eq(num).addClass('p-tab-list__item--active');\r\n $el.find('.p-tab-cont__item').eq(num).addClass('p-tab-cont__item--active');\r\n });\r\n};\r\n\r\n$(document).on('preloadend', function() {\r\n $('body').TopBtn();\r\n $('.toggle-caution').Folding({open: true});\r\n\r\n new nc.promokit.remote({\r\n element:\"#remoteMenu\",\r\n margin:-100,\r\n top:920,\r\n fix:287,\r\n show:true,\r\n quick:true,\r\n cspeed:600\r\n });\r\n new Ptab(\"#cave\");\r\n new Ptab(\"#sword\");\r\n\r\n var slick_battlefield = $('#battlefield').slick({\r\n infinite: true,\r\n fade : true,\r\n dots: false,\r\n arrows: true\r\n });\r\n var slick_raid = $('#raid').slick({\r\n infinite: true,\r\n fade : true,\r\n dots: false,\r\n arrows: true\r\n });\r\n\r\n var player_weapon = new nc.promokit.Player({\r\n selector: '#player-effect1',\r\n videoId:'Duspwgdf39g',\r\n mute: true,\r\n loop: true\r\n });\r\n\r\n player_weapon.on('canplay',function () {\r\n player_weapon.play();\r\n $('.p-tab-list').removeClass('p-tab-list--unclickable');\r\n });\r\n\r\n/*\r\n if($('.p-tab-list').hasClass('p-tab-list--unclickable')){\r\n $(this).find('.p-tab-list__item').on('click',function (e) {\r\n e.stopPropagation();\r\n })\r\n }\r\n\r\n*/\r\n\r\n /*\r\n var play_filter = function(slide_num) {\r\n var player_num;\r\n switch (slide_num) {\r\n case 0 :\r\n player_num = player_weapon;\r\n break;\r\n case 1 :\r\n player_num = player_effect2;\r\n break;\r\n case 2 :\r\n player_num = player_effect3;\r\n break;\r\n }\r\n return player_num;\r\n };\r\n\r\n slick_weapon.on('beforeChange',function (event, slick, currentSlide, nextSlide) {\r\n play_filter(currentSlide).pause();\r\n play_filter(nextSlide).seek(1);\r\n play_filter(nextSlide).play();\r\n });\r\n */\r\n\r\n\r\n\r\n $('#sword').on('click','.p-tab-list__item', function () {\r\n var index = $('#sword .p-tab-list__item').index(this);\r\n if(index!==0){\r\n // var player_index = $('#weapon').find('.p-slider-list__item.slick-active').attr('data-slick-index');\r\n player_weapon.pause();\r\n } else {\r\n/*\r\n var player_index = $('#weapon').find('.p-slider-list__item.slick-active').attr('data-slick-index');\r\n play_filter(Number(player_index)).seek(1);\r\n play_filter(Number(player_index)).play();\r\n*/\r\n player_weapon.seek(1);\r\n player_weapon.play();\r\n }\r\n });\r\n});\n\n\n// WEBPACK FOOTER //\n// ./src/js/deathknight.js"],"sourceRoot":""}