discord-sandboxed/views/settings.html
2022-02-23 21:13:46 -06:00

61 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--style-src 'self' 'unsafe-inline' needs evaluation, some conflict with node_modules\electron\dist\resources\electron.asar\renderer\web-view\web-view-impl.js-->
<meta http-equiv="Content-Security-Policy" content="default-src none; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link type="text/css" rel="stylesheet" href="./css/settingsStyle.css">
<link type="text/css" rel="stylesheet" href="./css/titlebar.css">
</head>
<body>
<div class="title-bar" id="titleBar">
<div class="app-name-container">
<div>Settings</div>
</div>
<div class="window-controls-container">
<div id="minimize-button" class="minimize-button menu-button">
<svg width="12" height="12" viewBox="0 0 12 12">
<rect fill="currentColor" width="10" height="1" x="1" y="6" />
</svg>
</div>
<div id="close-button" class="close-button menu-button">
<svg width="12" height="12" viewBox="0 0 12 12">
<polygon fill="currentColor" fillRule="evenodd" points="11 1.576 6.583 6 11 10.424 10.424 11 6 6.583 1.576 11 1 10.424 5.417 6 1 1.576 1.576 1 6 5.417 10.424 1" />
</svg>
</div>
</div>
</div>
<div id="settingsContainer" class="settingsContainer">
<table>
<tr>
<td align="right">Enable System-wide Push to Talk</td>
<td>
<input type="checkbox" id="pttEnable" name="ptt">
</td>
</tr>
<tr>
<td align="right">Push to Talk Key</td>
<td>
<span id='setPTTKeyButton' class="niceButton">loading...</span>
</td>
</tr>
<tr>
<td align="right">Push to Talk Release Delay (ms)</td>
<td>
<input id='pttDelay' type="number">
</td>
</tr>
</table>
</div>
<script src="./js/settingsRender.js"></script>
<script src="./js/titlebar.js"></script>
</body>
</html>