diff --git a/css/app.css b/css/app.css index 5041d7f..36c9a90 100644 --- a/css/app.css +++ b/css/app.css @@ -14,7 +14,9 @@ nav { padding: 0px; margin: 0px; height: 20px; - width: 1600px; + display: flex; + flex-direction: row; + align-items: center; border: 0px; text-align: center; } @@ -43,15 +45,13 @@ nav { border-bottom: 2px solid black; } #grid-container { - margin-left: 50px; margin-top: 10px; } .path-grid { - width: 1600px; - margin-left: 30px; margin-top: 5px; - margin-right: 5px; - float: left; + display: flex; + flex-direction: column; + align-items: center; } #col_0 { @@ -79,12 +79,13 @@ nav { } #setting-buttons { - margin-right: 50px; - float: left; + margin: 10px; + align-self: left; } #legend { display: inline; + margin: 5px; } .legend-elem { height: 20px !important; @@ -104,8 +105,9 @@ nav { #top-elem { margin-top: 10px; - margin-left: 30px; - float: left; + display: flex; + flex-direction: column; + align-items: center; } #visited-legend { background-color: skyblue; @@ -125,10 +127,12 @@ nav { } .modal-content { - width: 800px; + width: 50vw; height: 800px; position: absolute; - top: 10vh; + top: 0px !important; + margin: 0px !important; + opacity: 0.9; } #modal-header-content { margin-right: 400px; diff --git a/index.html b/index.html index ba3f501..0cecbcf 100644 --- a/index.html +++ b/index.html @@ -42,19 +42,18 @@
-

+

-

-

+

+
:Source
:Destination
:Empty Node
:Visited Node
:Wall Node
:Path Taken
-

diff --git a/js/constants.js b/js/constants.js index e1bae0e..0b501db 100644 --- a/js/constants.js +++ b/js/constants.js @@ -1,10 +1,10 @@ -const numRows = 40; -const numCols = 80; +const numRows = 25; +const numCols = 70; var allNodes = new Array(numRows); // when document ready we need to track the source and destination // current selection is for the button that is currently active -var currentSelection = ''; +var currentSelection = ""; var currentSource = 0; var currentDestination = 0; -var currentRun = 0; \ No newline at end of file +var currentRun = 0;