]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Plugson/www/plugson_control.html
1. Add VTOY_WIN11_BYPASS_NRO option in Global Control Plugin.
[Ventoy.git] / Plugson / www / plugson_control.html
1 <div class="box box-primary" id="control">
2 <div class="box-header">
3 <div class="col-sm-7" style="padding-top:8px;">
4 <i class="fa fa-wrench">&nbsp;&nbsp;</i>
5 <h1 class="box-title" style="font-weight:bold;" id="id_h1_page_title">全局控制插件</h1>
6 </div>
7
8 <div class="col-sm-2" style="padding-top:2px;">
9 <button id="id_btn_collapse" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-minus"></i></button>
10 <button id="id_btn_expand" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-plus"></i></button>
11 </div>
12
13 <div class="col-sm-1" style="padding-top:2px;">
14 <button id="id_btn_reset" class="btn btn-sm btn-danger btn-del"><i class="fa fa-trash"></i><span id="id_btn_span_reset">Reset</span></button>
15 </div>
16
17 <div class="col-sm-2" style="font-size:16px;padding-top:8px;">
18 <a id="id_a_official_doc" target="_blank" href="https://www.ventoy.net/cn/plugin_control.html"><span class="fa fa-link"></span><span id="id_span_official_doc">官网文档</span></a>
19 </div>
20 </div>
21 <legend></legend>
22
23 <div class="box-body">
24 <div class="nav-tabs-custom">
25 <ul class="nav nav-tabs" id="id_tab_control">
26 <li class=""><a href="#tab_0" data-toggle="tab" aria-expanded="false" style="font-weight:bold" >control</a></li>
27 <li class=""><a href="#tab_1" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_legacy</a></li>
28 <li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_uefi</a></li>
29 <li class=""><a href="#tab_3" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_ia32</a></li>
30 <li class=""><a href="#tab_4" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_aa64</a></li>
31 <li class=""><a href="#tab_5" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_mips</a></li>
32 </ul>
33 </div>
34
35
36 <div class="box box-primary box-solid">
37 <div class="box-header with-border">
38 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MENU_LANGUAGE
39 <span id="id_span_desc_cn"> —— 菜单语言</span></h3>
40 <div class="box-tools pull-right">
41 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
42 </div><!-- /.box-tools -->
43 </div><!-- /.box-header -->
44 <div class="box-body no-padding">
45 <table class="table table-bordered no-padding">
46 <tr style="font-weight:bold;">
47 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
48 <td>
49 <select id="id_ctrl_sel_menu_lang" name="name_ctrl_sel_menu_lang" class="form-control">
50
51 </select>
52 </td>
53 </tr>
54 <tr id="tr_title_desc_cn">
55 <td class="td_ctrl_col">选项说明</td>
56 <td>
57 Ventoy 菜单的语言版本。默认是 "en_US"。
58 </td>
59 </tr>
60 <tr id="tr_title_desc_en">
61 <td class="td_ctrl_col">Option Description</td>
62 <td>
63 Ventoy menu language. Default is "en_US",
64 </td>
65 </tr>
66 </table>
67 </div><!-- /.box-body -->
68 </div><!-- /.box -->
69
70
71
72 <div class="box box-primary box-solid">
73 <div class="box-header with-border">
74 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_SEARCH_ROOT
75 <span id="id_span_desc_cn"> —— 指定搜索目录</span></h3>
76 <div class="box-tools pull-right">
77 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
78 </div><!-- /.box-tools -->
79 </div><!-- /.box-header -->
80 <div class="box-body no-padding">
81 <table class="table table-bordered no-padding">
82 <tr style="font-weight:bold;">
83 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
84 <td>
85 <div class="col-sm-9" style="padding-left:0px;">
86 <input type="text" class="form-control" id="id_ctrl_text_search_root" name="name_ctrl_text_search_root" disabled="disabled"/>
87 </div>
88 <div class="col-sm-1" id="id_ctrl_div_root_status">
89 <span id="id_ctrl_span_search_root_valid" style="line-height: 2;" class="badge bg-green">有效</span>
90 <span id="id_ctrl_span_search_root_invalid" style="line-height: 2;" class="badge bg-red">无效</span>
91 </div>
92 <div class="col-sm-1">
93 <button id="id_ctrl_btn_sel_root" class="btn btn-primary btn-add"><span class="fa fa-edit"></span><span id="id_span_edit"> 设置</span></button>
94 </div>
95 <div class="col-sm-1">
96 <button id="id_ctrl_btn_clr_root" class="btn btn-danger btn-del"><span class="fa fa-trash"></span><span id="id_span_clear"> 清除</span></button>
97 </div>
98 </td>
99 </tr>
100 <tr id="tr_title_desc_cn">
101 <td class="td_ctrl_col">选项说明</td>
102 <td>
103 指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。<br/>
104 这种情况下你可以把ISO文件单独放在某个子目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。<br/>
105 注意这里不能设置为U盘根目录,必须为一个子目录。
106 </td>
107 </tr>
108 <tr id="tr_title_desc_en">
109 <td class="td_ctrl_col">Option Description</td>
110 <td>
111 The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB.
112 In this case, you can put all the image files in one subdirectory and use this to specify the search path.
113 After that Ventoy will only search this directory and its subdirectories for image files.<br/>
114 Note: the path must not be the mountpoint of the first partition, but a subdirectory.
115 </td>
116 </tr>
117 </table>
118 </div><!-- /.box-body -->
119 </div><!-- /.box -->
120
121
122 <div class="box box-primary box-solid">
123 <div class="box-header with-border">
124 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_WIN11_BYPASS_CHECK
125 <span id="id_span_desc_cn"> —— 绕过Windows 11硬件检查</span></h3>
126 <div class="box-tools pull-right">
127 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
128 </div><!-- /.box-tools -->
129 </div><!-- /.box-header -->
130 <div class="box-body no-padding">
131 <table class="table table-bordered no-padding">
132 <tr style="font-weight:bold;">
133 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
134 <td>
135 <label class="radio-inline">
136 <input type="radio" id="id_ctrl_bypass_win11_radio0" name="id_ctrl_bypass_win11_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
137 </label>&nbsp;&nbsp;&nbsp;&nbsp;
138 <label class="radio-inline">
139 <input type="radio" id="id_ctrl_bypass_win11_radio1" name="id_ctrl_bypass_win11_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
140 </label>
141 </td>
142 </tr>
143 <tr id="tr_title_desc_cn">
144 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
145 <td>
146 <code style="font-weight: bold;">0</code> 不绕过Windows 11安装时的硬件检查。<br/>
147 <code style="font-weight: bold;">1</code> 绕过Windows 11安装时的硬件检查。<br/><br/>
148 该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。
149 当设置为1时,Ventoy 会在安装时创建以下几个注册表项用来绕过 Windows 11 安装程序的硬件检查。<br/>
150 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
151 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck</code><br/>
152 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck</code><br/>
153 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassCPUCheck</code><br/>
154 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassStorageCheck</code><br/>
155 </td>
156 </tr>
157 <tr id="tr_title_desc_en">
158 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
159 <td>
160 <code style="font-weight: bold;">0</code> Do not bypass Windows 11 hardware check.<br/>
161 <code style="font-weight: bold;">1</code> Bypass Windows 11 hardware check. <br/><br/>
162 This option only avaliable for standard Windows 11 ISO files.
163 When set to 1, Ventoy will create the following registries to bypass Windows 11 hardware check when install. <br/>
164 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
165 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck</code><br/>
166 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck</code><br/>
167 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassCPUCheck</code><br/>
168 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassStorageCheck</code><br/>
169 </td>
170 </tr>
171 </table>
172 </div><!-- /.box-body -->
173 </div><!-- /.box -->
174
175
176
177 <div class="box box-primary box-solid">
178 <div class="box-header with-border">
179 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_WIN11_BYPASS_NRO
180 <span id="id_span_desc_cn"> —— 绕过Windows 11 在线账户需求</span></h3>
181 <div class="box-tools pull-right">
182 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
183 </div><!-- /.box-tools -->
184 </div><!-- /.box-header -->
185 <div class="box-body no-padding">
186 <table class="table table-bordered no-padding">
187 <tr style="font-weight:bold;">
188 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
189 <td>
190 <label class="radio-inline">
191 <input type="radio" id="id_ctrl_bypass_nro_radio0" name="id_ctrl_bypass_nro_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
192 </label>&nbsp;&nbsp;&nbsp;&nbsp;
193 <label class="radio-inline">
194 <input type="radio" id="id_ctrl_bypass_nro_radio1" name="id_ctrl_bypass_nro_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
195 </label>
196 </td>
197 </tr>
198 <tr id="tr_title_desc_cn">
199 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
200 <td>
201 <code style="font-weight: bold;">0</code> 不绕过Windows 11安装时的在线账户需求。<br/>
202 <code style="font-weight: bold;">1</code> 绕过Windows 11安装时的在线账户需求。<br/><br/>
203 该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。
204 当设置为1时,Ventoy 会在安装时创建以下注册表项用来绕过 Windows 11 安装时对在线账户的需求。<br/>
205 <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO</code><br/>
206 </td>
207 </tr>
208 <tr id="tr_title_desc_en">
209 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
210 <td>
211 <code style="font-weight: bold;">0</code> Do not bypass Windows 11 online account requirement.<br/>
212 <code style="font-weight: bold;">1</code> Bypass Windows 11 online account requirement. <br/><br/>
213 This option only avaliable for standard Windows 11 ISO files.
214 When set to 1, Ventoy will create the following registry to bypass Windows 11 online account requirement when install. <br/>
215 <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO</code>
216 </td>
217 </tr>
218 </table>
219 </div><!-- /.box-body -->
220 </div><!-- /.box -->
221
222
223
224
225
226
227 <div class="box box-primary box-solid">
228 <div class="box-header with-border">
229 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_MENU_MODE
230 <span id="id_span_desc_cn"> —— 菜单显示模式</span></h3>
231 <div class="box-tools pull-right">
232 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
233 </div><!-- /.box-tools -->
234 </div><!-- /.box-header -->
235 <div class="box-body no-padding">
236 <table class="table table-bordered no-padding">
237 <tr style="font-weight:bold;">
238 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
239 <td>
240 <label class="radio-inline">
241 <input type="radio" id="id_ctrl_radio_menu_mode0" name="id_ctrl_radio_menu_mode" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
242 </label>&nbsp;&nbsp;&nbsp;&nbsp;
243 <label class="radio-inline">
244 <input type="radio" id="id_ctrl_radio_menu_mode1" name="id_ctrl_radio_menu_mode" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
245 </label>
246 </td>
247 </tr>
248 <tr id="tr_title_desc_cn">
249 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
250 <td>启动菜单默认显示模式,
251 <code style="font-weight: bold;">0</code> 列表模式 &nbsp;&nbsp;
252 <code style="font-weight: bold;">1</code> TreeView(目录树) 模式</td>
253 </tr>
254 <tr id="tr_title_desc_en">
255 <td class="td_ctrl_col">Option Description</td>
256 <td>
257 Default boot menu display mode.
258 <code style="font-weight: bold;">0</code> ListView Mode &nbsp;&nbsp
259 <code style="font-weight: bold;">1</code> TreeView Mode
260 </td>
261 </tr>
262 </table>
263 </div><!-- /.box-body -->
264 </div><!-- /.box -->
265
266
267
268
269
270
271
272 <div class="box box-primary box-solid">
273 <div class="box-header with-border">
274 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MENU_TIMEOUT
275 <span id="id_span_desc_cn"> —— 启动倒计时</span></h3>
276 <div class="box-tools pull-right">
277 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
278 </div><!-- /.box-tools -->
279 </div><!-- /.box-header -->
280 <div class="box-body no-padding">
281 <table class="table table-bordered no-padding">
282 <tr style="font-weight:bold;">
283 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
284 <td>
285 <div class="col-sm-9" style="padding-left:0px;">
286 <input type="text" class="form-control" id="id_ctrl_text_timeout" name="name_ctrl_text_timeout"/>
287 </div>
288 </td>
289 </tr>
290 <tr id="tr_title_desc_cn">
291 <td class="td_ctrl_col">选项说明</td>
292 <td>
293 菜单倒计时(秒)。默认为0(即没有超时时间),设置之后,比如设置为10,则在倒计时10秒之后,会自动启动选中的镜像文件。在倒计时的过程中按任意键会停止倒计时,等待用户操作。
294 </td>
295 </tr>
296 <tr id="tr_title_desc_en">
297 <td class="td_ctrl_col">Option Description</td>
298 <td>
299 Menu timeout (seconds). Default value is 0 (no timeout is set). <br/>
300 When you set it to 10 for example, the selected image will be booted automatically after 10 seconds.
301 During the countdown, pressing any key will stop the countdown and wait for user operation.
302 </td>
303 </tr>
304 </table>
305 </div><!-- /.box-body -->
306 </div><!-- /.box -->
307
308
309
310 <div class="box box-primary box-solid">
311 <div class="box-header with-border">
312 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_IMAGE
313 <span id="id_span_desc_cn"> —— 默认选中的镜像文件</span></h3>
314 <div class="box-tools pull-right">
315 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
316 </div><!-- /.box-tools -->
317 </div><!-- /.box-header -->
318 <div class="box-body no-padding">
319 <table class="table table-bordered no-padding">
320 <tr style="font-weight:bold;">
321 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
322 <td>
323 <div class="col-sm-9" style="padding-left:0px;">
324 <input type="text" class="form-control" id="id_ctrl_text_default_img" name="name_id_ctrl_text_default_img" disabled="disabled"/>
325 </div>
326 <div class="col-sm-1" id="id_ctrl_div_img_status">
327 <span id="id_ctrl_span_img_valid" style="line-height: 2;" class="badge bg-green">有效</span>
328 <span id="id_ctrl_span_img_invalid" style="line-height: 2;" class="badge bg-red">无效</span>
329 </div>
330 <div class="col-sm-1">
331 <button id="id_ctrl_btn_default_img" class="btn btn-primary btn-add"><span class="fa fa-edit"></span><span id="id_span_edit"> 设置</span></button>
332 </div>
333 <div class="col-sm-1">
334 <button id="id_ctrl_btn_clr_default" class="btn btn-danger btn-del"><span class="fa fa-trash"></span><span id="id_span_clear"> 清除</span></button>
335 </div>
336 </td>
337 </tr>
338 <tr id="tr_title_desc_cn">
339 <td class="td_ctrl_col">选项说明</td>
340 <td>
341 正常情况下默认选中的是第1个镜像文件。通过这个选项可以设置默认选中的镜像文件,一般和 VTOY_MENU_TIMEOUT 一起使用。<br/>
342 可以设置为 WIM/VHD/IMG 等支持的文件,必须是以 / 开始的全路径,ListView模式和TreeView模式都支持。 <br/>
343 注意,当同时设置了 VTOY_DEFAULT_SEARCH_ROOT 以后,VTOY_DEFAULT_IMAGE 对应的文件必须位于 VTOY_DEFAULT_SEARCH_ROOT 对应的目录下,否则不会生效。
344 </td>
345 </tr>
346 <tr id="tr_title_desc_en">
347 <td class="td_ctrl_col">Option Description</td>
348 <td>
349 Default selected image path. Normally used with VTOY_MENU_TIMEOUT. <br/>It can be ISO/WIM/VHD/IMG ... and supported in both ListView mode and TreeView mode.<br/>
350 Attention that, when VTOY_DEFAULT_SEARCH_ROOT is set, VTOY_DEFAULT_IMAGE must be in the directory (or sub-directory) of VTOY_DEFAULT_SEARCH_ROOT, otherwise it will not take effect.
351 </td>
352 </tr>
353 </table>
354 </div><!-- /.box-body -->
355 </div><!-- /.box -->
356
357
358
359
360
361
362
363
364 <div class="box box-primary box-solid">
365 <div class="box-header with-border">
366 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MAX_SEARCH_LEVEL
367 <span id="id_span_desc_cn"> —— 最大搜索目录深度</span></h3>
368 <div class="box-tools pull-right">
369 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
370 </div><!-- /.box-tools -->
371 </div><!-- /.box-header -->
372 <div class="box-body no-padding">
373 <table class="table table-bordered no-padding">
374 <tr style="font-weight:bold;">
375 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
376 <td>
377 <select id="id_ctrl_sel_max_depth" name="name_ctrl_sel_max_depth" class="form-control">
378 <option title="max" selected>max</option>
379 <option title="0">0</option>
380 <option title="1">1</option>
381 <option title="2">2</option>
382 <option title="3">3</option>
383 <option title="4">4</option>
384 <option title="5">5</option>
385 <option title="6">6</option>
386 <option title="7">7</option>
387 <option title="8">8</option>
388 <option title="9">9</option>
389 <option title="10">10</option>
390 </select>
391 </td>
392 </tr>
393 <tr id="tr_title_desc_cn">
394 <td class="td_ctrl_col">选项说明</td>
395 <td>
396 最大搜索子目录的层数,取值为:<code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
397 &nbsp;&nbsp;&nbsp;默认值为:<code>max</code><br/>
398 默认Ventoy会递归搜索磁盘上的所有目录和子目录,不管目录结构有多深都会搜索到底。你可以通过这个参数来控制搜索时的路径深度。<br/><br/>
399 <code>max</code> : 最大层数,也就是搜索所有子目录的意思。这也是 Ventoy 的默认值。<br/>
400 <code>0</code> : 搜索0层子目录,只列出根目录下的文件,不去搜索任何一个子目录。<br/>
401 <code>1</code> : 搜索1层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录。但是不再搜索1级子目录下的子目录(2级子目录)。<br/>
402 <code>2</code> : 搜索2层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录以及1级子目录下的子目录(2级子目录)。<br/>
403 <code>3</code> : 搜索3层子目录,......<br/>
404 <code>...</code><br/><br/>
405 注意,如果 <code>VTOY_DEFAULT_SEARCH_ROOT</code> 参数也同时设置了的话,则就以 <code>VTOY_DEFAULT_SEARCH_ROOT</code> 指定的目录作为根目录开始计算。
406 </td>
407 </tr>
408 <tr id="tr_title_desc_en">
409 <td class="td_ctrl_col">Option Description</td>
410 <td>
411 Max subdirectory level when search for image files. It's value can be: <code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
412 &nbsp;&nbsp;&nbsp;default is : <code>max</code><br/>
413 By default, Ventoy will search all the directories and sub directories recursively no matter how deep the directory level is.<br/>
414 You can use this parameter to set a max-depth for the search path.<br/><br/>
415 <code>max</code> : Maximum, search all the directories and subdirectories. This is Ventoy's default value.<br/>
416 <code>0</code> : Only search files in the root and don't search any subdirectories.<br/>
417 <code>1</code> : Search up to level 1 of subdirectories.<br/>
418 <code>2</code> : Search up to level 2 of subdirectories.<br/>
419 <code>3</code> : Search up to level 3 of subdirectories.<br/>
420 <code>...</code><br/><br/>
421 If <code>VTOY_DEFAULT_SEARCH_ROOT</code> is set at the same time. Then the level is counted from <code>VTOY_DEFAULT_SEARCH_ROOT</code> .
422 </td>
423 </tr>
424 </table>
425 </div><!-- /.box-body -->
426 </div><!-- /.box -->
427
428
429
430 <div class="box box-primary box-solid">
431 <div class="box-header with-border">
432 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_LINUX_REMOUNT
433 <span id="id_span_desc_cn"> —— Linux 启动后继续访问ISO文件所在分区</span></h3>
434 <div class="box-tools pull-right">
435 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
436 </div><!-- /.box-tools -->
437 </div><!-- /.box-header -->
438 <div class="box-body no-padding">
439 <table class="table table-bordered no-padding">
440 <tr style="font-weight:bold;">
441 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
442 <td>
443 <label class="radio-inline">
444 <input type="radio" id="id_ctrl_linux_remount_radio0" name="id_ctrl_linux_remount_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
445 </label>&nbsp;&nbsp;&nbsp;&nbsp;
446 <label class="radio-inline">
447 <input type="radio" id="id_ctrl_linux_remount_radio1" name="id_ctrl_linux_remount_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
448 </label>
449 </td>
450 </tr>
451 <tr id="tr_title_desc_cn">
452 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
453 <td>
454 <code style="font-weight: bold;">0</code> Linux启动后不需要继续访问ISO文件所在的分区。<br/>
455 <code style="font-weight: bold;">1</code> Linux启动后需要继续访问ISO文件所在的分区。<br/><br/>
456 该选项只对 Linux 系统镜像有效。<br/>
457 默认情况下,受Linux内核相关功能的限制,对于Linux系统,在启动后无法继续访问ISO文件所在的分区。在mount的时候会提示 device busy。<br/>
458 如果这里选择 1,则 Ventoy 会尝试通过一些特殊的手段绕过内核的这个限制,但是这个功能是实验性质的,没有经过大规模和长时间的验证。
459 </td>
460 </tr>
461 <tr id="tr_title_desc_en">
462 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
463 <td>
464 <code style="font-weight: bold;">0</code> I don't need to access the image partition after boot.<br/>
465 <code style="font-weight: bold;">1</code> I need to access the image partition after boot. <br/><br/>
466 This option is only avaliable for Linux distro image files. <br/>
467
468 By default, the image partition where the ISO files locate can not be accessed after boot. When you try to mount it you will get device busy error.
469 This is due to linux kernel restriction (device-mapper module).<br/>
470 If you select 1 here, Ventoy will try to bypass the restriction with some special mechanism.<br/>
471 But it should be noted that, this is an experimental feature and is not fully tested.
472
473 </td>
474 </tr>
475 </table>
476 </div><!-- /.box-body -->
477 </div><!-- /.box -->
478
479
480
481 <div class="box box-primary box-solid">
482 <div class="box-header with-border">
483 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SECONDARY_BOOT_MENU
484 <span id="id_span_desc_cn"> —— 二级启动菜单显示开关</span></h3>
485 <div class="box-tools pull-right">
486 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
487 </div><!-- /.box-tools -->
488 </div><!-- /.box-header -->
489 <div class="box-body no-padding">
490 <table class="table table-bordered no-padding">
491 <tr style="font-weight:bold;">
492 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
493 <td>
494 <label class="radio-inline">
495 <input type="radio" id="id_ctrl_secondary_radio0" name="id_ctrl_secondary_radio" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
496 </label>&nbsp;&nbsp;&nbsp;&nbsp;
497 <label class="radio-inline">
498 <input type="radio" id="id_ctrl_secondary_radio1" name="id_ctrl_secondary_radio" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
499 </label>
500 </td>
501 </tr>
502 <tr id="tr_title_desc_cn">
503 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
504 <td>二级启动菜单控制开关
505 <code style="font-weight: bold;">0</code> 不显示 &nbsp;&nbsp;
506 <code style="font-weight: bold;">1</code> 显示
507 </td>
508 </tr>
509 <tr id="tr_title_desc_en">
510 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
511 <td>
512 Secondary boot menu display option
513 <code style="font-weight: bold;">0</code> Don't display &nbsp;&nbsp;&nbsp;
514 <code style="font-weight: bold;">1</code> Display
515 </td>
516 </tr>
517 </table>
518 </div><!-- /.box-body -->
519 </div><!-- /.box -->
520
521
522 <div class="box box-primary box-solid">
523 <div class="box-header with-border">
524 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SHOW_PASSWORD_ASTERISK
525 <span id="id_span_desc_cn"> —— 输入密码时显示星号</span></h3>
526 <div class="box-tools pull-right">
527 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
528 </div><!-- /.box-tools -->
529 </div><!-- /.box-header -->
530 <div class="box-body no-padding">
531 <table class="table table-bordered no-padding">
532 <tr style="font-weight:bold;">
533 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
534 <td>
535 <label class="radio-inline">
536 <input type="radio" id="id_ctrl_asterisk_radio0" name="id_ctrl_asterisk_radio" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
537 </label>&nbsp;&nbsp;&nbsp;&nbsp;
538 <label class="radio-inline">
539 <input type="radio" id="id_ctrl_asterisk_radio1" name="id_ctrl_asterisk_radio" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
540 </label>
541 </td>
542 </tr>
543 <tr id="tr_title_desc_cn">
544 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
545 <td>输入密码时是否显示星号
546 <code style="font-weight: bold;">0</code> 不显示 &nbsp;&nbsp;
547 <code style="font-weight: bold;">1</code> 显示
548 </td>
549 </tr>
550 <tr id="tr_title_desc_en">
551 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
552 <td>
553 Display asterisk when typing password
554 <code style="font-weight: bold;">0</code> Don't display &nbsp;&nbsp;&nbsp;
555 <code style="font-weight: bold;">1</code> Display
556 </td>
557 </tr>
558 </table>
559 </div><!-- /.box-body -->
560 </div><!-- /.box -->
561
562
563
564 <div class="box box-primary box-solid">
565 <div class="box-header with-border">
566 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SECONDARY_TIMEOUT
567 <span id="id_span_desc_cn"> —— 二级启动菜单倒计时</span></h3>
568 <div class="box-tools pull-right">
569 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
570 </div><!-- /.box-tools -->
571 </div><!-- /.box-header -->
572 <div class="box-body no-padding">
573 <table class="table table-bordered no-padding">
574 <tr style="font-weight:bold;">
575 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
576 <td>
577 <div class="col-sm-9" style="padding-left:0px;">
578 <input type="text" class="form-control" id="id_ctrl_text_secondary_timeout" name="name_ctrl_text_secondary_timeout"/>
579 </div>
580 </td>
581 </tr>
582 <tr id="tr_title_desc_cn">
583 <td class="td_ctrl_col">选项说明</td>
584 <td>
585 二级菜单倒计时(秒)。只有当 <code>VTOY_SECONDARY_BOOT_MENU</code> 设置为1时才有效。<br/>
586 默认不设置,设置之后,比如设置为10,则在倒计时10秒之后,会自动选择第一项,即:<code>Boot in normal mode</code> <br/>
587 在倒计时的过程中按任意键会停止倒计时,等待用户操作。
588 </td>
589 </tr>
590 <tr id="tr_title_desc_en">
591 <td class="td_ctrl_col">Option Description</td>
592 <td>
593 Timeout seconds for the secondary boot menu. Only take effect when <code>VTOY_SECONDARY_BOOT_MENU</code> is 1.<br/>
594 By default no timeout is set. When you set it to 10 for example, the first entry (<code>Boot in normal mode</code>) will be selected an run after 10 seconds.
595 </td>
596 </tr>
597 </table>
598 </div><!-- /.box-body -->
599 </div><!-- /.box -->
600
601
602
603
604 <div class="box box-primary box-solid">
605 <div class="box-header with-border">
606 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_KBD_LAYOUT
607 <span id="id_span_desc_cn"> —— 默认键盘布局</span></h3>
608 <div class="box-tools pull-right">
609 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
610 </div><!-- /.box-tools -->
611 </div><!-- /.box-header -->
612 <div class="box-body no-padding">
613 <table class="table table-bordered no-padding">
614 <tr style="font-weight:bold;">
615 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
616 <td>
617 <select id="id_ctrl_sel_kbd" name="name_ctrl_sel_kbd" class="form-control">
618 <option title="QWERTY_USA" selected>QWERTY_USA</option>
619 <option title="AZERTY">AZERTY</option>
620 <option title="CZECH_QWERTY">CZECH_QWERTY</option>
621 <option title="CZECH_QWERTZ">CZECH_QWERTZ</option>
622 <option title="DANISH">DANISH</option>
623 <option title="DVORAK_USA">DVORAK_USA</option>
624 <option title="FRENCH">FRENCH</option>
625 <option title="GERMAN">GERMAN</option>
626 <option title="ITALIANO">ITALIANO</option>
627 <option title="JAPAN_106">JAPAN_106</option>
628 <option title="LATIN_USA">LATIN_USA</option>
629 <option title="PORTU_BRAZIL">PORTU_BRAZIL</option>
630 <option title="QWERTY_UK">QWERTY_UK</option>
631 <option title="QWERTZ">QWERTZ</option>
632 <option title="QWERTZ_HUN">QWERTZ_HUN</option>
633 <option title="QWERTZ_SLOV_CROAT">QWERTZ_SLOV_CROAT</option>
634 <option title="SPANISH">SPANISH</option>
635 <option title="SWEDISH">SWEDISH</option>
636 <option title="TURKISH_Q">TURKISH_Q</option>
637 <option title="VIETNAMESE">VIETNAMESE</option>
638 </select>
639 </td>
640 </tr>
641 <tr id="tr_title_desc_cn">
642 <td class="td_ctrl_col">选项说明</td>
643 <td>
644 键盘布局
645 </td>
646 </tr>
647 <tr id="tr_title_desc_en">
648 <td class="td_ctrl_col">Option Description</td>
649 <td>
650 Keyboard Layout
651 </td>
652 </tr>
653 </table>
654 </div><!-- /.box-body -->
655 </div><!-- /.box -->
656
657
658
659
660 <div class="box box-primary box-solid">
661 <div class="box-header with-border">
662 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_TREE_VIEW_MENU_STYLE
663 <span id="id_span_desc_cn"> —— TreeView模式显示风格</span></h3>
664 <div class="box-tools pull-right">
665 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
666 </div><!-- /.box-tools -->
667 </div><!-- /.box-header -->
668 <div class="box-body no-padding">
669 <table class="table table-bordered no-padding">
670 <tr style="font-weight:bold;">
671 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
672 <td>
673 <label class="radio-inline">
674 <input type="radio" id="id_ctrl_radio_treestyle0" name="id_ctrl_radio_treestyle" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
675 </label>&nbsp;&nbsp;&nbsp;&nbsp;
676 <label class="radio-inline">
677 <input type="radio" id="id_ctrl_radio_treestyle1" name="id_ctrl_radio_treestyle" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
678 </label>
679 </td>
680 </tr>
681 <tr id="tr_title_desc_cn">
682 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
683 <td>TreeView模式下的菜单风格。
684 <code style="font-weight: bold;">0</code> 显示DIR和文件大小 &nbsp;&nbsp;&nbsp;
685 <code style="font-weight: bold;">1</code> 不显示DIR和文件大小。只在 VTOY_DEFAULT_MENU_MODE 为1时才有效。
686 </td>
687 </tr>
688 <tr id="tr_title_desc_en">
689 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
690 <td>
691 Menu style in TreeView mode.
692 <code style="font-weight: bold;">0</code> with DIR and file size prefix &nbsp;&nbsp;&nbsp;
693 <code style="font-weight: bold;">1</code> No DIR and file size. Default is 0.
694 </td>
695 </tr>
696 </table>
697 </div><!-- /.box-body -->
698 </div><!-- /.box -->
699
700
701 <div class="box box-primary box-solid">
702 <div class="box-header with-border">
703 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILT_DOT_UNDERSCORE_FILE
704 <span id="id_span_desc_cn"> —— 过滤以 ._ 开头的文件</span></h3>
705 <div class="box-tools pull-right">
706 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
707 </div><!-- /.box-tools -->
708 </div><!-- /.box-header -->
709 <div class="box-body no-padding">
710 <table class="table table-bordered no-padding">
711 <tr style="font-weight:bold;">
712 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
713 <td>
714 <label class="radio-inline">
715 <input type="radio" id="id_ctrl_radio_underscore0" name="id_ctrl_radio_underscore" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
716 </label>&nbsp;&nbsp;&nbsp;&nbsp;
717 <label class="radio-inline">
718 <input type="radio" id="id_ctrl_radio_underscore1" name="id_ctrl_radio_underscore" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
719 </label>
720 </td>
721 </tr>
722 <tr id="tr_title_desc_cn">
723 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
724 <td>过滤以 ._ 开头的文件。当使用苹果系统时,有时拷贝文件会产生一些 ._ 开头的文件,可以通过此选项过滤掉。
725 <code style="font-weight: bold;">0</code> 不过滤 &nbsp;&nbsp;
726 <code style="font-weight: bold;">1</code> 过滤
727 </td>
728 </tr>
729 <tr id="tr_title_desc_en">
730 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
731 <td>
732 Filter for files with prefix ._ in name. This will be useful when you use macOS (a lot of ._xxx file generated when you copy files).
733 <code style="font-weight: bold;">0</code> Don't filt &nbsp;&nbsp;&nbsp;
734 <code style="font-weight: bold;">1</code> Filt
735 </td>
736 </tr>
737 </table>
738 </div><!-- /.box-body -->
739 </div><!-- /.box -->
740
741
742
743 <div class="box box-primary box-solid">
744 <div class="box-header with-border">
745 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SORT_CASE_SENSITIVE
746 <span id="id_span_desc_cn"> —— 菜单排序时是否区分大小写</span></h3>
747 <div class="box-tools pull-right">
748 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
749 </div><!-- /.box-tools -->
750 </div><!-- /.box-header -->
751 <div class="box-body no-padding">
752 <table class="table table-bordered no-padding">
753 <tr style="font-weight:bold;">
754 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
755 <td>
756 <label class="radio-inline">
757 <input type="radio" id="id_ctrl_radio_casesensitive0" name="id_ctrl_radio_casesensitive" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
758 </label>&nbsp;&nbsp;&nbsp;&nbsp;
759 <label class="radio-inline">
760 <input type="radio" id="id_ctrl_radio_casesensitive1" name="id_ctrl_radio_casesensitive" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
761 </label>
762 </td>
763 </tr>
764 <tr id="tr_title_desc_cn">
765 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
766 <td>在菜单排序时是否大小写敏感。
767 <code style="font-weight: bold;">0</code> 不区分大小写 &nbsp;&nbsp;&nbsp; <code style="font-weight: bold;">1</code> 区分大小写
768 </td>
769 </tr>
770 <tr id="tr_title_desc_en">
771 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
772 <td>
773 Case sensitive when sort the ISO files or directories. &nbsp;&nbsp;&nbsp;
774 <code style="font-weight: bold;">0</code> case insensitive &nbsp;&nbsp;&nbsp;<code style="font-weight: bold;">1</code> case sensitive
775 </td>
776 </tr>
777 </table>
778 </div><!-- /.box-body -->
779 </div><!-- /.box -->
780
781
782
783 <div class="box box-primary box-solid">
784 <div class="box-header with-border">
785 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_VHD_NO_WARNING</h3>
786 <div class="box-tools pull-right">
787 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
788 </div><!-- /.box-tools -->
789 </div><!-- /.box-header -->
790 <div class="box-body no-padding">
791 <table class="table table-bordered no-padding">
792 <tr style="font-weight:bold;">
793 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
794 <td>
795 <label class="radio-inline">
796 <input type="radio" id="id_ctrl_radio_vhd_warning0" name="id_ctrl_radio_vhd_warning" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
797 </label>&nbsp;&nbsp;&nbsp;&nbsp;
798 <label class="radio-inline">
799 <input type="radio" id="id_ctrl_radio_vhd_warning1" name="id_ctrl_radio_vhd_warning" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
800 </label>
801 </td>
802 </tr>
803 <tr id="tr_title_desc_cn">
804 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
805 <td>
806 <code style="font-weight: bold;">0</code> 启动Windows VHD(x)时,如果U盘分区不是NTFS格式,则显示告警信息。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
807 <code style="font-weight: bold;">1</code> 不显示告警信息。
808 </td>
809 </tr>
810 <tr id="tr_title_desc_en">
811 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
812 <td>
813 <code style="font-weight: bold;">0</code> Show a warning message if the partition is not NTFS when booting VHD(x) file.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
814 <code style="font-weight: bold;">1</code> No warning message.
815 </td>
816 </tr>
817 </table>
818 </div><!-- /.box-body -->
819 </div><!-- /.box -->
820
821
822
823
824
825
826 <div class="box box-primary box-solid">
827 <div class="box-header with-border">
828 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_ISO
829 <span id="id_span_desc_cn"> —— 过滤 .iso 文件</span></h3>
830 <div class="box-tools pull-right">
831 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
832 </div><!-- /.box-tools -->
833 </div><!-- /.box-header -->
834 <div class="box-body no-padding">
835 <table class="table table-bordered no-padding">
836 <tr style="font-weight:bold;">
837 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
838 <td>
839 <label class="radio-inline">
840 <input type="radio" id="id_ctrl_radio_filt_iso0" name="id_ctrl_radio_filt_iso" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
841 </label>&nbsp;&nbsp;&nbsp;&nbsp;
842 <label class="radio-inline">
843 <input type="radio" id="id_ctrl_radio_filt_iso1" name="id_ctrl_radio_filt_iso" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
844 </label>
845 </td>
846 </tr>
847 <tr id="tr_title_desc_cn">
848 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
849 <td>
850 <code style="font-weight: bold;">0</code> 不过滤 .iso 文件 &nbsp;&nbsp; &nbsp;&nbsp;
851 <code style="font-weight: bold;">1</code> 过滤掉 .iso 文件。&nbsp;&nbsp; &nbsp;&nbsp;
852 过滤之后 .iso 文件就不会显示在启动菜单中。
853 </td>
854 </tr>
855 <tr id="tr_title_desc_en">
856 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
857 <td>
858 <code style="font-weight: bold;">0</code> List .iso files. &nbsp;&nbsp;&nbsp;&nbsp;
859 <code style="font-weight: bold;">1</code> Filter .iso files. &nbsp;&nbsp;&nbsp;&nbsp;
860 The iso files will not be shown in the boot menu if set to 1.
861 </td>
862 </tr>
863 </table>
864 </div><!-- /.box-body -->
865 </div><!-- /.box -->
866
867
868 <div class="box box-primary box-solid">
869 <div class="box-header with-border">
870 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_WIM
871 <span id="id_span_desc_cn"> —— 过滤 .wim 文件</span></h3>
872 <div class="box-tools pull-right">
873 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
874 </div><!-- /.box-tools -->
875 </div><!-- /.box-header -->
876 <div class="box-body no-padding">
877 <table class="table table-bordered no-padding">
878 <tr style="font-weight:bold;">
879 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
880 <td>
881 <label class="radio-inline">
882 <input type="radio" id="id_ctrl_radio_filt_wim0" name="id_ctrl_radio_filt_wim" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
883 </label>&nbsp;&nbsp;&nbsp;&nbsp;
884 <label class="radio-inline">
885 <input type="radio" id="id_ctrl_radio_filt_wim1" name="id_ctrl_radio_filt_wim" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
886 </label>
887 </td>
888 </tr>
889 <tr id="tr_title_desc_cn">
890 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
891 <td>
892 <code style="font-weight: bold;">0</code> 不过滤 .wim 文件 &nbsp;&nbsp; &nbsp;&nbsp;
893 <code style="font-weight: bold;">1</code> 过滤掉 .wim 文件。&nbsp;&nbsp; &nbsp;&nbsp;
894 过滤之后 .wim 文件就不会显示在启动菜单中。
895 </td>
896 </tr>
897 <tr id="tr_title_desc_en">
898 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
899 <td>
900 <code style="font-weight: bold;">0</code> List .wim files. &nbsp;&nbsp;&nbsp;&nbsp;
901 <code style="font-weight: bold;">1</code> Filter .wim files. &nbsp;&nbsp;&nbsp;&nbsp;
902 The wim files will not be shown in the boot menu if set to 1.
903 </td>
904 </tr>
905 </table>
906 </div><!-- /.box-body -->
907 </div><!-- /.box -->
908
909
910
911 <div class="box box-primary box-solid">
912 <div class="box-header with-border">
913 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_EFI
914 <span id="id_span_desc_cn"> —— 过滤 .efi 文件</span></h3>
915 <div class="box-tools pull-right">
916 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
917 </div><!-- /.box-tools -->
918 </div><!-- /.box-header -->
919 <div class="box-body no-padding">
920 <table class="table table-bordered no-padding">
921 <tr style="font-weight:bold;">
922 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
923 <td>
924 <label class="radio-inline">
925 <input type="radio" id="id_ctrl_radio_filt_efi0" name="id_ctrl_radio_filt_efi" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
926 </label>&nbsp;&nbsp;&nbsp;&nbsp;
927 <label class="radio-inline">
928 <input type="radio" id="id_ctrl_radio_filt_efi1" name="id_ctrl_radio_filt_efi" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
929 </label>
930 </td>
931 </tr>
932 <tr id="tr_title_desc_cn">
933 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
934 <td>
935 <code style="font-weight: bold;">0</code> 不过滤 .efi 文件 &nbsp;&nbsp; &nbsp;&nbsp;
936 <code style="font-weight: bold;">1</code> 过滤掉 .efi 文件。&nbsp;&nbsp; &nbsp;&nbsp;
937 过滤之后 .efi 文件就不会显示在启动菜单中。
938 </td>
939 </tr>
940 <tr id="tr_title_desc_en">
941 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
942 <td>
943 <code style="font-weight: bold;">0</code> List .efi files. &nbsp;&nbsp;&nbsp;&nbsp;
944 <code style="font-weight: bold;">1</code> Filter .efi files. &nbsp;&nbsp;&nbsp;&nbsp;
945 The efi files will not be shown in the boot menu if set to 1.
946 </td>
947 </tr>
948 </table>
949 </div><!-- /.box-body -->
950 </div><!-- /.box -->
951
952
953
954 <div class="box box-primary box-solid">
955 <div class="box-header with-border">
956 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_IMG
957 <span id="id_span_desc_cn"> —— 过滤 .img 文件</span></h3>
958 <div class="box-tools pull-right">
959 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
960 </div><!-- /.box-tools -->
961 </div><!-- /.box-header -->
962 <div class="box-body no-padding">
963 <table class="table table-bordered no-padding">
964 <tr style="font-weight:bold;">
965 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
966 <td>
967 <label class="radio-inline">
968 <input type="radio" id="id_ctrl_radio_filt_img0" name="id_ctrl_radio_filt_img" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
969 </label>&nbsp;&nbsp;&nbsp;&nbsp;
970 <label class="radio-inline">
971 <input type="radio" id="id_ctrl_radio_filt_img1" name="id_ctrl_radio_filt_img" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
972 </label>
973 </td>
974 </tr>
975 <tr id="tr_title_desc_cn">
976 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
977 <td>
978 <code style="font-weight: bold;">0</code> 不过滤 .img 文件 &nbsp;&nbsp; &nbsp;&nbsp;
979 <code style="font-weight: bold;">1</code> 过滤掉 .img 文件。&nbsp;&nbsp; &nbsp;&nbsp;
980 过滤之后 .img 文件就不会显示在启动菜单中。
981 </td>
982 </tr>
983 <tr id="tr_title_desc_en">
984 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
985 <td>
986 <code style="font-weight: bold;">0</code> List .img files. &nbsp;&nbsp;&nbsp;&nbsp;
987 <code style="font-weight: bold;">1</code> Filter .img files. &nbsp;&nbsp;&nbsp;&nbsp;
988 The img files will not be shown in the boot menu if set to 1.
989 </td>
990 </tr>
991 </table>
992 </div><!-- /.box-body -->
993 </div><!-- /.box -->
994
995
996
997 <div class="box box-primary box-solid">
998 <div class="box-header with-border">
999 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_VHD
1000 <span id="id_span_desc_cn"> —— 过滤 .vhd(x) 文件</span></h3>
1001 <div class="box-tools pull-right">
1002 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
1003 </div><!-- /.box-tools -->
1004 </div><!-- /.box-header -->
1005 <div class="box-body no-padding">
1006 <table class="table table-bordered no-padding">
1007 <tr style="font-weight:bold;">
1008 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
1009 <td>
1010 <label class="radio-inline">
1011 <input type="radio" id="id_ctrl_radio_filt_vhd0" name="id_ctrl_radio_filt_vhd" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
1012 </label>&nbsp;&nbsp;&nbsp;&nbsp;
1013 <label class="radio-inline">
1014 <input type="radio" id="id_ctrl_radio_filt_vhd1" name="id_ctrl_radio_filt_vhd" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
1015 </label>
1016 </td>
1017 </tr>
1018 <tr id="tr_title_desc_cn">
1019 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
1020 <td>
1021 <code style="font-weight: bold;">0</code> 不过滤 .vhd(x) 文件 &nbsp;&nbsp; &nbsp;&nbsp;
1022 <code style="font-weight: bold;">1</code> 过滤掉 .vhd(x) 文件。&nbsp;&nbsp; &nbsp;&nbsp;
1023 过滤之后 .vhd(x) 文件就不会显示在启动菜单中。
1024 </td>
1025 </tr>
1026 <tr id="tr_title_desc_en">
1027 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
1028 <td>
1029 <code style="font-weight: bold;">0</code> List .vhd(x) files. &nbsp;&nbsp;&nbsp;&nbsp;
1030 <code style="font-weight: bold;">1</code> Filter .vhd(x) files. &nbsp;&nbsp;&nbsp;&nbsp;
1031 The vhd(x) files will not be shown in the boot menu if set to 1.
1032 </td>
1033 </tr>
1034 </table>
1035 </div><!-- /.box-body -->
1036 </div><!-- /.box -->
1037
1038
1039
1040 <div class="box box-primary box-solid">
1041 <div class="box-header with-border">
1042 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_VTOY
1043 <span id="id_span_desc_cn"> —— 过滤 .vtoy 文件</span></h3>
1044 <div class="box-tools pull-right">
1045 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
1046 </div><!-- /.box-tools -->
1047 </div><!-- /.box-header -->
1048 <div class="box-body no-padding">
1049 <table class="table table-bordered no-padding">
1050 <tr style="font-weight:bold;">
1051 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
1052 <td>
1053 <label class="radio-inline">
1054 <input type="radio" id="id_ctrl_radio_filt_vtoy0" name="id_ctrl_radio_filt_vtoy" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
1055 </label>&nbsp;&nbsp;&nbsp;&nbsp;
1056 <label class="radio-inline">
1057 <input type="radio" id="id_ctrl_radio_filt_vtoy1" name="id_ctrl_radio_filt_vtoy" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
1058 </label>
1059 </td>
1060 </tr>
1061 <tr id="tr_title_desc_cn">
1062 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
1063 <td>
1064 <code style="font-weight: bold;">0</code> 不过滤 .vtoy 文件 &nbsp;&nbsp; &nbsp;&nbsp;
1065 <code style="font-weight: bold;">1</code> 过滤掉 .vtoy 文件。&nbsp;&nbsp; &nbsp;&nbsp;
1066 过滤之后 .vtoy 文件就不会显示在启动菜单中。
1067 </td>
1068 </tr>
1069 <tr id="tr_title_desc_en">
1070 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
1071 <td>
1072 <code style="font-weight: bold;">0</code> List .vtoy files. &nbsp;&nbsp;&nbsp;&nbsp;
1073 <code style="font-weight: bold;">1</code> Filter .vtoy files. &nbsp;&nbsp;&nbsp;&nbsp;
1074 The vtoy files will not be shown in the boot menu if set to 1.
1075 </td>
1076 </tr>
1077 </table>
1078 </div><!-- /.box-body -->
1079 </div><!-- /.box -->
1080
1081
1082
1083 </div>
1084
1085 </div>
1086 <script type="text/javascript">
1087
1088 function VtoyPageLanguageChange(newlang) {
1089 VtoyCommonChangeLanguage(newlang);
1090
1091 $('h1[id=id_h1_page_title]').text(g_vtoy_cur_language.STR_PLUG_CONTROL);
1092 $('#id_ctrl_span_search_root_valid').text(g_vtoy_cur_language.STR_VALID);
1093 $('#id_ctrl_span_search_root_invalid').text(g_vtoy_cur_language.STR_INVALID);
1094 $('#id_ctrl_span_img_valid').text(g_vtoy_cur_language.STR_VALID);
1095 $('#id_ctrl_span_img_invalid').text(g_vtoy_cur_language.STR_INVALID);
1096
1097 $("span[id=id_span_edit]").each(function(){
1098 $(this).text(' ' + g_vtoy_cur_language.STR_EDIT);
1099 });
1100
1101 $("span[id=id_span_clear]").each(function(){
1102 $(this).text(' ' + g_vtoy_cur_language.STR_CLEAR);
1103 });
1104 }
1105
1106 function VtoyGetCurrentPageItem(data) {
1107 var level;
1108
1109 data.win11_bypass_check = parseInt($('input:radio[name=id_ctrl_bypass_win11_radio]:checked').val());
1110 data.win11_bypass_nro = parseInt($('input:radio[name=id_ctrl_bypass_nro_radio]:checked').val());
1111 data.linux_remount = parseInt($('input:radio[name=id_ctrl_linux_remount_radio]:checked').val());
1112 data.secondary_menu = parseInt($('input:radio[name=id_ctrl_secondary_radio]:checked').val());
1113 data.password_asterisk = parseInt($('input:radio[name=id_ctrl_asterisk_radio]:checked').val());
1114 data.default_search_root = $('input:text[id=id_ctrl_text_search_root]').val();
1115 data.menu_timeout = parseInt($('input:text[id=id_ctrl_text_timeout]').val());
1116 data.secondary_menu_timeout = parseInt($('input:text[id=id_ctrl_text_secondary_timeout]').val());
1117 data.default_image = $('input:text[id=id_ctrl_text_default_img]').val();
1118
1119 level = $('select[id=id_ctrl_sel_max_depth').val();
1120 if (level === 'max') {
1121 data.max_search_level = -1;
1122 } else {
1123 data.max_search_level = parseInt(level);
1124 }
1125
1126 data.default_kbd_layout = $('select[id=id_ctrl_sel_kbd').val();
1127 data.default_menu_mode = parseInt($('input:radio[name=id_ctrl_radio_menu_mode]:checked').val());
1128 data.treeview_style = parseInt($('input:radio[name=id_ctrl_radio_treestyle]:checked').val());
1129
1130 data.filter_dot_underscore = parseInt($('input:radio[name=id_ctrl_radio_underscore]:checked').val());
1131 data.sort_casesensitive = parseInt($('input:radio[name=id_ctrl_radio_casesensitive]:checked').val());
1132
1133 data.vhd_no_warning = parseInt($('input:radio[name=id_ctrl_radio_vhd_warning]:checked').val());
1134 data.filter_iso = parseInt($('input:radio[name=id_ctrl_radio_filt_iso]:checked').val());
1135 data.filter_wim = parseInt($('input:radio[name=id_ctrl_radio_filt_wim]:checked').val());
1136 data.filter_efi = parseInt($('input:radio[name=id_ctrl_radio_filt_efi]:checked').val());
1137 data.filter_img = parseInt($('input:radio[name=id_ctrl_radio_filt_img]:checked').val());
1138 data.filter_vhd = parseInt($('input:radio[name=id_ctrl_radio_filt_vhd]:checked').val());
1139 data.filter_vtoy = parseInt($('input:radio[name=id_ctrl_radio_filt_vtoy]:checked').val());
1140
1141 data.menu_language = $('select[id=id_ctrl_sel_menu_lang').val();
1142 }
1143
1144 function VtoyFillCurrentPageItem(data) {
1145 //VTOY_WIN11_BYPASS_CHECK
1146 $('input:radio[name=id_ctrl_bypass_win11_radio]')[data.win11_bypass_check].checked = true;
1147 //VTOY_WIN11_BYPASS_NRO
1148 $('input:radio[name=id_ctrl_bypass_nro_radio]')[data.win11_bypass_nro].checked = true;
1149 $('input:radio[name=id_ctrl_linux_remount_radio]')[data.linux_remount].checked = true;
1150 $('input:radio[name=id_ctrl_secondary_radio]')[data.secondary_menu].checked = true;
1151 $('input:radio[name=id_ctrl_asterisk_radio]')[data.password_asterisk].checked = true;
1152
1153 //VTOY_DEFAULT_SEARCH_ROOT
1154 $('input:text[id=id_ctrl_text_search_root]').val(data.default_search_root);
1155 if (data.default_search_root.length === 0) {
1156 $('div[id=id_ctrl_div_root_status]').hide();
1157 } else {
1158 $('div[id=id_ctrl_div_root_status]').show();
1159 if (data.default_search_root_valid === 0) {
1160 $('span[id=id_ctrl_span_search_root_valid]').hide();
1161 $('span[id=id_ctrl_span_search_root_invalid]').show();
1162 } else {
1163 $('span[id=id_ctrl_span_search_root_valid]').show();
1164 $('span[id=id_ctrl_span_search_root_invalid]').hide();
1165 }
1166 }
1167
1168 //VTOY_MENU_TIMEOUT
1169 $('input:text[id=id_ctrl_text_timeout]').val(data.menu_timeout);
1170
1171 //VTOY_SECONDARY_TIMEOUT
1172 $('input:text[id=id_ctrl_text_secondary_timeout]').val(data.secondary_menu_timeout);
1173
1174
1175 //VTOY_DEFAULT_IMAGE
1176 $('input:text[id=id_ctrl_text_default_img]').val(data.default_image);
1177 if (data.default_image.length === 0) {
1178 $('div[id=id_ctrl_div_img_status]').hide();
1179 } else {
1180 $('div[id=id_ctrl_div_img_status]').show();
1181 if (data.default_image_valid === 0) {
1182 $('span[id=id_ctrl_span_img_valid]').hide();
1183 $('span[id=id_ctrl_span_img_invalid]').show();
1184 } else {
1185 $('span[id=id_ctrl_span_img_valid]').show();
1186 $('span[id=id_ctrl_span_img_invalid]').hide();
1187 }
1188 }
1189
1190 //VTOY_MAX_SEARCH_LEVEL
1191 if (data.max_search_level >=0 && data.max_search_level <= 10) {
1192 $('select[id=id_ctrl_sel_max_depth').val(data.max_search_level);
1193 } else {
1194 $('select[id=id_ctrl_sel_max_depth').val('max');
1195 }
1196
1197 //VTOY_DEFAULT_KBD_LAYOUT
1198 $('select[id=id_ctrl_sel_kbd').val(data.default_kbd_layout);
1199
1200 //VTOY_DEFAULT_MENU_MODE
1201 $('input:radio[name=id_ctrl_radio_menu_mode]')[data.default_menu_mode].checked = true;
1202
1203 //VTOY_TREE_VIEW_MENU_STYLE
1204 $('input:radio[name=id_ctrl_radio_treestyle]')[data.treeview_style].checked = true;
1205
1206 //VTOY_FILT_DOT_UNDERSCORE_FILE
1207 $('input:radio[name=id_ctrl_radio_underscore]')[data.filter_dot_underscore].checked = true;
1208
1209 //VTOY_SORT_CASE_SENSITIVE
1210 $('input:radio[name=id_ctrl_radio_casesensitive]')[data.sort_casesensitive].checked = true;
1211
1212 //VTOY_VHD_NO_WARNING
1213 $('input:radio[name=id_ctrl_radio_vhd_warning]')[data.vhd_no_warning].checked = true;
1214
1215 //VTOY_FILE_FLT_ISO
1216 $('input:radio[name=id_ctrl_radio_filt_iso]')[data.filter_iso].checked = true;
1217
1218 //VTOY_FILE_FLT_WIM
1219 $('input:radio[name=id_ctrl_radio_filt_wim]')[data.filter_wim].checked = true;
1220
1221 //VTOY_FILE_FLT_EFI
1222 $('input:radio[name=id_ctrl_radio_filt_efi]')[data.filter_efi].checked = true;
1223
1224 //VTOY_FILE_FLT_IMG
1225 $('input:radio[name=id_ctrl_radio_filt_img]')[data.filter_img].checked = true;
1226
1227
1228 //VTOY_FILE_FLT_VHD
1229 $('input:radio[name=id_ctrl_radio_filt_vhd]')[data.filter_vhd].checked = true;
1230
1231
1232 //VTOY_FILE_FLT_VTOY
1233 $('input:radio[name=id_ctrl_radio_filt_vtoy]')[data.filter_vtoy].checked = true;
1234
1235 //VTOY_MENU_LANGUAGE
1236 if ($("select[id=id_ctrl_sel_menu_lang")[0].options.length === 0)
1237 {
1238 for (var i = 0; i < data.menu_list.length; i++) {
1239 var hlang = data.menu_list[i];
1240 var opt = '<option title="'+hlang+'">'+hlang+'</option>';
1241 $('select[id=id_ctrl_sel_menu_lang').append(opt);
1242 }
1243 }
1244 $('select[id=id_ctrl_sel_menu_lang').val(data.menu_language);
1245 }
1246
1247 function VtoySaveCurrentPage() {
1248 VtoyGetCurrentPageItem(m_data_control[current_tab_index]);
1249 var data = m_data_control[current_tab_index];
1250
1251 callVtoy({
1252 method : 'save_control',
1253 index: current_tab_index,
1254 win11_bypass_check: data.win11_bypass_check,
1255 win11_bypass_nro: data.win11_bypass_nro,
1256 linux_remount:data.linux_remount,
1257 secondary_menu:data.secondary_menu,
1258 password_asterisk:data.password_asterisk,
1259 default_search_root: data.default_search_root,
1260 menu_timeout: data.menu_timeout,
1261 secondary_menu_timeout: data.secondary_menu_timeout,
1262 default_image: data.default_image,
1263 max_search_level: data.max_search_level,
1264 default_kbd_layout: data.default_kbd_layout,
1265 default_menu_mode: data.default_menu_mode,
1266 treeview_style: data.treeview_style,
1267 filter_dot_underscore: data.filter_dot_underscore,
1268 sort_casesensitive: data.sort_casesensitive,
1269 vhd_no_warning: data.vhd_no_warning,
1270 filter_iso: data.filter_iso,
1271 filter_wim: data.filter_wim,
1272 filter_efi: data.filter_efi,
1273 filter_img: data.filter_img,
1274 filter_vhd: data.filter_vhd,
1275 filter_vtoy: data.filter_vtoy,
1276 menu_language: data.menu_language
1277 }, function(e) {
1278 Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
1279 });
1280 }
1281
1282 function OnClickMultiModeTab() {
1283 var href = $(this).attr('href');
1284 var index = parseInt(href.substr(5, 1));
1285
1286 if (index < 0 || index >= g_vtoy_data_default_index || current_tab_index === index) {
1287 return;
1288 }
1289
1290 current_tab_index = index;
1291 VtoyFillCurrentPageItem(m_data_control[index]);
1292 }
1293
1294 function OnSelectSearchRoot(root, extra) {
1295 var path = root.substr(g_current_dir.length);
1296 $('input:text[id=id_ctrl_text_search_root]').val(path);
1297 if (path.length === 0) {
1298 $('div[id=id_ctrl_div_root_status]').hide();
1299 } else {
1300 $('div[id=id_ctrl_div_root_status]').show();
1301 $('span[id=id_ctrl_span_search_root_valid]').show();
1302 $('span[id=id_ctrl_span_search_root_invalid]').hide();
1303 }
1304 VtoySaveCurrentPage();
1305 }
1306
1307 function OnSelectDefaultImage(root, valid, extra) {
1308 var path = root.substr(g_current_dir.length);
1309 $('input:text[id=id_ctrl_text_default_img]').val(path);
1310 if (path.length === 0) {
1311 $('div[id=id_ctrl_div_img_status]').hide();
1312 } else {
1313 $('div[id=id_ctrl_div_img_status]').show();
1314 $('span[id=id_ctrl_span_img_valid]').show();
1315 $('span[id=id_ctrl_span_img_invalid]').hide();
1316 }
1317 VtoySaveCurrentPage();
1318 }
1319
1320 //Main process
1321 var m_data_control;
1322 var current_tab_index = 0;
1323
1324 callVtoySync({method : 'get_control'}, function(data) {
1325 m_data_control = data;
1326 });
1327
1328 $('#id_ctrl_btn_sel_root').click(function() {
1329 var tip = (g_current_os === 'windows') ? '\\ISO\\Windows' : "/ISO/Linux";
1330 var para = {
1331 "title": g_vtoy_cur_language.STR_SET_SEARCH_ROOT,
1332 "tip": g_current_dir + tip,
1333 "tip3": '',
1334 "extra": false,
1335 "extra_title": ''
1336 };
1337 VtoySelectDirPath(OnSelectSearchRoot, para);
1338 });
1339
1340 $('#id_ctrl_btn_clr_root').click(function() {
1341 var old = $('input:text[id=id_ctrl_text_search_root]').val();
1342 if (old.length != 0) {
1343 $('input:text[id=id_ctrl_text_search_root]').val('');
1344 $('div[id=id_ctrl_div_root_status]').hide();
1345 VtoySaveCurrentPage();
1346 }
1347 });
1348
1349 $('#id_ctrl_btn_default_img').click(function() {
1350 var tip = (g_current_os === 'windows') ? '\\ISO\\Windows10_en.iso' : "/ISO/Windows10_en.iso";
1351 var para = {
1352 "title": g_vtoy_cur_language.STR_SET_DEFAULT_IMAGE,
1353 "fuzzy": 0,
1354 "tip1": g_current_dir + tip,
1355 "tip2": '',
1356 "tip3": '',
1357 "extra": false,
1358 "extra_title": ''
1359 };
1360 VtoySelectFilePath(OnSelectDefaultImage, para);
1361 });
1362
1363 $('#id_ctrl_btn_clr_default').click(function() {
1364 var old = $('input:text[id=id_ctrl_text_default_img]').val();
1365 if (old.length != 0) {
1366 $('input:text[id=id_ctrl_text_default_img]').val('');
1367 $('div[id=id_ctrl_div_img_status]').hide();
1368 VtoySaveCurrentPage();
1369 }
1370 });
1371
1372 $('input[type=radio]').each(function(){
1373 var id = $(this).attr('id');
1374 if (typeof(id) != 'undefined' && id.startsWith('id_ctrl')) {
1375 $(this).change(VtoySaveCurrentPage);
1376 }
1377 });
1378 $('select[id=id_ctrl_sel_max_depth]').change(VtoySaveCurrentPage);
1379 $('select[id=id_ctrl_sel_kbd]').change(VtoySaveCurrentPage);
1380 $('select[id=id_ctrl_sel_menu_lang]').change(VtoySaveCurrentPage);
1381 $('input[id=id_ctrl_text_timeout]').change(function() {
1382 var value = $('input:text[id=id_ctrl_text_timeout]').val();
1383 if (/^[0-9][0-9]*$/.test(value)) {
1384 VtoySaveCurrentPage();
1385 } else {
1386 Message.error(g_vtoy_cur_language.STR_INVALID_TIMEOUT);
1387 $('input:text[id=id_ctrl_text_timeout]').val(m_data_control[current_tab_index].menu_timeout);
1388 }
1389 });
1390 $('input[id=id_ctrl_text_secondary_timeout]').change(function() {
1391 var value = $('input:text[id=id_ctrl_text_secondary_timeout]').val();
1392 if (/^[0-9][0-9]*$/.test(value)) {
1393 VtoySaveCurrentPage();
1394 } else {
1395 Message.error(g_vtoy_cur_language.STR_INVALID_TIMEOUT);
1396 $('input:text[id=id_ctrl_text_secondary_timeout]').val(m_data_control[current_tab_index].secondary_menu_timeout);
1397 }
1398 });
1399
1400 $('#id_tab_control a[href="#tab_0"]').click(OnClickMultiModeTab);
1401 $('#id_tab_control a[href="#tab_1"]').click(OnClickMultiModeTab);
1402 $('#id_tab_control a[href="#tab_2"]').click(OnClickMultiModeTab);
1403 $('#id_tab_control a[href="#tab_3"]').click(OnClickMultiModeTab);
1404 $('#id_tab_control a[href="#tab_4"]').click(OnClickMultiModeTab);
1405 $('#id_tab_control a[href="#tab_5"]').click(OnClickMultiModeTab);
1406
1407 function UpdateTabTitleIcon(data) {
1408 CommonUpdateTabTitleIcon(data.exist_control, '#id_tab_control a[href="#tab_', 'control');
1409 }
1410 $('#id_btn_reset').click(function() {
1411 Modal.confirm({msg:GetResetTabConfigTipMsg(current_tab_index, 'control')}).on(function(e) {
1412 if (e) {
1413 VtoyFillCurrentPageItem(m_data_control[g_vtoy_data_default_index]);
1414 VtoySaveCurrentPage();
1415 }
1416 });
1417 });
1418
1419 $('#id_tab_control a[href="#tab_0"]').tab('show');
1420 VtoyFillCurrentPageItem(m_data_control[0]);
1421 VtoyPageLanguageChange(g_current_language);
1422
1423 $('button[id=id_btn_collapse]').click(function() {
1424 $("button[data-widget='collapse'] i").each(function() {
1425 if ($(this).hasClass('fa-minus')) {
1426 $(this).click();
1427 }
1428 });
1429 });
1430
1431 $('button[id=id_btn_expand]').click(function() {
1432 $("button[data-widget='collapse'] i").each(function() {
1433 if ($(this).hasClass('fa-plus')) {
1434 $(this).click();
1435 }
1436 });
1437 });
1438
1439
1440 </script>