-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (48 loc) · 1.89 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
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loosely Equal Examples</title>
<link rel="icon" href="favicon.ico">
<!-- https://getbootstrap.com/docs/5.3/getting-started/introduction/#quick-start -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
</head>
<body onload="onBodyLoad()">
<form class="container mt-2">
<h2>JavaScript Loosely Equal Examples</h2>
<h5>Incomplete and buggy</h5>
<div class="row mt-5 mb-5">
<div class="row mt-1">
<label for="input" class="form-text">
<code>const x =</code>
</label>
</div>
<div class="row mt-1">
<textarea id="input" class="col offset-1 form-control" placeholder="Complete assignment by providing a right-hand side expression such as false.">false</textarea>
<button type="button" id="button" class="offset-1 col-2 btn btn-primary" onclick="run()">Give examples</button>
</div>
</div>
<div class="row mt-3 mb-3">
<p>
The expression is evaluated as:
</p>
<div class="row mt-1">
<code id="x-evaluated-to">undefined</code>
</div>
</div>
<hr>
<div class="row mt-5">
<label for="output">The following statements are also <code>true</code>:</label>
</div>
<pre id="output" class="row m-1 p-2"></pre>
<footer class="row fixed-bottom pt-1 pe-2 pb-1 text-end">
<div id="user-agent" class="col-12"></div>
</footer>
</form>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="index.js"></script>
<script src="scripts/example-giver.js"></script>
<script src="scripts/formatter.js"></script>
</body>
</html>