-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (52 loc) · 2.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<title>ElectricFieldSim</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">
</head>
<body onresize='resizeCanvas()'>
<div id="container">
<div id="click-field">
</div>
<div id="options">
<div class="row">
<p></p>
<div class="col-xs-4 option" id='charge-options'>
Enter magnitude:
<input type="text" value="1" id="magnitude-box">
<p id="sign-prompt">Select sign:</p>
<form id="sign-radio">
<input type="radio" name="sign" onclick="setSign(true)" id="positive-radio" checked>positive<br>
<input type="radio" name="sign" onclick="setSign(false)" id="negative-radio">negative<br>
</form>
</div>
<div class="row col-xs-4 option" id='techy-options'>
<div class='techy-half col-xs-6' id='techy-prompts'>
<p class='techy-prompt'>Scale:</p>
<p class='techy-prompt'>Step:</p>
<p class='techy-prompt'>Draw limit:</p>
</div>
<div class='techy-half col-xs-6' id='techy-boxes'>
<input type="text" value="4" class="techy-box" id="scale-box"><br>
<input type="text" value="10" class="techy-box" id="step-box"><br>
<input type="text" value="2000" class="techy-box" id="drawLimit-box"><br>
</div>
<button class='other-button btn btn-success' id='defaults-button' onclick='restoreDefaults()'>Restore defaults</button>
</div>
<div class="col-xs-4 option" id='other-options'>
<button class='btn btn-primary' id='about-button' onclick='displayAbout()'>About</button>
<button class='btn btn-success' id='refresh-button' onclick='refreshField()'>Refresh</button><br>
<button class="other-button btn btn-success" id="clear-button" onclick="clearField()">Clear field</button><br>
<button class="other-button btn btn-danger" id="warning-button" onclick="warn()">A word of warning</button>
</div>
</div>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>