-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.cshtml
66 lines (66 loc) · 3.85 KB
/
Index.cshtml
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
@{Layout = "~/_Layout.cshtml";}
@section styles{
<link type="text/css" rel="stylesheet" href="@Href("~/style/periodic-table.css")" />
}
@section scripts{
<script type="text/javascript" src="@Href("~/js/lib/sylvester.js")"></script>
<script type="text/javascript" src="@Href("~/js/app/Molecule.js")"></script>
<script type="text/javascript" src="@Href("~/js/app/Reaction.js")"></script>
<script type="text/javascript" src="@Href("~/data/TableOfElements.js")"></script>
<script type="text/javascript" src="@Href("~/js/app/nullspace.js")"></script>
<script type="text/javascript" src="@Href("~/data/testData.js")"></script>
<script type="text/javascript" src="@Href("~/js/lib/keyboard_codes.js")"></script>
<script type="text/javascript" src="@Href("~/js/app/PeriodicTable.js")"></script>
<script type="text/javascript" src="@Href("~/js/app/Molecule.js")" ></script>
<script type="text/javascript" src="@Href("~/js/app/stoichiometerTests.js")"></script>
<script type="text/html" id="molecule-template">
<div class="tag tag-default">
<span data-bind="html: moleculeText"></span><button class="close" style="margin-left:4px;" data-bind="click: $root.removeMolecule">×</button>
</div>
</script>
<script type="text/javascript" src="@Href("~/js/app/stoichiometer.js")" ></script>
}
<div id="stoichiometer">
<div class="well">
<i data-reaction-side="reactants" data-bind="template: { name: 'molecule-template', foreach: reactants }"></i>
<i class="glyphicon glyphicon-arrow-right"></i>
<i data-reaction-side="products" class="products" data-bind="template: { name: 'molecule-template', foreach: products }"></i>
<i class="tag tag-primary pull-right" data-bind="with: activeMolecule">
<span data-bind="html: moleculeText"></span>
</i>
</div>
<div>
<button class="btn btn-default" data-bind="click: add">Add</button>
<div class="btn-group">
<button type="button" class="btn btn-default acitve" data-bind="css: {active: isReactantEntryMode}, click: enterReactantsEntryMode">
Reactants
</button>
<button type="button" class="btn btn-default" data-bind="css: {active: !isReactantEntryMode()}, click: enterProductsEntryMode">
Products
</button>
</div>
<button class="btn btn-default number" data-bind="click: $.noop">1</button>
<button class="btn btn-default number" data-bind="click: $.noop">2</button>
<button class="btn btn-default number" data-bind="click: $.noop">3</button>
<button class="btn btn-default number" data-bind="click: $.noop">4</button>
<button class="btn btn-default number" data-bind="click: $.noop">5</button>
<button class="btn btn-default number" data-bind="click: $.noop">6</button>
<button class="btn btn-default number" data-bind="click: $.noop">7</button>
<button class="btn btn-default number" data-bind="click: $.noop">8</button>
<button class="btn btn-default number" data-bind="click: $.noop">9</button>
<button class="btn btn-default number" data-bind="click: $.noop">0</button>
<button class="btn btn-default" data-bind="click: balance" id="balance-button">Balance</button>
<button class="btn btn-default" data-bind="click: clear">Clear</button>
<button class="btn btn-default" data-bind="click: clearEntry">Clear Entry</button>
<button class="btn btn-default" data-bind="click: removeLastCharacter">Backspace</button>
</div>
<div id="periodic-table"></div>
</div>
<div id="debugging" data-bind="visible: on" style="display: none;">
<h2>Debugger</h2>
<div data-bind="foreach: reactions">
<span>
<button class="btn" data-bind="text: $data, click: addReactionFromText"></button>
</span>
</div>
</div>