diff --git a/js/main.js b/js/main.js index e9a3fb8..e4b9c9e 100644 --- a/js/main.js +++ b/js/main.js @@ -407,7 +407,7 @@ $(function(){ step: .1, slide: function(e, ui) { player.volume = ui.value; - if (ui.value < 0.2) { + if (ui.value < 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","silent"); } @@ -415,7 +415,7 @@ $(function(){ $("#volumeicon").removeClass(); $("#volumeicon").attr("class","full"); } - if (ui.value < 0.5 && ui.value > 0.2) { + if (ui.value <= 0.5 && ui.value >= 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","mid"); } @@ -444,7 +444,7 @@ $("#volumeicon").on("click", function(e) { save_volume_state(1); } } - if (player.volume < 0.2) { + if (player.volume < 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","silent"); } @@ -452,7 +452,7 @@ $("#volumeicon").on("click", function(e) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","full"); } - if (player.volume < 0.5 && player.volume > 0.2) { + if (player.volume <= 0.5 && player.volume >= 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","mid"); } @@ -472,7 +472,7 @@ $("#volumeicon").on("click", function(e) { last_volume = volume_state; player.volume = Number(volume_state); $('#volumeslider').slider('value',Number(volume_state)); - if (volume_state < 0.2) { + if (volume_state < 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","silent"); } @@ -480,7 +480,7 @@ $("#volumeicon").on("click", function(e) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","full"); } - if (volume_state < 0.5 && volume_state > 0.2) { + if (volume_state <= 0.5 && volume_state >= 0.1) { $("#volumeicon").removeClass(); $("#volumeicon").attr("class","mid"); }