]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/WebUI/index.html
fixed russian translation (#2190)
[Ventoy.git] / LinuxGUI / WebUI / index.html
index 8b16692726ab195bb60b1572e3f037416a01ebb6..fa90c0452f759e3af36b9e5770a5b39cc94ebbf4 100644 (file)
     </style>\r
 </head>\r
 \r
     </style>\r
 </head>\r
 \r
-<body style="overflow:hidden">\r
+<body style="overflow:hidden;">\r
     <div class="wrapper" >\r
         <!-- Content Wrapper. Contains page content -->\r
         <div id='vtoy_main_div' style='width:540px; position:absolute;'>\r
     <div class="wrapper" >\r
         <!-- Content Wrapper. Contains page content -->\r
         <div id='vtoy_main_div' style='width:540px; position:absolute;'>\r
     }\r
         \r
     function ResizeWindow() {\r
     }\r
         \r
     function ResizeWindow() {\r
-        //console.log(window.screen.width + ' [x1] ' + window.screen.height);        \r
+        //console.log(window.screen.availWidth + ' [x1] ' + window.screen.availHeight);        \r
         //console.log(vtoy_app_width + ' [x2] ' + vtoy_app_height);\r
         //console.log(vtoy_app_width + ' [x2] ' + vtoy_app_height);\r
-        //console.log((window.screen.width - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.height - vtoy_app_height) / 2);        \r
-        window.moveTo((window.screen.width - vtoy_app_width) / 2, (window.screen.height - vtoy_app_height) / 2);\r
-        window.resizeTo(vtoy_app_width, vtoy_app_height);\r
+        //console.log((window.screen.availWidth - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.availHeight - vtoy_app_height) / 2);        \r
+        \r
+        window.onresize = function() { };\r
+        \r
+        window.resizeTo(vtoy_app_width, vtoy_app_height);        \r
+        window.moveTo((window.screen.availWidth - vtoy_app_width) / 2, (window.screen.availHeight - vtoy_app_height) / 2);\r
+        \r
+        window.onresize = ResizeWindow;\r
     }\r
 \r
     function MoveMainDivToCenter() {\r
     }\r
 \r
     function MoveMainDivToCenter() {\r
                 vtoy_in_progress = true;\r
                 progressDisableItem(vtoy_in_progress);\r
                 queryProgress(1);\r
                 vtoy_in_progress = true;\r
                 progressDisableItem(vtoy_in_progress);\r
                 queryProgress(1);\r
+            }else if (data.result === '4kn') {\r
+                ventoy_display_alert('error', vtoy_cur_language.STR_4KN_UNSUPPORTED);\r
             } else {\r
                 ventoy_display_alert('error', vtoy_cur_language.STR_INSTALL_FAILED);\r
             }\r
             } else {\r
                 ventoy_display_alert('error', vtoy_cur_language.STR_INSTALL_FAILED);\r
             }\r
     $('#vtoy_part_align_4kb').prop("checked", true);\r
     \r
     if (vtoy_chrome_app_mode) {\r
     $('#vtoy_part_align_4kb').prop("checked", true);\r
     \r
     if (vtoy_chrome_app_mode) {\r
-        window.onresize = function() {\r
-            ResizeWindow();\r
-        }\r
         ResizeWindow();\r
     } else {\r
         $('#vtoy_main_div').css("border", '2px solid #f4f4f4');\r
         ResizeWindow();\r
     } else {\r
         $('#vtoy_main_div').css("border", '2px solid #f4f4f4');\r
     }\r
     \r
     on_select_mbr();\r
     }\r
     \r
     on_select_mbr();\r
-    secure_boot_check(0);\r
+    secure_boot_check(1);\r
     \r
     on_enable_preserve_space();\r
     \r
     \r
     on_enable_preserve_space();\r
     \r