forked from JohnJunior/electron-desktop-capturing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (78 loc) · 3.8 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
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy"
content="img-src 'self' data: filesystem:; default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; script-src-elem 'self' 'unsafe-eval' https://unpkg.com">
<script src="https://unpkg.com/micromodal/dist/micromodal.min.js"></script>
<link href="./styles.css" rel="stylesheet">
<title>Screen Grabber</title>
</head>
<body>
<div class="body-wrapper">
<div class="body-content">
<video id="stream" src="#" autoplay></video>
<div class="button-wrapper">
<button id="start">Start</button>
<button id="stop" class="hidden">Stop</button>
<button id="open-directory-btn">Open Directory</button>
</div>
<div class="button-wrapper">
<button id="closeOverlayBtn">Close Overlay</button>
</div>
<div class="button-wrapper">
<button id="recordWin">Win</button>
<button id="recordLoss">Loss</button>
<button id="recordDraw">Draw</button>
<button id="resetStats">Reset Stats</button>
</div>
<!-- New section for resizing overlay -->
<div class="button-wrapper">
<input id="newWidth" type="number" placeholder="New Width" />
<input id="newHeight" type="number" placeholder="New Height" />
<button id="resizeOverlayBtn">Resize Overlay</button>
</div>
<!-- New section for moving overlay -->
<div class="button-wrapper">
<input id="newX" type="number" placeholder="New X Position" />
<input id="newY" type="number" placeholder="New Y Position" />
<button id="moveOverlayBtn">Move Overlay</button>
</div>
</div>
<div class="modal micromodal-slide" id="electron-screen-picker" aria-hidden="true">
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="modal-1-title">
<header class="modal__header">
<h2 class="modal__title" id="modal-1-title">
Share your screen
</h2>
<button class="modal__close" aria-label="Close modal" data-micromodal-close></button>
</header>
<main class="modal__content" id="modal-1-content">
<div class="ibox __electron-screen-picker-content">
<div class="ibox-content">
<div data-settings class="__electron-screen-settings-notice hidden">
<div>Please grant access to screen recording for this app in System Preferences and click
"Retry"
</div>
<div class="m-t-xs text-center">
<button data-retry type="button" class="btn btn-md btn-default">Retry</button>
</div>
</div>
<div id="sources" class="__electron-list"></div>
</div>
</div>
</main>
<footer class="modal__footer">
<button id="system-preferences" class="modal__btn modal__btn-primary">Open system preferences</button>
<button class="modal__btn" data-micromodal-close aria-label="Close this dialog window">Close</button>
</footer>
</div>
</div>
</div>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
</div>
</body>
</html>