Commits

Mathias Panzenböck committed 2bd8541

show volume in icon

Comments (0)

Files changed (2)

javascripts/magnatune.js

 			var volume = this.volume();
 			var maxheight = $('#volume-bar-container').height();
 			var height = Math.round(maxheight * volume);
+			var width  = Math.round(8+(8*Math.min(volume,1)));
 			$('#volume-bar').css('height', height+'px');
 			$('#volume').text(Math.round(volume * 100)+'%');
+			$('#volume-button .icon').css({
+				width:       width+'px',
+				marginRight: Math.max(16-width,0)+'px'
+			});
 		},
 		_duration_change: function () {
 			var duration = this.duration();
 {
   "name": "GreattunePlayer",
   "subdomain": "greattuneplayer",
-  "version": "0.1.0-161",
+  "version": "0.1.0-164",
   "author": "Mathias Panzenböck",
   "description": "This is a HTML5 audio player based on the music from Magnatune.com",
   "bin": {