1var sliderLiveStream, tooltipLiveStream, sliderValue, sliderVolume; 2 3function sliderLiveStreamSetup() { 4 try { 5 6 //Store frequently elements in variables 7 var slider = $('#slider'), 8 tooltip = $('.tooltip'); 9 10 //Hide the Tooltip at first 11 tooltip.hide(); 12 13 //Call the Slider 14 slider.slider({ 15 //Config 16 range: "min", 17 min: 0, 18 value: 100, 19 20 start: function (event, ui) { 21 tooltip.fadeIn('fast'); 22 }, 23 24 //Slider Event 25 slide: function (event, ui) { //When the slider is sliding 26 27 var value = slider.slider('value'), 28 volume = $('.volume'); 29 30 tooltip.css('left', value * 1.5).text(ui.value); //Adjust the tooltip accordingly 31 32 app.changeVolume(value); 33 gCurrentPlayerVolume = value / 100.00; 34 35 if (value <= 5) { 36 //volume.css('background-position', '0 0'); 37 } 38 else if (value <= 25) { 39 //volume.css('background-position', '0 -100px'); 40 } 41 else if (value <= 50) { 42 //volume.css('background-position', '0 -31px'); 43 } 44 else if (value <= 75) { 45 //volume.css('background-position', '0 -150px'); 46 } 47 else { 48 //volume.css('background-position', '0 -200px'); 49 }; 50 51 }, 52 53 stop: function (event, ui) { 54 tooltip.fadeOut('fast'); 55 }, 56 });� 57 //debugConsoleOutput("player.aspx::sliderLiveStreamSetup", "slider setup OK", true); 58 } 59 catch (e) { 60 debugConsoleOutput("player.aspx::sliderLiveStreamSetup", "ERROR in setup: " + e, true); 61 } 62 63}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.