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