first commit
This commit is contained in:
63
setup.html
Normal file
63
setup.html
Normal file
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Setup Domain</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
padding: 20px;
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
background-color: #4caf50;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="form-group">
|
||||
<label for="domain">Domain (tanpa https://)</label>
|
||||
<input
|
||||
type="text"
|
||||
id="domain"
|
||||
placeholder="Contoh: devcpone.aplikasi.web.id"
|
||||
/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="port">Port WebSocket</label>
|
||||
<input type="text" id="port" value="9099" />
|
||||
</div>
|
||||
<button onclick="submitDomain()">Simpan</button>
|
||||
|
||||
<script>
|
||||
const { ipcRenderer } = require("electron");
|
||||
|
||||
function submitDomain() {
|
||||
const domain = document.getElementById("domain").value;
|
||||
const port = document.getElementById("port").value;
|
||||
if (domain) {
|
||||
ipcRenderer.send("submit-domain", domain, port);
|
||||
} else {
|
||||
alert("Mohon masukkan domain");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user