From a051aace376492a48c10615106dda222a7136300 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Thu, 1 Nov 2018 21:16:16 +0000 Subject: new fancy webpack stuff --- src/install.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/install.js (limited to 'src/install.js') diff --git a/src/install.js b/src/install.js new file mode 100644 index 0000000..cf728d5 --- /dev/null +++ b/src/install.js @@ -0,0 +1,21 @@ +import pkg93code from "!raw-loader!../dist/pkg93.js"; + +$alert({ + msg: "Welcome to teh pkg93 installer, what do you want to do?", + title: "pkg93 installer", + btnOk: "Install/upgrade pkg93", + btnCancel: "Run away", + img: "//cdn.rawgit.com/1024x2/pkg93/70039c02/pkg.png" +}, function(isOK) { + if (isOK) { + var _main = `i=setInterval(()=>{try{if(le){clearInterval(i);${pkg93code}}}catch(err){console.error(err)}},5000);`; + localStorage["boot/pkg93.js"] = _main; + eval(_main); + $alert({ + msg: "pkg93 has installed successfully!", + title: "pkg93 installer", + btnOk: "kthxbai", + img: "//cdn.rawgit.com/1024x2/pkg93/70039c02/pkg.png" + }); + } +}); -- cgit v1.2.3