-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-tracker.html
89 lines (81 loc) · 3.26 KB
/
config-tracker.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
78
79
80
81
82
83
84
85
86
87
88
89
<body>
<h2>Tracker</h2>
<div>
<table class="table" style="margin-bottom: 0;">
<tbody>
<tr>
<th scope="row"><h5 class="no-margin">Size</h4></th>
<td></td>
</tr>
<tr>
<th scope="row" style="padding-left: 40px;">Width</th>
<td>
<input type="text" class="form-control" id="tracker-width">
</td>
</tr>
<tr>
<th scope="row"><h5 class="no-margin">Position</h4></th>
<td></td>
</tr>
<tr>
<th scope="row" style="padding-left: 40px;">Horizontal (X)</th>
<td>
<input type="text" class="form-control" id="tracker-x">
</td>
</tr>
<tr>
<th scope="row" style="padding-left: 40px;">Vertical (Y)</th>
<td>
<input type="text" class="form-control" id="tracker-y">
</td>
</tr>
<tr>
<th scope="row"><h5 class="no-margin">Misc.</h4></th>
<td></td>
</tr>
<tr>
<th scope="row" style="padding-left: 40px;">Opacity</th>
<td>
<input type="text" class="form-control" id="tracker-opacity">
</td>
</tr>
<tr>
<th scope="row" style="padding-left: 60px;">
<input type="checkbox" class="form-check-input" id="tracker-ignore-mouse-events">
<label class="form-check-label" for="tracker-ignore-mouse-events">Ignore Mouse Events</label>
</th>
<td>
</td>
</tr>
<tr>
<th scope="row" style="padding-left: 60px;">
<input type="checkbox" class="form-check-input" id="tracker-disabled">
<label class="form-check-label" for="tracker-disabled">Disable</label>
</th>
<td>
</td>
</tr>
</tbody>
</table>
<div class="d-flex">
<a id="save" class="ml-auto btn btn-primary" href="#" role="button">Save</a>
</div>
</div>
</body>
<script>
$("#tracker-width").val(config.get("tracker-width"));
$("#tracker-x").val(config.get("tracker-x"));
$("#tracker-y").val(config.get("tracker-y"));
$("#tracker-opacity").val(config.get("tracker-opacity"));
$('#tracker-ignore-mouse-events').prop('checked', config.get("tracker-ignore-mouse-events"));
$('#tracker-disabled').prop('checked', config.get("tracker-disabled"));
$('#save').click(function() {
config.set("tracker-width", parseInt($("#tracker-width").val()));
config.set("tracker-x", parseInt($("#tracker-x").val()));
config.set("tracker-y", parseInt($("#tracker-y").val()));
config.set("tracker-opacity", parseFloat($("#tracker-opacity").val()));
config.set("tracker-ignore-mouse-events", $('#tracker-ignore-mouse-events').is(':checked'));
config.set("tracker-disabled", $('#tracker-disabled').is(':checked'));
require("electron").ipcRenderer.send('saveUpdate');
})
</script>