mirror of
https://gitee.com/energye/energy.git
synced 2024-12-05 21:28:17 +08:00
27 lines
951 B
Go
27 lines
951 B
Go
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>browser-popup-sub-window</title>
|
|
<style>
|
|
</style>
|
|
<script type="application/javascript">
|
|
function openWindow() {
|
|
ipc.emit("openWindow")
|
|
}
|
|
function openBrowserWindow() {
|
|
ipc.emit("openBrowserWindow",["https://www.baidu.com","百度一下",600,400])
|
|
}
|
|
</script>
|
|
</head>
|
|
<body style="overflow: hidden;margin: 0px;padding: 0px;width: 100%;text-align: center;">
|
|
<a href="popup_1.html" target="_blank">弹出页面一</a>
|
|
<a href="popup_2.html" target="_blank">弹出页面二</a>
|
|
<a href="elliptic.html" target="_blank">圆形窗口</a>
|
|
<a href="transparent.html" target="_blank">透明窗口</a>
|
|
<a href="model_window.html" target="_blank">模态窗口</a>
|
|
<br>
|
|
<button onclick="openWindow()">IPC创建窗口</button>
|
|
<button onclick="openBrowserWindow()">IPC创建浏览器窗口</button>
|
|
</body>
|
|
</html> |