| 
					
				 | 
			
			
				@@ -185,20 +185,23 @@ var copyCodeClipboard; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 $(window).one("load", () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  // 判断从python blcokly 跳转过来是ai或者iot 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (window.location.search.indexOf('name') > -1 || getLocalStorage("type") == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#mode")[0].selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.iot_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    selectmode($("#mode")[0], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    appearExample(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#mode")[0].selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.ai_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    selectmode($("#mode")[0], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    appearExample(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // // 判断从python blcokly 跳转过来是ai或者iot 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // if (window.location.search.indexOf('name') > -1 || getLocalStorage("type") == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $("#mode")[0].selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.iot_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   selectmode($("#mode")[0], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   appearExample(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $("#mode")[0].selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.ai_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   selectmode($("#mode")[0], true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //   appearExample(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.python_full_screen_mode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('#white-box').css('display', 'none'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -416,7 +419,7 @@ window.onload = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //   var _index = localStorage.getItem("ModeIndex") != "undefined" ? localStorage.getItem("ModeIndex") : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //   selectmode(parseInt(_index)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   //   $('#select_mode')[0].selectedIndex = parseInt(_index); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('#toggle-button').click(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if ($('#toggle-button')[0].checked) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       $('#edit')[0].style.display = 'none'; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -444,30 +447,34 @@ window.onload = function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('#sketch_name').focus(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (window.location.href.indexOf("en") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "Please enter the name of the work"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","330px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "330px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    else if(window.location.href.indexOf("zh-hans") > -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else if (window.location.href.indexOf("zh-hans") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "请输入作品名称"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "請輸入作品名稱"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }).blur(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (window.location.href.indexOf("en") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "Please enter the name of the work"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","330px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "330px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    else if(window.location.href.indexOf("zh-hans") > -1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else if (window.location.href.indexOf("zh-hans") > -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "请输入作品名称"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.setAttribute("placeholder", "請輸入作品名稱"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      $('#sketch_name').css("width","200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      $('#sketch_name').css("width", "200px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  $("#python_full_screen").click(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    window.location.href = "/python/?" + window.location.href.split("?")[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function styled() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -484,9 +491,9 @@ function styled() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#local_help").addClass("helpEnglish"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#local_help_ai_kit").css("left", "528px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $("#help_extends").css("left", "528px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("body").css("font-family","Arial"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("input").css("font-family","Arial"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $("#downloadbutton-li").css("right","62px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("body").css("font-family", "Arial"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("input").css("font-family", "Arial"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $("#downloadbutton-li").css("right", "62px"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -574,7 +581,7 @@ function fanyi() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('.ModeBox ul')[7].children[13].innerHTML = Ardublockly.LOCALISED_TEXT.select_snt; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('.ModeBox ul')[7].children[14].innerHTML = Ardublockly.LOCALISED_TEXT.select_dwsdat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('.ModeBox')[0].children[4].children[0].innerHTML = Ardublockly.LOCALISED_TEXT.select_work_u; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('.ModeBox ul')[8].children[0].innerHTML = Ardublockly.LOCALISED_TEXT.select_middle_led; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $('.ModeBox ul')[8].children[1].innerHTML = Ardublockly.LOCALISED_TEXT.select_all_led; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -755,13 +762,13 @@ function selectOnload() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $("#mode")[0].selectedIndex = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.iot_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          window.location.href = "/"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          window.location.href = "/?" + window.location.href.split("?")[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         else if (e.innerHTML == Ardublockly.LOCALISED_TEXT.ai_module) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $("#mode")[0].selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $("#mode")[0].onchange(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           $('.selectMode_input')[0].value = Ardublockly.LOCALISED_TEXT.ai_module; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          window.location.href = "/"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          window.location.href = "/?" + window.location.href.split("?")[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $('.MouduleBox')[0].style.display = 'none'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $('.MouduleBox')[1].style.display = 'none'; 
			 |