From 25e8b5d1b1cfca64135203bddad8ac4958343b85 Mon Sep 17 00:00:00 2001 From: Stian Jensen Date: Sun, 16 Apr 2017 15:25:09 +0200 Subject: [PATCH] Fix width of loading bar and ship This makes them align better during loading. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c263833..378dadd 100644 --- a/index.html +++ b/index.html @@ -63,7 +63,7 @@ .shipwrapper { margin-left: 20%; - width: 80%; + width: 60%; position: relative; } #shiptrail { @@ -170,8 +170,8 @@

released at Revision 2017

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() {