Skip to content

Commit

Permalink
end screen
Browse files Browse the repository at this point in the history
  • Loading branch information
arneson committed Nov 23, 2014
1 parent 00f30c4 commit 367f4bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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('/end?'+$scope.score.total;);
}
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>

0 comments on commit 367f4bc

Please sign in to comment.