46 lines
1007 B
HTML
Executable File
46 lines
1007 B
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<!-- Compiled and minified CSS -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Weryfikacja kodu zajęć</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<form>
|
|
<div>
|
|
<p><h4 class="center">Wprowadź kod synchronizujący</h4></p>
|
|
<input type="text" id="classcode" required autofocus/>
|
|
</div>
|
|
<br />
|
|
<button class="btn waves-effect waves-light" type="submit">Akceptuj</button>
|
|
</form>
|
|
</div>
|
|
|
|
<script>
|
|
const electron = require('electron');
|
|
const {
|
|
ipcRenderer
|
|
} = electron;
|
|
|
|
const form = document.querySelector("form");
|
|
form.addEventListener("submit", submitForm);
|
|
|
|
function submitForm(e) {
|
|
e.preventDefault();
|
|
|
|
var classcode = document.querySelector("#classcode").value;
|
|
|
|
ipcRenderer.send("set:classcode", classcode);
|
|
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |