-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjssandbox.html
52 lines (44 loc) · 2.19 KB
/
jssandbox.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
<!DOCTYPE html>
<html>
<head>
<title>Javascript Sandbox</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="bootstrap.css" />
<link rel='stylesheet' type='text/css' href='bootstrap-theme.css' />
</head>
<body>
<div id="wrapper">
<div class='page-header'>
<h1>Javascript Function Testing</h1>
</div>
<!-- buttons to select function to test and execute test/clear fields -->
<div class='btn-toolbar'>
<div class="btn-group" id='selectors'>
<button type="button" class="btn btn-default btn-primary" id='stringReverse'>Reverse String</button>
<button type='button' class='btn btn-default' id='stringCompare'>Compare String Elements to Length</button>
<button type="button" class="btn btn-default" id='greeting'>Greeting</button>
<button type="button" class="btn btn-default" id='cashRegister'>Calculate Currency from Amount</button>
<button type='button' class='btn btn-default' id='movieSort'>Sort Movies by Year</button>
</div>
<div class='btn-group' id='runClear'>
<button type='button' class='btn btn-danger' id='execute'>Run Function</button>
<button type='button' class='btn btn-success' id='clearAll'>Clear Fields</button>
</div>
</div>
<!-- primary and secondary input fields -->
<div class='input-group'>
<span class='input-group-addon'>Primary Input</span><textarea type='text' class='form-control' id='mainInput'></textarea>
<span class='input-group-addon'>Secondary Input</span><input type='text' class='form-control' id='secondaryInput' />
</div>
<!-- output field -->
<div class="panel panel-default">
<div class="panel-heading">Output</div>
<div class="panel-body" id='mainOutput'>
</div>
</div>
<script src='jquery-1.10.2.min.js'></script>
<script src='bootstrap.js'></script>
<script src='functions.js'></script>
</div>
</body>
</html>