forked from LuanDuka/javascript-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path12-advanced-function.html
More file actions
47 lines (42 loc) · 1.19 KB
/
12-advanced-function.html
File metadata and controls
47 lines (42 loc) · 1.19 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title class="messaging">Advanced Funtions</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div>
<button class="start-button" onclick="">Start</button>
</div><br>
<div>
<button class="add-to-cart-button" onclick="">Add to cart</button>
<p class="text-added"></p>
</div><br>
<div>
<button class="att-messages-button" onclick="">Add</button>
<button class="att-messages-button" onclick="">Remove</button>
</div><br>
<!--
<button onclick="
messages++;
displayNotification();
">Add</button>
<button onclick="
if (messages > 0) {
messages--;
// If there are no new messages, stop displaying
// the notification in the tab.
if (messages === 0) {
stopNotification();
}
}
">Remove</button>
-->
<div>
<button onclick="" class="js-click-button">Click</button>
</div>
<script src="js/12-advanced-functions.js"></script>
</body>
</html>