root 4 年之前
父節點
當前提交
84896546ab

+ 1 - 1
dist/index.dev.js

@@ -386,7 +386,7 @@ window.onload = function () {
 };
 
 function styled() {
-  if (window.location.href.indexOf("en") > -1) {
+  if (window.location.search.indexOf("en") > -1) {
     $(".downbox-style").css({
       width: '280px',
       marginLeft: '-100px'

文件差異過大導致無法顯示
+ 0 - 0
dist/index.prod.js


+ 4 - 4
index.html

@@ -274,11 +274,11 @@
                             style="position:relative;padding: 0 25px;">
                             <span class="translatable_help_board">帮助</span>
                         </a>
-                        <ul id='local_help' class='dropdown-content' style="top:62px">
+                        <ul id='local_help' class='dropdown-content' style="top:62px; overflow: visible;">
                             <li id="local_help_ai">
                                 <span class="translatable_ai_kit">AI Kit</span>
                                 <ul id="local_help_ai_kit" class='dropdown-content'
-                                    style="display:none; position: fixed; left: 398px; top: 64px;">
+                                    style="display:none; position: absolute; left: 139px; top: 0px;">
                                     <li id="ai_kit_0" onclick="openUrl('./lxhelp/#/aikit/AI_1')">
                                         <span class="translatable_ai_kit_0">Mac</span>
                                     </li>
@@ -296,7 +296,7 @@
                             <li id="local_help_extends">
                                 <span class="translatable_extends">拓展转接模组</span>
                                 <ul id="help_extends" class='dropdown-content'
-                                    style="display:none; position: fixed; left: 398px; top: 120px;">
+                                    style="display:none; position:absolute; left: 139px; top: 50px;">
                                     <li id="extends_0" onclick="openUrl('./lxhelp/#/extension/EX_01')">
                                         <span class="translatable_extends_0">Mac</span>
                                     </li>
@@ -319,7 +319,7 @@
                         <div style="margin: 0px 20px 0px 0px;">
                             <input type="text" value="A.I. Module" id="iot_modules" readonly
                                 class="selectMode_input browser-default"
-                                style="font-size: 0.9rem;border: none;width: 130px;">
+                                style="font-size: 0.9rem;border: none;width: 120px;">
                             <i id="down" class="down"
                                 style="position: relative;top: -20px;float: right;right: 9px;"></i>
                             <div class="downbox MouduleBox" id="downboxModule" style="top: 64px;">

+ 8 - 8
index.js

@@ -442,11 +442,11 @@ window.onload = function () {
   })
 
   $('#sketch_name').focus(function () {
-    if (window.location.href.indexOf("en") > -1) {
+    if (window.location.search.indexOf("en") > -1) {
       this.setAttribute("placeholder", "Please enter the name of the work");
       $('#sketch_name').css("width", "330px");
     }
-    else if (window.location.href.indexOf("zh-hans") > -1) {
+    else if (window.location.search.indexOf("zh-hans") > -1) {
       this.setAttribute("placeholder", "请输入作品名称");
       $('#sketch_name').css("width", "200px");
     }
@@ -455,11 +455,11 @@ window.onload = function () {
       $('#sketch_name').css("width", "200px");
     }
   }).blur(function () {
-    if (window.location.href.indexOf("en") > -1) {
+    if (window.location.search.indexOf("en") > -1) {
       this.setAttribute("placeholder", "Please enter the name of the work");
       $('#sketch_name').css("width", "330px");
     }
-    else if (window.location.href.indexOf("zh-hans") > -1) {
+    else if (window.location.search.indexOf("zh-hans") > -1) {
       this.setAttribute("placeholder", "请输入作品名称");
       $('#sketch_name').css("width", "200px");
     }
@@ -482,19 +482,19 @@ window.onload = function () {
 }
 
 function styled() {
-  if (window.location.href.indexOf("en") > -1) {
+  if (window.location.search.indexOf("en") > -1) {
     $(".downbox-style").css({ width: '280px', marginLeft: '-100px' })
     $("#downboxModule").addClass("english");
     $("#local_saveOrOpen").addClass("fileEnglish");
     $("#local_connect_select").addClass("fileEnglish");
     // $("#Serial_Interaction").css("marginLeft", "15px");
     // $("#Serial_Display").css("marginLeft", "35px");
-    $("#iot_modules").css("width", "180px");
+    $("#iot_modules").css("width", "170px");
     $("#plugin_mac_or_windows").css("left", "390px");
     $("#connect_method").css("left", "390px");
     $("#local_help").addClass("helpEnglish");
-    $("#local_help_ai_kit").css("left", "528px");
-    $("#help_extends").css("left", "528px");
+    $("#local_help_ai_kit").css("left", "242px");
+    $("#help_extends").css("left", "242px");
     // $("#Serial_Interaction").css("left","120px");
     // $("#Serial_Display").css("left","260px");
     $("body").css("font-family", "Arial");

+ 1 - 1
python/dist/index.dev.js

@@ -386,7 +386,7 @@ window.onload = function () {
 };
 
 function styled() {
-  if (window.location.href.indexOf("en") > -1) {
+  if (window.location.search.indexOf("en") > -1) {
     $(".downbox-style").css({
       width: '280px',
       marginLeft: '-100px'

文件差異過大導致無法顯示
+ 0 - 0
python/dist/index.prod.js


+ 6 - 6
python/index.js

@@ -445,11 +445,11 @@ window.onload = function () {
   })
 
   $('#sketch_name').focus(function () {
-    if (window.location.href.indexOf("en") > -1) {
+    if (window.location.search.indexOf("en") > -1) {
       this.setAttribute("placeholder", "Please enter the name of the work");
       $('#sketch_name').css("width", "330px");
     }
-    else if (window.location.href.indexOf("zh-hans") > -1) {
+    else if (window.location.search.indexOf("zh-hans") > -1) {
       this.setAttribute("placeholder", "请输入作品名称");
       $('#sketch_name').css("width", "200px");
     }
@@ -458,11 +458,11 @@ window.onload = function () {
       $('#sketch_name').css("width", "200px");
     }
   }).blur(function () {
-    if (window.location.href.indexOf("en") > -1) {
+    if (window.location.search.indexOf("en") > -1) {
       this.setAttribute("placeholder", "Please enter the name of the work");
       $('#sketch_name').css("width", "330px");
     }
-    else if (window.location.href.indexOf("zh-hans") > -1) {
+    else if (window.location.search.indexOf("zh-hans") > -1) {
       this.setAttribute("placeholder", "请输入作品名称");
       $('#sketch_name').css("width", "200px");
     }
@@ -478,14 +478,14 @@ window.onload = function () {
 }
 
 function styled() {
-  if (window.location.href.indexOf("en") > -1) {
+  if (window.location.search.indexOf("en") > -1) {
     $(".downbox-style").css({ width: '280px', marginLeft: '-100px' })
     $("#downboxModule").addClass("english");
     $("#local_saveOrOpen").addClass("fileEnglish");
     $("#local_connect_select").addClass("fileEnglish");
     $("#Serial_Interaction").css("marginLeft", "15px");
     $("#Serial_Display").css("marginLeft", "35px");
-    $("#iot_modules").css("width", "180px");
+    $("#iot_modules").css("width", "120px");
     $("#plugin_mac_or_windows").css("left", "390px");
     $("#connect_method").css("left", "390px");
     $("#local_help").addClass("helpEnglish");

+ 1 - 1
python/skulpt/doc/ide/static/closure-library/closure/goog/debug/console.js

@@ -123,7 +123,7 @@ goog.debug.Console.autoInstall = function() {
     goog.debug.Console.instance = new goog.debug.Console();
   }
 
-  if (window.location.href.indexOf('Debug=true') != -1) {
+  if (window.location.search.indexOf('Debug=true') != -1) {
     goog.debug.Console.instance.setCapturing(true);
   }
 };

+ 1 - 1
python/skulpt/support/closure-library/closure/goog/debug/console.js

@@ -175,7 +175,7 @@ goog.debug.Console.autoInstall = function() {
     goog.debug.Console.instance = new goog.debug.Console();
   }
 
-  if (window.location.href.indexOf('Debug=true') != -1) {
+  if (window.location.search.indexOf('Debug=true') != -1) {
     goog.debug.Console.instance.setCapturing(true);
   }
 };

+ 1 - 1
skulpt/doc/ide/static/closure-library/closure/goog/debug/console.js

@@ -123,7 +123,7 @@ goog.debug.Console.autoInstall = function() {
     goog.debug.Console.instance = new goog.debug.Console();
   }
 
-  if (window.location.href.indexOf('Debug=true') != -1) {
+  if (window.location.search.indexOf('Debug=true') != -1) {
     goog.debug.Console.instance.setCapturing(true);
   }
 };

+ 1 - 1
skulpt/support/closure-library/closure/goog/debug/console.js

@@ -175,7 +175,7 @@ goog.debug.Console.autoInstall = function() {
     goog.debug.Console.instance = new goog.debug.Console();
   }
 
-  if (window.location.href.indexOf('Debug=true') != -1) {
+  if (window.location.search.indexOf('Debug=true') != -1) {
     goog.debug.Console.instance.setCapturing(true);
   }
 };

部分文件因文件數量過多而無法顯示