-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
88 lines (78 loc) · 4.08 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>Parallel 2D Ising Model simulations in the Browser - Tom Beardsley PhD</title>
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/outputFields.css">
<link rel="stylesheet" href="./css/inputFieldsAndValidation.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
</head>
<body>
<!-- A region that will contain programatically created input fields for parameters -->
<div id="inputsWrap">
<button id="paramsBtn" type="button" class="collapsible active">Parameters</button>
<div id="inputDiv" class="content">
<div id="inputFields">
</div>
</div>
</div>
<!-- A region that will contain programatically output fields for multiple experiments -->
<div id="expWrap">
<button id="expsBtn" type="button" class="collapsible active">Experiments</button>
<div id="expContent" class="content">
<div id='expDiv'>
<span id="expTitleSpan">
Set up an experiment by adjusting the parameters...
</span>
<div class='divResultsTree'>
<ul id='exp_tree' class="tree">
</ul>
</div>
<button id="dwnld" disabled>Download Data</button><span id="dwnldSpan"></span>
</div>
</div>
</div>
<!-- Canvas elements to display charts. Checkboxes to show/hide charts -->
<div id="chartsWrap">
<button id="chartsBtn" type="button" class="collapsible active">Charts</button>
<div id="chrtContent" class="content">
<div id="chartsContainerDiv">
<div id='chartChkDiv' class='chartChkDiv'>
<span class='chartChkSpan'>
<input type="checkbox" id="chkChartM" autocomplete="off">
<label for="chkChartM"><M>/N</label>
</span>
<span class='chartChkSpan'>
<input type="checkbox" id="chkChartUL" autocomplete="off">
<label for="chkChartUL">UL</label>
</span>
<span class='chartChkSpan'>
<input type="checkbox" id="chkChartCv" autocomplete="off">
<label for="chkChartCv">Cv/kN</label>
</span>
<span class='chartChkSpan'>
<input type="checkbox" id="chkChartchi" autocomplete="off">
<label for="chkChartchi">χJ/N</label>
</span>
<span class='chartChkSpan'>
<input type="checkbox" id="chkChartH" autocomplete="off">
<label for="chkChartH"><H>/NkT</label>
</span>
</div><br>
<div class="chartDiv">
<canvas id="chartCanvM" class="chartCanv"></canvas>
<canvas id="chartCanvUL" class="chartCanv"></canvas>
<canvas id="chartCanvCv" class="chartCanv"></canvas>
<canvas id="chartCanvchi" class="chartCanv"></canvas>
<canvas id="chartCanvH" class="chartCanv"></canvas>
</div>
</div>
</div>
</div>
<!-- javascript that does the heavy lifting, as well as a charting package -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
<script src="./js/chartjsSetupFunctions.js"></script>
<script src="./js/inputFieldsAndValidation.js"></script>
<script src="./js/outputFields.js"></script>
<script src="./js/index.js"></script>
</body>
</html>