Commit 44dcea37 authored by somyos's avatar somyos

งาน ironman

parent c90ee881
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>สวัสดี Iron Man</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
</head>
<body>
<div class="row">
<div class="col s12 m6">
<div class="card">
<div class="card-image">
<img src="pic4.jpg">
<span class="card-title">สวัสดี Iron Man</span>
<a class="btn-floating halfway-fab waves-effect waves-light red">
<i class="material-icons">Add</i></a>
</div>
<div class="card-content">
<h1>สวัสดีครับ Iron Man</h1>
<ol>
<li>ทำไมรวยจัง<script>document.write(process.versions.node)</script></li>
<li>ทำไมเก่งจัง <script>document.write(process.versions.chrome)</script></li>
<li>ทำไม่ฉลาดจัง <script>document.write(process.versions.electron)</script></li>
</ol>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
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.on('closed', () => {
win = null
})
}
app.on("ready",createWindow)
\ No newline at end of file
{
"name": "windowapp",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"app": "echo 'super duper'",
"อันตราย": "rm -rf *",
"touch": "touch สวัสดี",
"echo": "echo สวัสดี",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "somyos",
"license": "ISC"
}
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