-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·71 lines (70 loc) · 2.71 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dyck Paths Visualizer</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="app.css" />
<!-- <script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
processEscapes: true
},
"HTML-CSS": {
scale: 100,
availableFonts: ["TeX"],
linebreaks: { automatic: true }
}
});
</script>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
></script> -->
</head>
<body>
<div class="container text-center justify-content-center card">
<div class="card-header">
<h1>Dyck Paths Visualizer</h1>
<a href="https://github.com/abyanmajid/dyckvis">See Source on GitHub</i></a>
</div>
<div class="card-body">
<p>A <b>dyck path</b> is a sequence of steps from (0, 0) to (<i>n</i>, <i>n</i>) that lies strictly below, or touching, the diagonal line.</p>
<p class="alert alert-warning">
<b>DISCLAIMER:</b> <br>
The greater the value of <b><i>n</i></b>, the longer it will take to load the visualizer! <i>The web app may crash if <b>n</b> is too large!</i> <br>
As a general rule, I recommend inputting a positive integer <b>less than or equal to 10</b> for <i><b>n</b></i>.
</p>
<form>
<div class="form-group">
<label for="inputN">Enter a value for <i><b>n</b></i> =</label>
<input type="N" id="inputN" placeholder="..." />
<small>(Positive integers only!)</small>
</div>
<a type="submit" class="btn btn-danger btn-lg" id="button">
Visualize
</a>
</form>
<!-- <p id="catalan">
$\displaystyle \LARGE C_n=\frac{1}{n+1}\binom{2n}{n}$
</p> -->
<div id="gridSection">
<!-- Grid -->
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script src="app.js"></script>
</body>
</html>