X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/76a6b8061c6c4f07a51266c0310b91f684490270..261ddcef45ede2f9440342a5b3dd474e26df1679:/Plugson/www/plugson_control.html?ds=sidebyside diff --git a/Plugson/www/plugson_control.html b/Plugson/www/plugson_control.html index b686455..2452ac7 100644 --- a/Plugson/www/plugson_control.html +++ b/Plugson/www/plugson_control.html @@ -61,15 +61,17 @@ 选项说明 指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。
- 这种情况下你可以把ISO文件单独放在某个目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。 + 这种情况下你可以把ISO文件单独放在某个子目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。
+ 注意这里不能设置为U盘根目录,必须为一个子目录。 Option Description 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. - In this case, you can put all the image files in one directory and use this to specify the search path. - After that Ventoy will only search this directory and its subdirectories for image files. + In this case, you can put all the image files in one subdirectory and use this to specify the search path. + After that Ventoy will only search this directory and its subdirectories for image files.
+ Note: the path must not be the mountpoint of the first partition, but a subdirectory. @@ -115,7 +117,7 @@ Option Description - 0 Don not bypass Windows 11 hardware check.
+ 0 Do not bypass Windows 11 hardware check.
1 Bypass Windows 11 hardware check.

This option only avaliable for standard Windows 11 ISO files. When set to 1, Ventoy will create the following registries to bypass Windows 11 hardware check when install.
@@ -388,6 +390,85 @@ + +
+
+

VTOY_SECONDARY_BOOT_MENU + —— 二级启动菜单显示开关

+
+ +
+
+
+ + + + + + + + + + + + + +
选项设置 +      + +
选项说明二级启动菜单控制开关 + 0 不显示    + 1 显示 +
Option Description + Secondary boot menu display option + 0 Don't display     + 1 Display +
+
+
+ +
+
+

VTOY_SECONDARY_TIMEOUT + —— 二级启动菜单倒计时

+
+ +
+
+
+ + + + + + + + + + + + + +
选项设置 +
+ +
+
选项说明 + 二级菜单倒计时(秒)。只有当 VTOY_SECONDARY_BOOT_MENU 设置为1时才有效。
+ 默认不设置,设置之后,比如设置为10,则在倒计时10秒之后,会自动选择第一项,即:Boot in normal mode
+ 在倒计时的过程中按任意键会停止倒计时,等待用户操作。 +
Option Description + Timeout seconds for the secondary boot menu. Only take effect when VTOY_SECONDARY_BOOT_MENU is 1.
+ By default no timeout is set. When you set it to 10 for example, the first entry (Boot in normal mode) will be selected an run after 10 seconds. +
+
+
+ +
@@ -904,7 +985,7 @@
- + @@ -933,8 +1014,10 @@ data.win11_bypass_check = parseInt($('input:radio[name=id_ctrl_bypass_win11_radio]:checked').val()); data.linux_remount = parseInt($('input:radio[name=id_ctrl_linux_remount_radio]:checked').val()); + data.secondary_menu = parseInt($('input:radio[name=id_ctrl_secondary_radio]:checked').val()); data.default_search_root = $('input:text[id=id_ctrl_text_search_root]').val(); data.menu_timeout = parseInt($('input:text[id=id_ctrl_text_timeout]').val()); + data.secondary_menu_timeout = parseInt($('input:text[id=id_ctrl_text_secondary_timeout]').val()); data.default_image = $('input:text[id=id_ctrl_text_default_img]').val(); level = $('select[id=id_ctrl_sel_max_depth').val(); @@ -966,6 +1049,7 @@ //VTOY_WIN11_BYPASS_CHECK $('input:radio[name=id_ctrl_bypass_win11_radio]')[data.win11_bypass_check].checked = true; $('input:radio[name=id_ctrl_linux_remount_radio]')[data.linux_remount].checked = true; + $('input:radio[name=id_ctrl_secondary_radio]')[data.secondary_menu].checked = true; //VTOY_DEFAULT_SEARCH_ROOT $('input:text[id=id_ctrl_text_search_root]').val(data.default_search_root); @@ -984,6 +1068,9 @@ //VTOY_MENU_TIMEOUT $('input:text[id=id_ctrl_text_timeout]').val(data.menu_timeout); + + //VTOY_SECONDARY_TIMEOUT + $('input:text[id=id_ctrl_text_secondary_timeout]').val(data.secondary_menu_timeout); //VTOY_DEFAULT_IMAGE @@ -1068,8 +1155,10 @@ index: current_tab_index, win11_bypass_check: data.win11_bypass_check, linux_remount:data.linux_remount, + secondary_menu:data.secondary_menu, default_search_root: data.default_search_root, menu_timeout: data.menu_timeout, + secondary_menu_timeout: data.secondary_menu_timeout, default_image: data.default_image, max_search_level: data.max_search_level, default_kbd_layout: data.default_kbd_layout, @@ -1198,6 +1287,15 @@ $('input:text[id=id_ctrl_text_timeout]').val(m_data_control[current_tab_index].menu_timeout); } }); + $('input[id=id_ctrl_text_secondary_timeout]').change(function() { + var value = $('input:text[id=id_ctrl_text_secondary_timeout]').val(); + if (/^[0-9][0-9]*$/.test(value)) { + VtoySaveCurrentPage(); + } else { + Message.error(g_vtoy_cur_language.STR_INVALID_TIMEOUT); + $('input:text[id=id_ctrl_text_secondary_timeout]').val(m_data_control[current_tab_index].secondary_menu_timeout); + } + }); $('#id_tab_control a[href="#tab_0"]').click(OnClickMultiModeTab); $('#id_tab_control a[href="#tab_1"]').click(OnClickMultiModeTab);