X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/08634fba9fd0e28a484f51a0f969bdf270b5f5e5..9a8dc42d93195f247dbff334bd342fc960cdd2d6:/LinuxGUI/WebUI/index.html
diff --git a/LinuxGUI/WebUI/index.html b/LinuxGUI/WebUI/index.html
index c77ee44..fa90c04 100644
--- a/LinuxGUI/WebUI/index.html
+++ b/LinuxGUI/WebUI/index.html
@@ -171,7 +171,7 @@
-
+
@@ -342,6 +342,7 @@
var vtoy_cur_process_disk_name;
var vtoy_chrome_app_mode = (window.location.href.indexOf('chrome-app') >= 0) ? 1 : 0;
+
function sort_language_list() {
var tmp;
for (var i = 0; i < vtoy_language_data.length; i++) {
@@ -579,11 +580,16 @@
}
function ResizeWindow() {
- //console.log(window.screen.width + ' [x1] ' + window.screen.height);
+ //console.log(window.screen.availWidth + ' [x1] ' + window.screen.availHeight);
//console.log(vtoy_app_width + ' [x2] ' + vtoy_app_height);
- //console.log((window.screen.width - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.height - vtoy_app_height) / 2);
- window.moveTo((window.screen.width - vtoy_app_width) / 2, (window.screen.height - vtoy_app_height) / 2);
- window.resizeTo(vtoy_app_width, vtoy_app_height);
+ //console.log((window.screen.availWidth - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.availHeight - vtoy_app_height) / 2);
+
+ window.onresize = function() { };
+
+ window.resizeTo(vtoy_app_width, vtoy_app_height);
+ window.moveTo((window.screen.availWidth - vtoy_app_width) / 2, (window.screen.availHeight - vtoy_app_height) / 2);
+
+ window.onresize = ResizeWindow;
}
function MoveMainDivToCenter() {
@@ -755,6 +761,8 @@
vtoy_in_progress = true;
progressDisableItem(vtoy_in_progress);
queryProgress(1);
+ }else if (data.result === '4kn') {
+ ventoy_display_alert('error', vtoy_cur_language.STR_4KN_UNSUPPORTED);
} else {
ventoy_display_alert('error', vtoy_cur_language.STR_INSTALL_FAILED);
}
@@ -1011,9 +1019,6 @@
$('#vtoy_part_align_4kb').prop("checked", true);
if (vtoy_chrome_app_mode) {
- window.onresize = function() {
- ResizeWindow();
- }
ResizeWindow();
} else {
$('#vtoy_main_div').css("border", '2px solid #f4f4f4');
@@ -1040,7 +1045,7 @@
}
on_select_mbr();
- secure_boot_check(0);
+ secure_boot_check(1);
on_enable_preserve_space();