Skip to content

Commit

Permalink
Create toggle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn16104 committed Dec 6, 2020
1 parent 75ef90b commit 6003191
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ <h2 class="text-white mb-4">DDD Filter applications in the Network</h2>
<p><button onclick="resumeSimulation()">Resume Simulation</button></p>
<p><button onclick="stopSimulation()">Stop Simulation</button></p>
</div>

<div id="main">
<button class="openbtn" onclick="openNav()">☰ Dashboard</button>
<button class="openbtn" onclick="openNav()">☰ Dashboard</button>
</div>

<script>
function openNav() {
document.getElementById("mySidebar").style.width = "450px";
document.getElementById("main").style.marginLeft = "250px";
}

function closeNav() {
document.getElementById("mySidebar").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
Expand All @@ -117,7 +117,7 @@ <h2 class="text-white mb-4">DDD Filter applications in the Network</h2>
<canvas id="canvas"></canvas>

<script type="module" src="js/canvas.js">

</script>

</center>
Expand Down

0 comments on commit 6003191

Please sign in to comment.