]> git.sesse.net Git - vlc/blob - share/lua/http/dialogs/equalizer_window.html
79fbd1c97adfe0474c0954c5d4c4738af3db0f04
[vlc] / share / lua / http / dialogs / equalizer_window.html
1 <script language="javascript" type="text/javascript">
2         var bands       =       new Array('60Hz','170Hz','310Hz','600Hz','1kHz','3kHz','6kHz','12kHz','14kHz','16kHz');
3         $(function(){
4                 $('#window_equalizer').dialog({
5                         autoOpen: false,
6                         height: 650,
7                         width: 500,
8                         resizable: false,
9                         buttons:{
10                                 "Reset":function(){
11                                         $('.eqBand').each(function(){
12                                                 $(this).slider('value',0);
13                                                 sendEQCmd({
14                                                         command:'equalizer',
15                                                         val: 0,
16                                                         band: $(this).attr('id').substr(2)
17                                                 })
18                                         });
19
20                                 },
21                                 "Close":function(){
22                                         $(this).dialog("close");
23                                 }
24                         }
25                 });
26                 $('#preamp').slider({
27                         min: -20,
28                         max: 20,
29                         step: 0.1,
30                         range: "min",
31                         animate: true,
32                         stop: function(event,ui){
33                                 $('#preamp_txt').empty().append(ui.value+'dB');
34                                 sendEQCmd({
35                                         command:'preamp',
36                                         val: ui.value
37                                 })
38                         },
39                         slide: function(event,ui){
40                                 $('#preamp_txt').empty().append(ui.value+'dB');
41                         }
42                 });
43         });
44 </script>
45 <div id="window_equalizer" title="Graphical Equalizer">
46         <div style="margin: 5px 5px 5px 5px;">
47                 <div>Preamp: <span id="preamp_txt">0dB</span></div>
48         </div>
49         <div style="margin: 5px 5px 10px 5px;">
50                 <div id="preamp" style="font-size: 18px;"></div>
51         </div>
52 </div>