Skip to content

Commit

Permalink
added translation for start game button
Browse files Browse the repository at this point in the history
sound button add icon
#10 #7
  • Loading branch information
BioQwer committed Apr 10, 2016
1 parent 332d7af commit e03b686
Show file tree
Hide file tree
Showing 8 changed files with 298 additions and 6 deletions.
Binary file added app/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
288 changes: 288 additions & 0 deletions app/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added app/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added app/fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div>
<div class="col-md-10"></div>
<div class="col-md-1">
<button class="btn btn-primary" ng-click="vm.changeMute()">{{vm.changeTo}}</button>
<button class="btn btn-primary" ng-click="vm.changeMute()" style="float: right;"><span class="glyphicon" ng-class="vm.changeTo"></span></button>
</div>
</div>

Expand Down
10 changes: 6 additions & 4 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
ACTION_MESSAGE: 'Пожалуйста, заполните форму и получите подарок',
FAIL_MESSAGE: 'Попробуйте еще раз…',
CHANGE_LANGUAGE_BUTTON: 'English',
CLICK_FOR_AGAIN:' Нажми, чтобы попробовать еще раз'
CLICK_FOR_AGAIN:' Нажми, чтобы попробовать еще раз',
GO_TO_GAME_BUTTON:'Начать игру'
};

var tableEnglish = {
Expand All @@ -50,7 +51,8 @@
ACTION_MESSAGE: 'Please Fill The Form And Collect Your Gift',
FAIL_MESSAGE: 'You have 1 more chance…',
CHANGE_LANGUAGE_BUTTON: 'Русский язык',
CLICK_FOR_AGAIN:'Click to try again'
CLICK_FOR_AGAIN:'Click to try again',
GO_TO_GAME_BUTTON:'Start play'
};

var app = angular.module('app', ['ngRoute', 'ng', 'ngAnimate', 'ngAudio', 'pascalprecht.translate']);
Expand Down Expand Up @@ -135,9 +137,9 @@

this.checkState = function () {
if (globalVolume > 0) {
this.changeTo = 'Mute'
this.changeTo = 'glyphicon-volume-off'
} else {
this.changeTo = 'Unmute'
this.changeTo = 'glyphicon-volume-up'
}
};

Expand Down
4 changes: 3 additions & 1 deletion app/templates/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ <h1 class="h1-navigation">{{'WELCOME_MESSAGE'|translate}}</h1>
<br>
<br>
<br>
<button class="btn btn-default btn-lg btn-block" onclick="location.href = '#/game';">Game</button>
<button class="btn btn-default btn-lg btn-block" onclick="location.href = '#/game';">
{{'GO_TO_GAME_BUTTON'|translate}}
</button>
</div>

0 comments on commit e03b686

Please sign in to comment.