Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Skparab1 authored Jan 30, 2024
1 parent a18f9d0 commit ccc44cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
<li class="headername">Binary Tree Exercises</li>
</ul>
<ul class="nav-items navcenter" id="nav">
<li><a class="larget" onclick="localStorage.removeItem('binarytreestorage'); location.reload();">Reset Tree</a></li>
<!-- <li><a class="larget" onclick="openel('sharetree'); createshareURL(); openscreen();">Share Tree</a></li> -->
<li><a class="larget" onclick="openel('sharetree'); createshareURL(); openscreen();">Share Tree</a></li>
<li><a class="larget" href="./index.html">Binary Tree Builder</a></li>
<li><a class="larget" id='header2' href="./bst.html">BST Classification</a></li>
</ul>
Expand Down Expand Up @@ -157,12 +156,11 @@ <h3 style="margin-bottom: 0px; font-size: 25px;">Tree type</h3>

<div class="largenotif" id="instructions" style="top: 100%; opacity: 0; height: auto; margin-bottom: 50px;">
<h1 style='font-size: 25px; margin: 10px;'>How to use</h1>
<h5 style='font-size: 15px; margin: 10px;'>1. Construct a binary tree using the left/right buttons to add nodes and delete button to remove nodes or press "random tree" to generate a random tree.</h5>
<h5 style='font-size: 15px; margin: 10px;'>2. Type in guesses for results in output box at the bottom of your screen</h5>
<h5 style='font-size: 15px; margin: 10px;'>3. Click "check answers" or "view solutions" to verify</h5>
<h5 style='font-size: 15px; margin: 10px;'>4. Click "Light-up animation" to see light up animations of traversal</h5>
<h5 style='font-size: 15px; margin: 10px;'>5. Click "Reset Tree" to start over</h5>
<h5 style='font-size: 15px; margin: 10px;'>6. Click "Share Tree" share your tree with someone else</h5>
<h5 style='font-size: 15px; margin: 10px;'>1. Use the left/right buttons to add nodes and delete button to remove nodes.</h5>
<h5 style='font-size: 15px; margin: 10px;'>2. Build a binary tree that meets the specifications of the prompt.</h5>
<h5 style='font-size: 15px; margin: 10px;'>3. Click "check" to verify answer.</h5>
<h5 style='font-size: 15px; margin: 10px;'>4. Click "Light-up animation" to see a light up animation of traversal</h5>
<h5 style='font-size: 15px; margin: 10px;'>5. Click "Share Tree" share your tree with someone else</h5>
<div class="close" onclick="closeinstructions(); closescreen();">Close</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion js/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ function createshareURL(){

query = query.replaceAll(" ","%20");

document.getElementById("shareurldisp").textContent = location.href.replace("/index.html","")+"/share?data="+query;
document.getElementById("shareurldisp").textContent = location.href.replace("/exercise.html","")+"/share?data="+query;
}

// this is there so that when you recreate it you know what node you are on
Expand Down

0 comments on commit ccc44cd

Please sign in to comment.