|
@@ -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");
|