2019-09-15 18:18:22 +00:00
|
|
|
{"version":3,"sources":["render.js"],"names":["lsKeys","render","page","renderType","renderConfig","al","name","root","array","miku","let","i","push","slice","config","doRenderSwal","const","div","document","createElement","innerHTML","localStorage","swal","content","buttons","confirm","then","value","newValue","querySelector","checked","undefined","removeItem","remove","doRender","getRenderVersion","renderScript","dataset","version","element","length","className","title","Math","floor","random","alt","src","classList","add","addEventListener","body","appendChild"],"mappings":"AAGAA,OAAOC,OAAS,SAEhBC,KAAKC,WAAa,OAClBD,KAAKE,aAAe,CAClBC,GAAI,CACFC,KAAM,cACNC,KAAM,aACNC,MAAO,CACL,0BACA,uBACA,cACA,eACA,eACA,cACA,cACA,cACA,cACA,gBACA,gBACA,oBACA,mBACA,iBACA,gBACA,gBACA,gBACA,kBACA,aACA,aACA,aACA,eACA,eACA,eACA,oBACA,kBACA,cACA,gBACA,gBACA,gBACA,gBACA,gBACA,gBACA,gBACA,kBACA,kBACA,kBACA,mBAGJC,KAAM,CACJH,KAAM,WACNC,KAAM,eACNC,MAAO,KAKX,IAAKE,IAAIC,EAAI,EAAGA,GAAK,GAAIA,IACvBT,KAAKE,aAAaK,KAAKD,MAAMI,MAAS,KAAOD,GAAGE,OAAO,GAAE,QAE3DX,KAAKY,OAAS,KACdZ,KAAKD,OAAS,KAEdC,KAAKa,aAAY,WACfC,IAAMC,EAAMC,SAASC,cAAc,OACnCF,EAAIG,UAAY,+IAIiE,MAAhCC,aAAarB,OAAOC,QAAkB,GAAK,WAAS,wCACnEC,KAAKY,OAAO,KAAI,kMAOlDQ,KAAK,CACHC,QAASN,EACTO,QAAS,CACPC,SAAS,KAEVC,MAAI,SAACC,GACN,GAAKA,EAAL,CACAX,IAAMY,EAAWX,EAAIY,cAAc,eAAeC,aAAUC,EAAY,IACxE,GAAIH,IAAaP,aAAarB,OAAOC,QAC/B2B,EACFP,aAAarB,OAAOC,QAAU2B,EAE9BP,aAAaW,WAAWhC,OAAOC,QACjCqB,KAAK,WAAY,yBAAwBM,EAAW,WAAa,WAAS,IAAK,WAC/DV,SAASW,cAAc,kBAC/BI,SACR/B,KAAKgC,gBAKXhC,KAAKiC,iBAAgB,WACnBnB,IAAMoB,EAAelB,SAASW,cAAc,iBAC5C,OAAIO,GAAgBA,EAAaC,QAAQC,QAChC,MAAMF,EAAaC,QAAe,QACpC,IAGTnC,KAAKgC,SAAQ,WAIXxB,IAAI6B,GAHJrC,KAAKY,OAASZ,KAAKE,aAAaF,KAAKC,YAChCD,KAAKY,QAAWZ,KAAKY,OAAON,MAAMgC,UAGH,MAAhCnB,aAAarB,OAAOC,UACtBsC,EAAUrB,SAASC,cAAc,MACzBsB,UAAY,kCACpBF,EAAQG,MAAQxC,KAAKY,OAAOR,KAC5BiC,EAAQnB,UAAY,iCAGpBlB,KAAKD,OAASC,KAAKY,OAAON,MAAMmC,KAAKC,MAAMD,KAAKE,SAAW3C,KAAKY,OAAON,MAAMgC,UAC7ED,EAAUrB,SAASC,cAAc,QACzB2B,IAAMP,EAAQG,MAAQxC,KAAKY,OAAOR,KAC1CiC,EAAQE,UAAY,mBACpBF,EAAQQ,IAAM,GAAG7C,KAAKY,OAAW,KAAGZ,KAAW,OAAGA,KAAKiC,oBAGzDI,EAAQS,UAAUC,IAAI,UACtBV,EAAQW,iBAAiB,QAAShD,KAAKa,cACvCG,SAASiC,KAAKC,YAAYb","file":"render.js","sourcesContent":["/* global lsKeys, page, swal */\n\n// keys for localStorage\nlsKeys.render = 'render'\n\npage.renderType = 'miku'\npage.renderConfig = {\n al: {\n name: 'ship waifu~',\n root: 'render/al/',\n array: [\n 'admiral_graf_spee_1.png',\n 'admiral_hipper_1.png',\n 'akagi_1.png',\n 'akashi_1.png',\n 'akashi_2.png',\n 'atago_1.png',\n 'atago_3.png',\n 'atago_4.png',\n 'atago_5.png',\n 'belfast_2.png',\n 'choukai_1.png',\n 'deutschland_1.png',\n 'enterprise_1.png',\n 'glorious_1.png',\n 'hammann_1.png',\n 'hammann_2.png',\n 'hammann_3.png',\n 'hatsuharu_1.png',\n 'kaga_1.png',\n 'kaga_2.png',\n 'kaga_3.png',\n 'laffey_1.png',\n 'laffey_2.png',\n 'laffey_3.png',\n 'prinz_eugen_3.png',\n 'san_diego_1.png',\n 'takao_3.png',\n 'unicorn_1.png',\n 'unicorn_2.png',\n 'unicorn_3.png',\n 'unicorn_4.png',\n 'unicorn_6.png',\n 'unicorn_7.png',\n 'unicorn_8.png',\n 'yamashiro_1.png',\n 'yamashiro_2.png',\n 'yamashiro_3.png',\n 'yukikaze_1.png'\n ]\n },\n miku: {\n name: 'miku ❤️~',\n root: 'render/miku/',\n array: []\n }\n}\n\n// miku: Generate an array of file names from 001.png to 050.png\nfor (let i = 1; i <= 50; i++)\n page.renderConfig.miku.array.push(`${('00' + i).slice(-3)}.png`)\n\npage.config = null\npage.render = null\n\npage.doRenderSwal = () => {\n const div = document.createElement('div')\n div.innerHTML = `\n <div class=\"field\">\n <div class=\"control\">\n <label class=\"checkbox\">\n <input id=\"swalRender\" type=\"checkbox\" ${localStorage[lsKeys.render] === '0' ? '' : 'checked'}>\n Enable random render of ${page.config.name}\n </label>\n </div>\n <p class=\"help\">If disabled, you will still be able
|