projects
/
westcastle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing attempt for timer position
[westcastle.git]
/
js
/
index.js
diff --git
a/js/index.js
b/js/index.js
index
0d2adad
..
f58a403
100644
(file)
--- a/
js/index.js
+++ b/
js/index.js
@@
-193,7
+193,7
@@
new Vue({
};
},
template: `
};
},
template: `
- <div id="timer" :style="{lineHeight:
textHeight + 'px', fontSize: 0.66*text
Height + 'px'}">
+ <div id="timer" :style="{lineHeight:
divHeight + 'px', fontSize: 0.66*divHeight + 'px', width: divWidth + 'px', height: div
Height + 'px'}">
<div @click.left="pauseResume()" @click.right.prevent="reset()" :class="{timeout:time==0}">
{{ formattedTime }}
</div>
<div @click.left="pauseResume()" @click.right.prevent="reset()" :class="{timeout:time==0}">
{{ formattedTime }}
</div>
@@
-206,9
+206,12
@@
new Vue({
let minutes = Math.floor(this.time / 60);
return this.padToZero(minutes) + ":" + this.padToZero(seconds);
},
let minutes = Math.floor(this.time / 60);
return this.padToZero(minutes) + ":" + this.padToZero(seconds);
},
-
text
Height: function() {
+
div
Height: function() {
return screen.height;
},
return screen.height;
},
+ divWidth: function() {
+ return screen.width;
+ },
},
methods: {
padToZero: function(a) {
},
methods: {
padToZero: function(a) {