-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
33 lines (30 loc) · 1019 Bytes
/
main.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
<!DOCTYPE html>
<html lang="en">
<!--
This is the code from Part 1 of my video tutorials on learning Knockout JS:
https://www.youtube.com/watch?v=XhfPaNTEuTs
-->
<div id="knockout-app" class="card">
<header>
Good Dog Walks Inc.
</header>
<div class="card-section">
<h2>Helo, <span data-bind="text: userName"></span></h2>
<p>How many walks will we take today?</p>
<div class="counter-ui-container">
<button data-bind="click: decrease">-</button>
<span class="counter" data-bind="text: count">0</span>
<button data-bind="click: increase">+</button>
</div>
<p>Your dog is <span data-bind="text: dogStatus"></span></p>
</div>
<body>
<script type="text/javascript" src="../knockout-3.5.1.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<link rel="stylesheet" href="css/main.css" />
</body>
<footer>
<span>Have a tail wagging day!</span>
</footer>
</div>
</html>