multi-file support
This commit is contained in:
parent
a6cffe429e
commit
8be8a9d72a
19
index.html
19
index.html
@ -2,23 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>I love NW.js</title>
|
<title>I love NW.js</title>
|
||||||
<style>
|
<link rel="stylesheet" href="./styles.css" type="text/css"></style>
|
||||||
body {
|
<script src="./script.js"></script>
|
||||||
color: #fff;
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<script>
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>NW.js is great!</h1>
|
<h1>NW.js is great!</h1>
|
||||||
|
9
script.js
Normal file
9
script.js
Normal file
@ -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();
|
||||||
|
}
|
5
styles.css
Normal file
5
styles.css
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
body {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user