ขอสองคะแนน

parent 7d04abce
//const lower = require("./logic")
//console.log(lower.toLower("biebie"))
#!/usr/bin/env node #!/usr/bin/env node
const program = require('commander'); const program = require('commander');
......
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>สวัสดีชาวโลก</title>
</head>
<body bgcolor="#FF9999"
<h1>Hello World!</h1>
<h2><img src = "amp.jpg" width="200" height="150" border="1"></h2>
ใช้โหนด <ol>
<li>เวอร์ชั่นอะไร<script>document.write(process.versions.node)</script>,
<li>ใช้โครมเวอร์ชั่นอะไร<script>document.write(process.versions.chrome)</script>,
<li>และ อิเล็กตรอนเวอร์ชั่นอะไร <script>document.write(process.versions.electron)</script></li></ol>
</body>
</html>
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
let win
function createWindow () {
win = new BrowserWindow({width: 800, height: 600})
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}))
win.webContents.openDevTools()
win.on('closed', () => {
win = null
})
}
app.on('ready', createWindow)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
if (win === null) {
createWindow()
}
})
This diff is collapsed.
{
"name": "week05",
"version": "1.0.0",
"description": "การบ้านสัปดาที่5",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"homework5"
],
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^1.8.2"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment