Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/diversify/janu
Browse files Browse the repository at this point in the history
# By scanniza (3) and Yoav Zimmerman (2)
# Via scanniza
* 'master' of https://github.com/diversify/janu:
  changed ending screen
  load scripts in https
  removed psds
  unbroke it
  end screen
  • Loading branch information
hejelin committed Nov 23, 2014
2 parents c98c627 + cd930e7 commit 24621fc
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 4 deletions.
5 changes: 4 additions & 1 deletion app/controllers/controllers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

var app = angular.module('janu');

app.controller('januController', ['$scope','$http','$interval', function ($scope,$http,$interval){
app.controller('januController', ['$scope','$http','$interval','$location', function ($scope,$http,$interval,$location){
var janu = $scope;


Expand Down Expand Up @@ -212,6 +212,9 @@ app.controller('januController', ['$scope','$http','$interval', function ($scope
$('#album-cover').removeClass('correct');
$('#album-cover').removeClass('wrong');
$("#song-details").hide();
if($scope.timelineSongs.length===10){
$location.path('/win');
}
newSong = fetchNewSong();
playSong(newSong);
$scope.markerSet = false;
Expand Down
2 changes: 1 addition & 1 deletion app/partials/end.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<h1>Game over</h1>
<h1>Game over</h1>
4 changes: 4 additions & 0 deletions app/partials/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ <h2 id="question">Which timespan?</h2>

<div id="game-footer"><h2 id="score">SCORE <em>{{score.total}}</em><em class="emergency">{{(score.round!=0 && ' + ' + score.round + (' x ' + comboplyer)|| '')}}</em></h2><h2 id="round">CORRECT GUESSES {{timelineSongs.length}} / 10</h2></div>
<div id="combo-div"><img src="content/image/combo-icon.png" alt="COMBO" id="combo" /><h2>{{comboplyer}}</h2></div>
<div id="ending-screen" class="hidden-element">
<h1>Game Over</h1>
<h1>Your score was: {{score.total}}</h1>
</div>


Binary file removed content/image/main-2.psd
Binary file not shown.
Binary file removed content/image/splash-screen.psd
Binary file not shown.
Binary file removed content/image/winning-screen.psd
Binary file not shown.
12 changes: 12 additions & 0 deletions content/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,15 @@ button {
0% { color: #eee;}
100% { color: #c66;}
}
#ending-screen{
background-color: #eee;
border-radius: 10px;
position: fixed;
top:0;
width:80%;
height:80%;
margin: 10% 10%;
}
.hidden-element{
display: none;
}
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<link rel="stylesheet" href="content/style.css" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

<script src="scripts/underscore-min.js" type="text/javascript"></script>
<script src="scripts/musicPlayer.js" type="text/javascript"></script>
Expand Down

0 comments on commit 24621fc

Please sign in to comment.