-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (41 loc) · 1.38 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recriando o Jquery com reatividade</title>
<link rel="shortcut icon" href="./public/favicon.ico">
<link rel="stylesheet" href="style.css">
<!-- <script src="./dist/reactive-jquery.js"></script> -->
<script src="./dist/reactive-jquery.min.js"></script>
</head>
<body class="container">
<template id="dinner-table-template">
<table>
<tr>
<td>Jantar:</td>
<td>R$ $dinnerPrice</td>
<td>
<button data-action="incrementDinner">+</button>
<button data-action="decrementDinner">-</button>
</td>
</tr>
<tr>
<td>Taxa de Garçom:</td>
<td>% $tipPrice</td>
<td>
<button data-action="incrementTip">+</button>
<button
:style="$shouldInactiveButton ? 'display: none' : 'display: inline'"
data-action="decrementTip">-</button>
</td>
</tr>
<tr>
<td>Total:</td>
<td colspan="2">$total</td>
</tr>
</table>
</template>
<script src="./app.js"></script>
</body>
</html>