Skip to content

Commit cee3e3c

Browse files
author
snie
committed
add comments
1 parent 90776af commit cee3e3c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

css/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ body {
3939
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
4040
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
4141
pointer-events: none;
42+
}
43+
44+
#comment
45+
{
46+
margin: 10px;
47+
font-weight: bold;
4248
}

perfect_squares.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<br>
1313

1414
<div id="vis">
15+
<p id='comment'>Input a number to start the animation. A queue is used to go through the BSF tree. Nodes are colored green when they are added in the queue. They become white after being pushed out from the queue. After the animation, hovering over each node will show the path to the root node and a tooltip with the squares associated with the current node.</p>
1516
<input id='inputValue' type="text" placeholder="input number" onchange="start(this.value)">
1617
<svg id='svg'></svg>
1718
</div>

0 commit comments

Comments
 (0)