From 89d4b200a00d96d68a9d3bfb40d2a06747316580 Mon Sep 17 00:00:00 2001 From: jslightham <31053827+jslightham@users.noreply.github.com> Date: Tue, 26 May 2020 23:34:01 -0400 Subject: [PATCH] made responsive for tablets --- index.html | 12 ++++++------ main.js | 2 +- style.css | 7 +++++++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 22d3324..e18f407 100644 --- a/index.html +++ b/index.html @@ -44,18 +44,18 @@
Coefficient of Kinetic Friction:
diff --git a/main.js b/main.js
index 5d61d25..1d4c2a8 100644
--- a/main.js
+++ b/main.js
@@ -74,7 +74,7 @@ function main(elem){
//canvas.addEventListener("onmouseup", doMouseUp, false);
// Loop through each particle every 10 milliseconds, create measurements every 1 second
- setInterval(loop, 10);
+ setInterval(loop, 20);
setInterval(measureData, 1000);
}
diff --git a/style.css b/style.css
index dec25ee..accd9cb 100644
--- a/style.css
+++ b/style.css
@@ -73,4 +73,11 @@ body{
ul {
text-align: center;
list-style-position: inside;
+}
+
+@media screen and (max-width: 1873px) {
+ .fix{
+ margin-top: 10px;
+ min-width: 75%;
+ }
}
\ No newline at end of file