made responsive for tablets
This commit is contained in:
12
index.html
12
index.html
@@ -44,18 +44,18 @@
|
|||||||
<h1>Collision Simulator</h1>
|
<h1>Collision Simulator</h1>
|
||||||
<h4>Project by Johnathon Slightham</h4>
|
<h4>Project by Johnathon Slightham</h4>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fixed">
|
||||||
<div class="row justify-content-start">
|
<div class="row justify-content-start">
|
||||||
<div class="col-xl-6 col-md-4 col-sm-4" id="quote-2-high">
|
<div class=" col-sm-12 col-md-12 col-lg-10 col-xl-8" id="quote-2-high">
|
||||||
<div class="card bg-light" style="min-width: 790px;">
|
<div class="card bg-light" >
|
||||||
<h4 class="card-header">Simulation</h4>
|
<h4 class="card-header">Simulation</h4>
|
||||||
<p class="card-text"><center><canvas id="myCanvas" width="750" height="750" style="border: solid 2px black;">Your browser does not support HTML 5</canvas> </center></p>
|
<p class="card-text"><center><canvas id="myCanvas" width="750" height="750" style="border: solid 2px black;">Your browser does not support HTML 5</canvas> </center></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-3 col-md-8 col-sm-8">
|
<div class="col-lg-3 col-md-4 col-sm-4 fix">
|
||||||
<div class="row justify-content-start" id="top-row">
|
<div class="row justify-content-start" id="top-row">
|
||||||
<div class="col mb-10">
|
<div class="col mb-3 fix">
|
||||||
<div class="card bg-light">
|
<div class="card bg-light fix">
|
||||||
<h4 class="card-header mb-3">Modifiers</h4>
|
<h4 class="card-header mb-3">Modifiers</h4>
|
||||||
<p class="card-text">Coefficient of Kinetic Friction: <input type="number" value="0.00005" step="0.000001" id="fr" onchange="frChange()" class="numinput" style="width: 100px;"> <br>
|
<p class="card-text">Coefficient of Kinetic Friction: <input type="number" value="0.00005" step="0.000001" id="fr" onchange="frChange()" class="numinput" style="width: 100px;"> <br>
|
||||||
<!-- Coefficient of Static Friction: <input type="number" value="0.005" step="0.000001" id="sfr" onchange="sfrChange()" class="numinput"> <br> /!-->
|
<!-- Coefficient of Static Friction: <input type="number" value="0.005" step="0.000001" id="sfr" onchange="sfrChange()" class="numinput"> <br> /!-->
|
||||||
|
|||||||
2
main.js
2
main.js
@@ -74,7 +74,7 @@ function main(elem){
|
|||||||
//canvas.addEventListener("onmouseup", doMouseUp, false);
|
//canvas.addEventListener("onmouseup", doMouseUp, false);
|
||||||
|
|
||||||
// Loop through each particle every 10 milliseconds, create measurements every 1 second
|
// Loop through each particle every 10 milliseconds, create measurements every 1 second
|
||||||
setInterval(loop, 10);
|
setInterval(loop, 20);
|
||||||
setInterval(measureData, 1000);
|
setInterval(measureData, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user