mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-15 21:26:10 +00:00
33 lines
834 B
Plaintext
33 lines
834 B
Plaintext
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Home</title>
|
|
</head>
|
|
<body>
|
|
<h3>Hello from ASP.NET Core MVC!</h3>
|
|
|
|
We are using node
|
|
<script>document.write(process.versions.node)</script>,
|
|
Chrome
|
|
<script>document.write(process.versions.chrome)</script>,
|
|
and Electron
|
|
<script>document.write(process.versions.electron)</script>.
|
|
<br /><br />
|
|
<input id="callButton" type="button" value="Call Notification" />
|
|
|
|
<script>
|
|
const { ipcRenderer } = require("electron");
|
|
|
|
document.getElementById("callButton").addEventListener("click", () => {
|
|
ipcRenderer.send("SayHello");
|
|
});
|
|
|
|
ipcRenderer.on("Goodbye", (sender, data) => {
|
|
alert('Goodbye ' + data);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|