client/tests/client.html

32 lines
840 B
HTML
Raw Permalink Normal View History

2024-10-13 23:12:55 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<script>
window.addEventListener('load', () => {
setTimeout(() => {
app.setTitle('测试标题')
alert('test')
app.setSize(1200, 400, "fixed")
setTimeout(() => {
setTestOK(true)
app.close()
}, 1000)
}, 1000)
})
</script>
</head>
<body>
<img src="logo.png" width="20"
onclick="showDialog('', ['No', 'Yes'], [{hint:'aaa',value:111},{hint:'bbb',value:222}]).then(v=>{console.info(v)})" />
<h1>Hello, world!</h1>
<br />
<button onclick="app.close()">关闭</button>
</div>
</body>
</html>