-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
92 lines (87 loc) · 4.18 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
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solver</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<script src="https://cdn.plot.ly/plotly-2.31.1.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"
integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/markdown-it.min.js"
integrity="sha256-OMcKHnypGrQOLZ5uYBKYUacX7Rx9Ssu91Bv5UDeRz2g=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/markdown-it-texmath/texmath.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markdown-it-texmath/css/texmath.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.6.1/github-markdown-light.css"
integrity="sha512-tVO0ZLV54CEoiM+i1hvfZGcopGR3rxyyC3L2/P/6NRTVXlrp4OKyTFunluVG1BRNasDLnm6ZRPDKBGM0CkS99Q=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js" defer></script>
</head>
<script>
const mathWorker = new Worker("mathWorker.js", { type: "classic" });
</script>
<body x-data="{showCode:true, showReport:true}">
<nav class="markdown-body">
<form name="topBar">
<button type='button' x-on:click="showCode = !showCode"
x-text="showCode?'<':'>'"
x-bind:title="showCode?'hide code':'show code'"></button>
<fieldset id='tabs'></fieldset>
<span>
<fieldset id="examples" style="float: right;">
<label for="exampleSelector">Examples:</label>
<select id="exampleSelector" name="example">
<optgroup label="Math">
<option value="basicUsage">Basic Usage</option>
<option value="units">Units</option>
<option value="matrices">Matrices</option>
<option value="quadraticFormula">Quadratic Formula</option>
</optgroup>
<optgroup label="Data">
<option value="strings">Strings</option>
<option value="objects">Objects</option>
</optgroup>
<optgroup label="Plot">
<option value="simplePlot">Plot</option>
<option value="plot3D">3D Plot</option>
<option value="statPlot">Statistic Plots</option>
<option value="lorenz">Lorenz attractor</option>
</optgroup>
<optgroup label="Thermodynamics">
<option value="coolprop">Fluid Properties</option>
<option value="coolpropHigh">coolprop website</option>
<option value="VaporCompressionCycle">Vapor Compression Cycle</option>
<option value="refCycleWithRecuperator">Recuperator</option>
</optgroup>
<optgroup label="Sciences">
<!--
<option value="odeSolver">Aerospace</option>
-->
<option value="chemistry">Chemistry</option>
</optgroup>
</select>
<button type="button" id="exampleInsert" name="insertExample">+</button>
<button type="button"
x-on:click="showReport = !showReport"
x-text="showReport ? '>':'<'"
x-bind:title="showReport?'hide report':'show report'"></button>
</fieldset>
</span>
</form>
</nav>
<main>
<div id="INPUT" x-show="showCode"></div>
<article id="OUTPUT" class="markdown-body" x-show="showReport">
</article>
</main>
<script type="module" src="/main.js"> </script>
</body>
</html>