-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (30 loc) · 1.29 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
<!DOCTYPE html>
<html>
<head>
<title>Secret Santa-o-matic</title>
<link rel="icon" type="image/svg+xml" href="hat-outlined.svg">
<link rel="mask-icon" href="hat-outlined.svg" color="black">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<script src="https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js"></script>
<script src="santomatic.js"></script>
</head>
<body>
<h1>Secret Santa-o-matic</h1>
Enter a configuration: <span id="valid"></span>
<div>
<textarea id="yaml" rows=20 cols=80 onchange="validate(0);" oninput="validate(500);"></textarea>
</div>
<span>Load Santa config: <input type="file" onchange="load_yaml();" id="file"></span>
<div>
<form action="javascript:compute();">
<label for="penalty">Enter penalty:</label>
<input id="penalty" type="number" step="0.01" min="0" max="0.99" value="0.85">
<button type="submit" id="button" disabled>Loading...</button>
</form>
</div>
<div>
<textarea id="result" rows=20 cols=80 disabled></textarea>
</div>
<a class="github-fork-ribbon" href="https://github.com/effigies/santomatic" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
</body>
</html>