Skip to content

Commit e2ecbf8

Browse files
committed
Finish translation of photocell
1 parent d60a789 commit e2ecbf8

6 files changed

Lines changed: 45 additions & 28 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MSG.title = "Webduino Blockly 课程 12-1:控制光敏电阻";
2+
MSG.subTitle = "课程 12-1:控制光敏电阻";
3+
MSG.demoDescription = "控制光敏电阻,回传数值";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MSG.title = "Webduino Blockly 课程 12-2:使用光敏电阻点亮 LED 灯";
2+
MSG.subTitle = "课程 12-2:使用光敏电阻点亮 LED 灯";
3+
MSG.demoDescription = "使用光敏电阻,回传数值,点亮 LED 灯与下面的灯泡图片";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MSG.title = "Webduino Blockly 课程 12-3:转换光敏 ( 可变 ) 电阻数值";
2+
MSG.subTitle = "课程 12-3:转换光敏 ( 可变 ) 电阻数值";
3+
MSG.demoDescription = "利用数值转换积木,将光敏 ( 可变 ) 电阻输入的数值转换为固定的区间数值";
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template id="head">
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4-
<title>Webduino Blockly - 控制光敏電阻</title>
4+
<title data-translation="title">Webduino Blockly - 控制光敏電阻</title>
55
<!-- webduino -->
66
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
77
<script src="https://blockly.webduino.io/webduino-blockly.js"></script>
@@ -11,7 +11,7 @@
1111
<div id="show">0</div>
1212
</template>
1313
<template id="css">
14-
#show{
15-
font-size:60px;
14+
#show {
15+
font-size: 60px;
1616
}
1717
</template>
Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template id="head">
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4-
<title>Webduino Blockly - 使用光敏電阻點亮 LED 燈</title>
4+
<title data-translation="title">Webduino Blockly - 使用光敏電阻點亮 LED 燈</title>
55
<!-- webduino -->
6-
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
6+
<script src="https: //webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
77
<script src="https://blockly.webduino.io/webduino-blockly.js"></script>
88
<script src="https://blockly.webduino.io/lib/runtime.min.js"></script>
99
</template>
@@ -15,20 +15,24 @@
1515
</div>
1616
</template>
1717
<template id="css">
18-
#show{
19-
font-size:60px;
18+
#show {
19+
font-size: 60px;
2020
}
21-
#light{
22-
width:60%;
21+
22+
#light {
23+
width: 60%;
2324
}
24-
#light img{
25-
width:100%;
26-
display:none;
25+
26+
#light img {
27+
width: 100%;
28+
display: none;
2729
}
28-
#light.off img:first-child{
29-
display:inline-block;
30+
31+
#light.off img:first-child {
32+
display: inline-block;
3033
}
31-
#light.on img:last-child{
32-
display:inline-block;
34+
35+
#light.on img:last-child {
36+
display: inline-block;
3337
}
3438
</template>
Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template id="head">
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
4-
<title>Webduino Blockly - 轉換光敏 ( 可變 ) 電阻數值</title>
4+
<title data-translation="title">Webduino Blockly - 轉換光敏 ( 可變 ) 電阻數值</title>
55
<!-- webduino -->
66
<script src="https://webduino.io/components/webduino-js/dist/webduino-all.min.js"></script>
77
<script src="https://blockly.webduino.io/webduino-blockly.js"></script>
@@ -15,20 +15,24 @@
1515
</div>
1616
</template>
1717
<template id="css">
18-
#show{
19-
font-size:60px;
18+
#show {
19+
font-size: 60px;
2020
}
21-
#light{
22-
width:60%;
21+
22+
#light {
23+
width: 60%;
2324
}
24-
#light img{
25-
width:100%;
26-
display:none;
25+
26+
#light img {
27+
width: 100%;
28+
display: none;
2729
}
28-
#light.off img:first-child{
29-
display:inline-block;
30+
31+
#light.off img:first-child {
32+
display: inline-block;
3033
}
31-
#light.on img:last-child{
32-
display:inline-block;
34+
35+
#light.on img:last-child {
36+
display: inline-block;
3337
}
3438
</template>

0 commit comments

Comments
 (0)