-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 1.6 KB
/
index.html
File metadata and controls
51 lines (51 loc) · 1.6 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Triangles</title>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="styles/styles.css"/>
<link rel="stylesheet" href="http://d5wfroyti11sa.cloudfront.net/prod/client/ts-10.0.22.min.css" integrity="" crossorigin="anonymous"/>
<script src="http://d5wfroyti11sa.cloudfront.net/prod/client/ts-10.0.22.min.js" integrity="" crossorigin="anonymous"></script>
<script src="js/triangle-detector.js"></script>
</head>
<body>
<header data-ts="TopBar"></header>
<main data-ts="Main">
<div data-ts="MainContent">
<div class="container">
<h1>What kind of triangle is it?</h1>
<form data-ts="Form" class="js-ui-form ts-form">
<fieldset>
<label>
<span>Side A</span>
<input type="number" placeholder="Enter length for side A of triangle" />
</label>
</fieldset>
<fieldset>
<label>
<span>Side B</span>
<input type="number" placeholder="Enter length for side B of triangle"/>
</label>
</fieldset>
<fieldset>
<label>
<span>Side C</span>
<input type="number" placeholder="Enter length for side C of triangle"/>
</label>
</fieldset>
<div class="btn-row">
<button data-ts="Button" class="ts-primary submit" onclick="ts.triangleDetector.sendForm()">
<span>Calculate triangle</span>
</button>
</div>
</form>
</div>
</div>
</main>
<script type="text/javascript">
ts.ui.ready(function() {
ts.triangleDetector = triangleDetector();
});
</script>
</body>
</html>