Skip to content

Commit

Permalink
Merge pull request #264 from ninjadev/fix-loading-bar-width
Browse files Browse the repository at this point in the history
Fix width of loading bar and ship
  • Loading branch information
stianjensen committed Apr 16, 2017
2 parents c0650cb + 25e8b5d commit 493587d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

.shipwrapper {
margin-left: 20%;
width: 80%;
width: 60%;
position: relative;
}
#shiptrail {
Expand Down Expand Up @@ -170,8 +170,8 @@ <h3>released at Revision 2017</h3>
var wrapper = document.querySelector('#wrapper');
var startButton = document.querySelector('#start-button');
ONPROGRESS = function(progress) {
ninship.style.left = (20 + (+progress * 60 | 0) / 100) + '%';
shiptrail.style.width = ((progress * 60 | 0) / 100) + '%';
ninship.style.left = ((+progress * 100 | 0) / 100) + '%';
shiptrail.style.width = ((progress * 100 | 0) / 100) + '%';
};

ONCOMPLETE = function() {
Expand Down

0 comments on commit 493587d

Please sign in to comment.