-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
68 lines (52 loc) · 2.48 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
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Promises Shell Project Template</title>
<!-- HTML5 SHIV:
Includes IE Print Protector and other functionality if needed for IE 7 & 8, so that HTML 5 elements can be used. It's in conditional comments so you don't need to do anything to activate (or deactivate).-->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="js/libs/jquery-1.10.1.min.js" type="text/javascript"></script>
<link href="css/libs/bootstrap-2.3.2.css" rel="stylesheet">
<script src="js/libs/bootstrap-2.3.2.min.js" type="text/javascript"></script>
<script src="js/libs/q.js"></script>
<script src="js/libs/angular-1.0.7.min.js"></script>
<!-- HERE ARE YOUR DEFAULT CUSTOM SCRIPTS AND STYLES: -->
<link href="css/custom.css" rel="stylesheet">
<script src="js/app.js" type="text/javascript"></script>
</head>
<body>
<div class="container"> <!-- This is Bootstrap's foundational .container element. Everything inside of this can be easily dispensed with, but start with this if you're using Bootstrap's layout grid. -->
<header class="jumbotron subhead" id="overview">
<div>
<h1>Promises Demo App</h1>
</div>
</header>
<section id="mainContent" role=main>
<div class="btn-group">
<button class="btn" onclick="delayOld(1500)">DelayOld</button>
<button class="btn" onclick="delayNew(1500).then(valueLogger)">DelayNew</button>
</div>
<div class="btn-group">
<button class="btn" onclick="chainSimplePromise('Huh. It works.')">Simple, Immediate Resolution</button>
</div>
<div class="btn-group">
<button class="btn" onclick="createDeferred()">Create New Deferred</button>
<button class="btn" onclick="inspectDeferred()">Inspect Promise</button>
<button class="btn" onclick="isDeferredResolved()">Deferred is Fulfilled?</button>
<button class="btn" onclick="addHandlerToDeferred()">Add a .then()</button>
<button class="btn" onclick="resolveDeferred()">Resolve Deferred!</button>
<button class="btn" onclick="rejectDeferred()">Reject Deferred!</button>
</div>
</section>
<section id="insertedContent"></section>
<hr>
<h4>Soon, there will be an article here...</h4>
<article></article>
<footer>
</footer>
</div>
</body>
</html>