equal
deleted
inserted
replaced
183 _vol = .5; |
183 _vol = .5; |
184 } |
184 } |
185 var _soundCtl = $(".Ldt-Ctrl-Sound"); |
185 var _soundCtl = $(".Ldt-Ctrl-Sound"); |
186 _soundCtl.removeClass("Ldt-Ctrl-Sound-Mute Ldt-Ctrl-Sound-Half Ldt-Ctrl-Sound-Full"); |
186 _soundCtl.removeClass("Ldt-Ctrl-Sound-Mute Ldt-Ctrl-Sound-Half Ldt-Ctrl-Sound-Full"); |
187 if (_muted) { |
187 if (_muted) { |
188 _soundCtl.attr("title", "Activer le son") |
188 _soundCtl.attr("title", gettext("Unmute")) |
189 .addClass("Ldt-Ctrl-Sound-Mute"); |
189 .addClass("Ldt-Ctrl-Sound-Mute"); |
190 } else { |
190 } else { |
191 _soundCtl.attr("title", "Couper le son") |
191 _soundCtl.attr("title", gettext("mute")) |
192 .addClass(_vol < .5 ? "Ldt-Ctrl-Sound-Half" : "Ldt-Ctrl-Sound-Full" ) |
192 .addClass(_vol < .5 ? "Ldt-Ctrl-Sound-Half" : "Ldt-Ctrl-Sound-Full" ) |
193 } |
193 } |
194 volBar.slider("value", _muted ? 0 : 100 * _vol); |
194 volBar.slider("value", _muted ? 0 : 100 * _vol); |
195 volBar.attr("title",'Volume : ' + Math.floor(100 * _vol) + '%'); |
195 volBar.attr("title",gettext("Volume:") + Math.floor(100 * _vol) + '%'); |
196 } |
196 } |
197 } |
197 } |
198 |
198 |
199 volBar.slider({ |
199 volBar.slider({ |
200 slide: function(event, ui) { |
200 slide: function(event, ui) { |
216 |
216 |
217 /* UI Events */ |
217 /* UI Events */ |
218 |
218 |
219 function onCurrentMediaPlay() { |
219 function onCurrentMediaPlay() { |
220 $(".Ldt-Ctrl-Play") |
220 $(".Ldt-Ctrl-Play") |
221 .attr("title", "Pause") |
221 .attr("title", gettext("Pause")) |
222 .removeClass("Ldt-Ctrl-Play-PlayState") |
222 .removeClass("Ldt-Ctrl-Play-PlayState") |
223 .addClass("Ldt-Ctrl-Play-PauseState") |
223 .addClass("Ldt-Ctrl-Play-PauseState") |
224 } |
224 } |
225 |
225 |
226 function onCurrentMediaPause() { |
226 function onCurrentMediaPause() { |
227 $(".Ldt-Ctrl-Play") |
227 $(".Ldt-Ctrl-Play") |
228 .attr("title", "Lecture") |
228 .attr("title", gettext("Play")) |
229 .removeClass("Ldt-Ctrl-Play-PauseState") |
229 .removeClass("Ldt-Ctrl-Play-PauseState") |
230 .addClass("Ldt-Ctrl-Play-PlayState") |
230 .addClass("Ldt-Ctrl-Play-PlayState") |
231 } |
231 } |
232 |
232 |
233 function onCurrentMediaTimeupdate(_time) { |
233 function onCurrentMediaTimeupdate(_time) { |