Skip to content
Snippets Groups Projects
Commit c0a2a309 authored by Daniel's avatar Daniel
Browse files

testing5

parent 48077580
No related branches found
No related tags found
No related merge requests found
Pipeline #223573 failed
......@@ -10,9 +10,9 @@ import 'bootstrap/dist/css/bootstrap.min.css';
function SortingVisualizer() {
const moduloFive = ((window.innerWidth / 45)).toFixed(0) % 5;
const monitorSize = (window.innerWidth / 45).toFixed(0) - moduloFive;
const [BarNumber, setBarNumber] = useState(() => monitorSize > 100 ? 100 : monitorSize); // max of 100 bars
// const moduloFive = ((window.innerWidth / 45)).toFixed(0) % 5;
// const monitorSize = (window.innerWidth / 45).toFixed(0) - moduloFive;
const [BarNumber, setBarNumber] = useState(50); // max of 100 bars
const [bars, setbars] = useState(() => generateArray(BarNumber));
const [sorting, setSorting] = useState(false);
const [alreadySorted, setAlreadySorted] = useState();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment