Skip to content

Commit

Permalink
add ranking level titles to ranking div
Browse files Browse the repository at this point in the history
  • Loading branch information
Ly Nguyen authored and Ly Nguyen committed Jul 6, 2016
1 parent 93fc87b commit d0c0539
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
Binary file modified Game Rankings.psd
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/js/game-cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ $(window).bind("load", function(){
function checkforWin() {
// shared.pairsLeft = 0;
// shared.clickCounter = 50;
if (shared.pairsLeft === 7) {
if (shared.pairsLeft === 0) {
$($pairsFound).html("<span class='green'>All of them!<span>");
stopTimer();
getRank(shared.gameMode);
Expand Down
22 changes: 18 additions & 4 deletions assets/styles/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,23 @@ div#ranking-outer-overlay {
position: absolute;
top: 50%;
left: 0;
padding: 3%;
}
.ranking-div {
width: 100%;
padding: 1% 0;
.ranking-row {
display: inline-block;
width: 23.33%;
color: darken($mainOrangeColor, 5%);
text: {
align: center;
transform: uppercase;
}
&:first-child {
width: 30%;
}
}
}
} // Ends inner div
}
Expand Down Expand Up @@ -477,10 +494,7 @@ MEDIA QUERY - MEDIUM > 768px
// border: 2px solid blue;
}
}
// h1:before {
// content: "Width of 768px";
// font-size: .3em;
// }

body {
width: 95%;
max-width: 1200px;
Expand Down
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1>Funny Cat Memory Game</h1>
Game created by <a href="http://www.ly-n.com" target="_blank">Ly Nguyen</a>.
</p>
<p>Last updated:
<span class="date">5/9/16</span>
<span class="date">5/27/16</span>
</p>
</div>

Expand Down Expand Up @@ -162,8 +162,15 @@ <h1>Funny Cat Memory Game</h1>
</div>
</div>

<div class="ranking-div">
<div class="ranking-row">Level
</div><div class="ranking-row">Easy
</div><div class="ranking-row">Medium
</div><div class="ranking-row">Hard</div>
</div>

<div class="construction">
Please be patient as this game is under construction right meow!
Please be patient as this game is under construction right meow!!!
</div>

</div>
Expand Down

0 comments on commit d0c0539

Please sign in to comment.