|
1 <?xml version="1.0"?> |
|
2 |
|
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
4 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
6 |
|
7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
|
8 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" [ |
|
9 <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd" > |
|
10 %globalDTD; |
|
11 <!ENTITY % configDTD SYSTEM "chrome://browser/locale/config.dtd"> |
|
12 %configDTD; |
|
13 ]> |
|
14 |
|
15 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
16 |
|
17 <head> |
|
18 <meta name="viewport" content="width=device-width; user-scalable=0" /> |
|
19 |
|
20 <link rel="stylesheet" href="chrome://browser/skin/config.css" type="text/css"/> |
|
21 <script type="text/javascript;version=1.8" src="chrome://browser/content/config.js"></script> |
|
22 </head> |
|
23 |
|
24 <body dir="&locale.dir;" onload="NewPrefDialog.init(); AboutConfig.init();" |
|
25 onunload="AboutConfig.uninit();"> |
|
26 |
|
27 <div class="toolbar"> |
|
28 <div class="toolbar-container"> |
|
29 <div id="new-pref-toggle-button" onclick="NewPrefDialog.toggleShowHide();"/> |
|
30 |
|
31 <div class="toolbar-item" id="filter-container"> |
|
32 <div id="filter-search-button"/> |
|
33 <input id="filter-input" type="search" placeholder="&toolbar.searchPlaceholder;" value="" |
|
34 oninput="AboutConfig.bufferFilterInput();"/> |
|
35 <div id="filter-input-clear-button" onclick="AboutConfig.clearFilterInput();"/> |
|
36 </div> |
|
37 </div> |
|
38 </div> |
|
39 |
|
40 <div id="content" ontouchstart="AboutConfig.filterInput.blur();"> |
|
41 |
|
42 <div id="new-pref-container"> |
|
43 <li class="pref-item" id="new-pref-item"> |
|
44 <div class="pref-item-line"> |
|
45 <input class="pref-name" id="new-pref-name" type="text" placeholder="&newPref.namePlaceholder;" |
|
46 onfocus="NewPrefDialog.focusName(event);" |
|
47 oninput="NewPrefDialog.updateName(event);"/> |
|
48 <select class="pref-value" id="new-pref-type" onchange="NewPrefDialog.type = event.target.value;"> |
|
49 <option value="boolean">&newPref.valueBoolean;</option> |
|
50 <option value="string">&newPref.valueString;</option> |
|
51 <option value="int">&newPref.valueInteger;</option> |
|
52 </select> |
|
53 </div> |
|
54 |
|
55 <div class="pref-item-line" id="new-pref-line-boolean"> |
|
56 <input class="pref-value" id="new-pref-value-boolean" disabled="disabled"/> |
|
57 <div class="pref-button toggle" onclick="NewPrefDialog.toggleBoolValue();">&newPref.toggleButton;</div> |
|
58 </div> |
|
59 |
|
60 <div class="pref-item-line"> |
|
61 <input class="pref-value" id="new-pref-value-string" placeholder="&newPref.stringPlaceholder;"/> |
|
62 <input class="pref-value" id="new-pref-value-int" placeholder="&newPref.numberPlaceholder;" type="number"/> |
|
63 </div> |
|
64 |
|
65 <div class="pref-item-line"> |
|
66 <div class="pref-button cancel" id="negative-button" onclick="NewPrefDialog.hide();">&newPref.cancelButton;</div> |
|
67 <div class="pref-button create" id="positive-button" onclick="NewPrefDialog.create(event);"></div> |
|
68 </div> |
|
69 </li> |
|
70 </div> |
|
71 |
|
72 <div id="prefs-shield"></div> |
|
73 |
|
74 <ul id="prefs-container"/> |
|
75 |
|
76 <ul id="loading-container"><li></li></ul> |
|
77 |
|
78 </div> |
|
79 |
|
80 <menu type="context" id="prefs-context-menu"> |
|
81 <menuitem label="&contextMenu.copyPrefName;" onclick="AboutConfig.clipboardCopy('name');"></menuitem> |
|
82 <menuitem label="&contextMenu.copyPrefValue;" onclick="AboutConfig.clipboardCopy('value');"></menuitem> |
|
83 </menu> |
|
84 |
|
85 </body> |
|
86 </html> |