This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.html
64 lines (63 loc) · 2.14 KB
/
render.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<title>Render</title>
</head>
<body>
<style>
body {
font-family: sans-serif;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-image: url('https://i.pinimg.com/originals/d7/d8/db/d7d8dbf3811c797e5d2cc364743ae3a7.gif');
}
.render {
outline: none;
background: black;
border: 2px solid white;
border-radius: 5px;
color: white;
padding: 10px;
display: block;
width: 90%;
margin: 0 auto;
margin-top: 10px;
margin-bottom: 10px;
}
::-webkit-input-placeholder {
color: white;
}
button {
cursor: pointer;
outline: none;
background: black;
border: 2px solid white;
border-radius: 5px;
color: white;
padding: 10px;
display: block;
width: 90%;
margin: 0 auto;
margin-top: 10px;
margin-bottom: 10px;
}
</style>
<input placeholder="Output Path" class="render path" id="path" readonly onclick="selectOutput()">
<button onclick="send()">Export</button>
<script>
const { ipcRenderer } = require('electron');
function send() {
const path = document.getElementById('path').value;
ipcRenderer.send('message', 'export', path);
}
function selectOutput() {
ipcRenderer.send('message', 'select-output');
ipcRenderer.on('selected' , (event, path) => {
document.getElementById('path').value = path;
});
}
</script>
</body>
</html>