diff --git a/app/index.js b/app/index.js index 0a485f7..cdbfd71 100644 --- a/app/index.js +++ b/app/index.js @@ -4,6 +4,7 @@ import document from 'document'; const dateText = document.getElementById('js-date'); const hoursBar = document.getElementById('hours'); const minutesBar = document.getElementById('minutes'); +const backTile = document.getElementById('back'); function onTick() { const now = new Date(); @@ -11,10 +12,11 @@ function onTick() { const minutes = now.getMinutes(); hoursBar.groupTransform.rotate.angle = (hours + minutes / 60) * 30; minutesBar.groupTransform.rotate.angle = minutes * 6; + backTile.groupTransform.rotate.angle = minutes * 6; dateText.text = now.getDate(); } -clock.granularity = 'seconds'; +clock.granularity = 'minutes'; clock.ontick = onTick; onTick(); diff --git a/resources/index.gui b/resources/index.gui index 861ebc7..f670343 100644 --- a/resources/index.gui +++ b/resources/index.gui @@ -1,8 +1,8 @@ - - - + + + diff --git a/resources/index~300x300.gui b/resources/index~300x300.gui index 07ef892..209d25b 100644 --- a/resources/index~300x300.gui +++ b/resources/index~300x300.gui @@ -1,7 +1,7 @@ - - + +