From 77aa955636db7b53c7a7cb64ad131cedbb81ef9a Mon Sep 17 00:00:00 2001 From: Lucas David Han Date: Sun, 16 Aug 2020 18:00:32 +0900 Subject: [PATCH] Add: JSON File Support --- assets/JSON.webp | Bin 0 -> 9424 bytes file.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/JSON.webp diff --git a/assets/JSON.webp b/assets/JSON.webp new file mode 100644 index 0000000000000000000000000000000000000000..bbbb2942b3a44dc367d02476666fde3c7c3e2e1f GIT binary patch literal 9424 zcmV;>Brn@iNk&G1e4i|hsykMuj4POz|$=P_^0_=iQs&0VBb2V~8lYonIXgwvMDhvHH zXQeU=O$nR@m5S$D+#9eZ(Uhre(Ug2u9Pz>j$C;Ito(zIeQ_KC5fND|95<4r zNO646^WRd&>6#uBASt%(sw#8VjT|l)<88~I|HyJ^IFKYsiIQ`-|34CERu1|<0jRlf zm5c1G?{EX?2~Dot_6Z>{`sPSnTqd3!n&R9~sZXxFZ`XD0;i?kD`yEz3_scM;(YW-< zpc23#8MFjp2rxi)L=Xaitj>K9M)lYus=(+Xz{5Kw2(=XZi}$e)s;C-t=u)s=E5UpX zA_$d&%VND0{=JV8yoH-Uy;JBA4UT9lyf4KC0G%-g39s0`yfXzswmw2G5{P1Jw?%dV zf@*9!Ov_P(dB;BhY|q)+3f=>RXwmXOt#cz9Z;*u|tObIG2J=EF_B14_N2u98_@NdD zgSL$%CH!H}w7d5Jh=>W`wO(+d+9_bJ4%J{p73UEcH()STkgQ6p0`5d3vzxcv{{ez~ zGBP_@DBO&JY$WVh2DX;+gjx|m<=CAUV%oO}(q6-3v)aZn zt8Lr1S%bCqh=Og~Zrf(x_dftivP{t_^B-XEi3t2hL6U6Mwvx5>`HtTAKI7#xTzBW6 z<$>BZLz1>_J0l}qZIA7l+qP}nwryLNZL9CA$8(K6?dh)RE_B(<%t~iO?E0xDWGSu7NX&8I?S27=naQhE zD}DHOZ@^N@owU(%HD58IZY`xeE?06Gr8X9%0nhQ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E+AkiELSPB#1E)pKi zmroIs=-7VC4a}00yJU4L&Vgjv;Bc7aD{KtygD7lzfBPspInf#(PR#7C%}&{!m4Um@B{rpm;Vu0weLUSxTtbH@qC?ZEeY>UVtU}>3+f@F$eZUMLX;bQ3;a7?L z@%8^fbitu^&E1;Zw~5w=Dn*dO*80H11J{p$P7@aY5P?5?_2bL$-V0rkC=R7ljhmVM zd(p~bdsQWAGX%x0V}9S)`1i-ZPG0}tKoE4>Z}v)~It3RD_KKxWbrFGI@PQ`-o)35g z;KK3ps}FVqhmeTE!2R*d18EP^1Ed*ZU?9y96D3l^Y{;XNM1;iRvd0&H+;Eu00pPW0PTHw5wXM?3U{Lbh zELDX$4JQa=z=;4Z56Cwxh=F7vJwTcv1_siM0I!bwDajKCk*D`B|GoL8Nn#lXiiGA= zE2XLsZ8i6A>EWOywH6gGPQggW-#7d#L0=O5Zhz+i3lanE^#Eyx7#N612x-U-@oUc< zLjEEm=6-y6-TI>_k;DOI|E}RU*W9ukkFz*CPGNeKsZIIXP#IqM;RS6k&P%7QFViWL zOJx1IL!&FTJwTcv1||*`c0ouG5L7-h|7GcG$a!S++q?0xqta*NK=fKfIjD&RV^TA9 z7Q>ZVOKPJcmAb=PwlNuNw_o0L@uwZH&D?9h?81(zS}kq_O<*l0fQZC|anRomMI*>8 zcJMhqf$l(X*P`*_-r?_FogO`uhy)H`-;B_a`V#$#IMsEZe0%%m6>qP;QhB@ne#I{) zF2Uj@xOz$EE>$~sc3y4Il!oHKvU5+N=U)AZ88q1%hO z;W33+nK#1$Gciv5ig+*a>^t4pzArvu_{5s>TW5F2^ybOk<>Xm0c{(#YV{UI*D3^sO W^#43eUBjbLQmz!a0b3$mbZP(#+9jm` literal 0 HcmV?d00001 diff --git a/file.js b/file.js index 8aac6ae..e66ae15 100644 --- a/file.js +++ b/file.js @@ -38,8 +38,8 @@ function filterFileName(fileName) { if (!/^[0-9a-zA-Z ... ]+$/.test(fileName) || fileName.split(".")[1] === undefined) { alert("The file name you've entered is unavailable."); return false; - } else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt")) { - alert("Only HTML, CSS, and JavaScript is supported in Artrium Code currently."); + } else if (!(fileName.split(".")[1] === "html" || fileName.split(".")[1] === "css" || fileName.split(".")[1] === "js" || fileName.split(".")[1] === "txt" || fileName.split(".")[1] === "json")) { + alert("Only HTML, CSS, JavaScript, Text File, and JSON is supported in Artrium Code currently."); return false; } else { return true;