-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (42 loc) · 2.09 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
<!DOCTYPE HTML>
<html>
<head>
<title>Interactive EM</title>
<script src="dist/bundle.js"></script>
<link rel="stylesheet" href="dist/style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Interactive EM">
<meta name="author" content="Interactive EM">
</head>
<body onclick="document.querySelector('#welcome_screen_wrapper').style.display='none';">
<canvas id="canvas"></canvas>
<canvas id="volt_canvas"></canvas>
<div id="add_menu">
<button onclick="scene.objEditor.setObj(scene);scene.selected.obj=null">Settings</button>
<button onclick="scene.pushDefaultObject('point_charge')">+ Point Charge</button>
<button onclick="scene.pushDefaultObject('finite_line')">+ Finite Line</button>
<button onclick="scene.pushDefaultObject('infinite_plane')">+ Infinite Plane</button>
<button onclick="scene.pushDefaultObject('ring_conductor')">+ Ring Conductor</button>
<button onclick="scene.pushDefaultObject('line_conductor')">+ Line Conductor</button>
<button onclick="scene.pushDefaultObject('electric_dipole')">+ Electric Dipole</button>
</div>
<div id="welcome_screen_wrapper">
<div id="welcome_screen">
<h1>Welcome to Interactive EM</h1>
<p>It's is a tool to visualize the electric field</p>
<p>Summon an object on the left</p>
<p>Click objects to change their properties</p>
<p><b>White arrows</b> represent electric field vectors</p>
<p><b>Green lines</b> represent equipotential surfaces</p>
<h3>Visit our <a href="https://github.com/benjamin-cates/Interactive-EM">GitHub page</a></h3>
</div>
</div>
<div id="properties_wrapper">
<div id="properties"></div>
</div>
<div id="messageParent">
<div id="message"></div>
</div>
</body>
</html>