function changeVolume(sign) {
	// if (sign === '+') mediaPlayer.volume += mediaPlayer.volume == 1 ? 0 : 0.1;
	// else mediaPlayer.volume -= (mediaPlayer.volume == 0 ? 0 : 0.1);
	// mediaPlayer.volume = parseFloat(mediaPlayer.volume).toFixed(1);
	if(sign==='-'){
			var minus = Math.floor(100 * 0.1); 
			volume -= minus;
			mediaPlayer.volume -=  0.1;
			$('#volume-vertical').css({'height':  volume + '%', 'background':'#337AB7'});
			$('.volume-static-holder').css({'overflow':'hidden'});
			 if(volume < 10){
			 	volume = 10;
			 	$('#volume-vertical').css({'height': volume + '%', 'background':'#337AB7'});
			 	$('#volume-button').css({'background':'red'});
			 	mediaPlayer.volume = 0;
			 }
	}else{
			var plus = Math.floor(100 * 0.1);
			volume = volume + plus;
			mediaPlayer.volume +=  0.1;
			$('#volume-vertical').css({'height':  volume + '%', 'background':'#337AB7'});
			$('.volume-static-holder').css({'overflow':'hidden'});
			if(volume > 90){
			 	volume = 100;
			 	$('#volume-vertical').css({'height': volume + '%', 'background':'#337AB7'});
			 	mediaPlayer.volume = 1;
			 }
			 if(volume > 10){
			 	$('#volume-button').css({'background':'#fff'});
			 }
	}
}
// Changes the volume on the media player
Changes the volume on the media player
Changes the volume on the media player
function changeVolume(sign) {
	if(sign==='-'){
			var minus = Math.floor(100 * 0.1); 
			volume -= minus;
			mediaPlayer.volume -=  0.1;
			$('#volume-vertical').css({'height':  volume + '%', 'background':'#337AB7'});
			$('.volume-static-holder').css({'overflow':'hidden'});
			 if(volume < 10){
			 	volume = 10;
			 	$('#volume-vertical').css({'height': volume + '%', 'background':'#337AB7'});
			 	$('#volume-button').css({'background':'red'});
			 	mediaPlayer.volume = 0;
			 }
	}else{
			var plus = Math.floor(100 * 0.1);
			volume = volume + plus;
			mediaPlayer.volume +=  0.1;
			$('#volume-vertical').css({'height':  volume + '%', 'background':'#337AB7'});
			$('.volume-static-holder').css({'overflow':'hidden'});
			if(volume > 90){
			 	volume = 100;
			 	$('#volume-vertical').css({'height': volume + '%', 'background':'#337AB7'});
			 	mediaPlayer.volume = 1;
			 }
			 if(volume > 10){
			 	$('#volume-button').css({'background':'#fff'});
			 }
	}
}
function changeVolume ( sign ) { if ( sign === '-' ) { var minus = Math . floor ( 100 * 0.1 ) ; volume -= minus ; mediaPlayer . volume -= 0.1 ; $ ( '#volume-vertical' ) . css ( { 'height' : volume + '%' , 'background' : '#337AB7' } ) ; $ ( '.volume-static-holder' ) . css ( { 'overflow' : 'hidden' } ) ; if ( volume < 10 ) { volume = 10 ; $ ( '#volume-vertical' ) . css ( { 'height' : volume + '%' , 'background' : '#337AB7' } ) ; $ ( '#volume-button' ) . css ( { 'background' : 'red' } ) ; mediaPlayer . volume = 0 ; } } else { var plus = Math . floor ( 100 * 0.1 ) ; volume = volume + plus ; mediaPlayer . volume += 0.1 ; $ ( '#volume-vertical' ) . css ( { 'height' : volume + '%' , 'background' : '#337AB7' } ) ; $ ( '.volume-static-holder' ) . css ( { 'overflow' : 'hidden' } ) ; if ( volume > 90 ) { volume = 100 ; $ ( '#volume-vertical' ) . css ( { 'height' : volume + '%' , 'background' : '#337AB7' } ) ; mediaPlayer . volume = 1 ; } if ( volume > 10 ) { $ ( '#volume-button' ) . css ( { 'background' : '#fff' } ) ; } } }
Changes the volume on the media player
Changes the volume on the media player
// if (sign === '+') mediaPlayer.volume += mediaPlayer.volume == 1 ? 0 : 0.1; // else mediaPlayer.volume -= (mediaPlayer.volume == 0 ? 0 : 0.1); // mediaPlayer.volume = parseFloat(mediaPlayer.volume).toFixed(1);