-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (38 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>Truthiness - string and number!</title>
<script language = "javascript" type = "text/javascript" src = "truthiness.js"></script>
</head>
<body>
<center>
<h2>Setting Values</h2>
Value "first" : <input type = "number" id = "first_attr">
<br>
<br>
Value "second" : <input type = "number" id = "second_attr">
<br>
<br>
<button type = "button" onclick = "calculate()">Calculate</button>
<br>
<br>
<h2>Unwanted Results</h2>
<ul style = "display:inline-block">
<li id = "unw_first"> </li>
<li id = "unw_second"> </li>
</ul>
<br>
<h2>Wanted Results</h2>
<ul style = "display:inline-block">
<li id = "w_first"> </li>
<li id = "w_second"> </li>
</ul>
<br>
<br>
<br>
For more explanation please visit -
<a href = "https://github.com/Incrementis/Javascript-truthiness-undefined-/wiki"> Truthiness undefined Wiki</a>
</center>
</body>
</html>