-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubject-observer.html
45 lines (35 loc) · 1.01 KB
/
subject-observer.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
<!DOCTYPE html>
<html lang="en-us">
<head>
<!-- meta -->
<title>Simple Data Binding</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="Joey Grable">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="copyright" content="copyright Joey Grable">
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- responsive -->
<meta name="robots" content="noindex"><!-- no SEO -->
<!-- css
<link rel="stylesheet" type="text/css" href="./">
-->
</head>
<body>
<input type="text" class="aText"> +
<input type="text" class="bText"> =
<input type="text" class="cText" readonly>
<hr>
A: <span class="aText"></span>
<br>
B: <span class="bText"></span>
<br>
C: <span class="cText"></span>
<hr>
A + B = C
<br>
<span class="aText"></span>+<span class="bText"></span>=<span class="cText"></span>
<!-- scripts -->
<script type="text/javascript" src="./subjectObserver.js"></script>
</body>
</html>