-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
26 lines (25 loc) · 898 Bytes
/
test.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
<html>
<head>
<title>Tesing the java leeter</title>
<script type="text/javascript" src="https://raw.githubusercontent.com/generic-user/javaleeter/master/core.min.js"></script>
<link rel="stylesheet" type="text/css" href="test.css" />
<meta charset="utf8">
<script type="text/javascript">
function onClick() {
try {
document.getElementById('leetblock').innerHTML = javaleeter(document.getElementById('trunk').value, document.getElementById('level').value, document.getElementById('weight').value);
} catch (ex) {
document.getElementById('leetblock').innerHTML = ex;
}
}
</script>
</head>
<body>
<textarea id="trunk">This wil get leeted!</textarea>
</br>
<textarea id="leetblock"></textarea>
weight: <input type="text" id="weight" value=".4">
level: <input type="text" id="level" value="5">
<button onclick="onClick()" >Press here to leet!</button>
</body>
</html>