-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (77 loc) · 1.55 KB
/
index.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
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Electron Website Downloader</title>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
}
body {
display: flex;
flex-direction: column;
}
.main-wrapper {
width: 100%;
box-sizing: border-box;
padding: 1em;
padding-top: 0;
}
.main-wrapper:first-child {
padding-top: 1em;;
}
.form-wrapper {
}
.webview-wrapper {
flex: 1;
}
.console-wrapper {
height: 10em;
overflow: auto;
}
.input-form {
display: flex;
}
.input, .button {
border: solid 1px;
padding: 0.5em;
border-radius: 0.5em;
}
.button {
cursor: pointer;
}
.address-input {
width: 100%;
}
.scrape-button {
width: 15em;
margin-left: 1em;
}
.console {
font-family: monospace;
}
.console pre {
white-space: pre-wrap;
}
</style>
</head>
<body>
<div class="main-wrapper form-wrapper">
<form class="input-form">
<input type="text" name="address" class="input address-input" />
<button type="submit" class="button scrape-button">Start Scraping</button>
</form>
</div>
<div class="main-wrapper webview-wrapper">
<webview id="webview" style="width: 100%; height: 100%"></webview>
</div>
<div class="main-wrapper console-wrapper">
<div class="console"></div>
</div>
<script>
require(`./js/script`);
</script>
</body>
</html>