From 8be8a9d72a02e1263d318b2eef64b9cfa71165d0 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sun, 2 Oct 2022 20:25:22 -0700 Subject: [PATCH] multi-file support --- index.html | 19 ++----------------- script.js | 9 +++++++++ styles.css | 5 +++++ 3 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 script.js create mode 100644 styles.css diff --git a/index.html b/index.html index 64b2514..cadfaad 100644 --- a/index.html +++ b/index.html @@ -2,23 +2,8 @@ I love NW.js - - + +

NW.js is great!

diff --git a/script.js b/script.js new file mode 100644 index 0000000..d52f557 --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +const uuidv4 = require('uuid').v4; + +console.log('uuidv4:', uuidv4()) + +// Don't show the window until it's loaded so that we don't get a white flash +const gui = require('nw.gui'); +onload = function() { + gui.Window.get().show(); +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..636e93a --- /dev/null +++ b/styles.css @@ -0,0 +1,5 @@ +body { + color: #fff; + background-color: #000; +} +