Skip to content

Commit

Permalink
added css changes for support to 1366 resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankur19 committed Jan 14, 2020
1 parent 839b998 commit 2e2e495
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
28 changes: 16 additions & 12 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,18 @@
</nav>
<div id = 'grid-container' class='container'></div>
<div id = 'top-elem' class='container-fluid'>
<p id='setting-buttons'>
<div id='setting-buttons'>
<button id = 'wall' class='btn btn-dark'>Build Wall</button>
<button id = 'maze' class='btn btn-dark'>Draw Maze</button>
<button id = 'start' class='btn btn-dark'>Start</button>
</p>
<p id="legend">
</div>
<div id="legend">
<img id='src-legend' class = 'legend-elem' src="images/source.png"><h6 class = 'legend-text'>:Source</h6>
<img id='dest-legend'class = 'legend-elem' src="images/destination.png"><h6 class = 'legend-text'>:Destination</h6>
<div id='grid-legend' class='grid-element legend-elem'></div><h6 class = 'legend-text'>:Empty Node</h6>
<div id='visited-legend' class='grid-element legend-elem'></div><h6 class = 'legend-text'>:Visited Node</h6>
<div id='wall-legend' class='grid-element legend-elem'></div><h6 class = 'legend-text'>:Wall Node</h6>
<div id='path-legend' class='grid-element legend-elem'></div><h6 class = 'legend-text'>:Path Taken</h6>
</p>
</div>
<div class="container-fluid path-grid">

Expand Down
8 changes: 4 additions & 4 deletions js/constants.js
Original file line number Diff line number Diff line change
@@ -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;
var currentRun = 0;

0 comments on commit 2e2e495

Please sign in to comment.