diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-11-19 15:44:50 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-11-19 15:44:50 +0100 |
commit | 6949ebc762ca993b3f8b34b46dead40a15b30e82 (patch) | |
tree | b3bf127e6e64fc7036db264dfedc1467873b11b0 /js | |
parent | 0e763c7171d2ade5c2057293b2c8eca75bd3ee8c (diff) | |
download | fosdem-2018-presentation-6949ebc762ca993b3f8b34b46dead40a15b30e82.tar fosdem-2018-presentation-6949ebc762ca993b3f8b34b46dead40a15b30e82.tar.gz |
tweak
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index 47c953d..da1a60a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -4367,6 +4367,7 @@ // Cosmetics this.diameter = 100; + this.diameter2 = this.diameter/2; this.thickness = 6; // Flags if we are currently playing @@ -4385,8 +4386,8 @@ this.canvas.className = 'playback'; this.canvas.width = this.diameter; this.canvas.height = this.diameter; - this.canvas.style.width = this.diameter/2 + 'px'; - this.canvas.style.height = this.diameter/2 + 'px'; + this.canvas.style.width = this.diameter2 + 'px'; + this.canvas.style.height = this.diameter2 + 'px'; this.context = this.canvas.getContext( '2d' ); this.container.appendChild( this.canvas ); @@ -4437,9 +4438,9 @@ Playback.prototype.render = function() { var progress = this.playing ? this.progress : 0, - radius = ( this.diameter / 2 ) - this.thickness, - x = this.diameter / 2, - y = this.diameter / 2, + radius = ( this.diameter2 ) - this.thickness, + x = this.diameter2, + y = this.diameter2, iconSize = 28; // Ease towards 1 |