Skip to content

Commit d9c5fdf

Browse files
committed
add bin link
1 parent c172649 commit d9c5fdf

11 files changed

Lines changed: 33 additions & 0 deletions

File tree

media/dave.min.svg

Lines changed: 1 addition & 0 deletions
Loading

msg/tutorials/led-1/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "Tutorials";
44

55
MSG.subTitle = "Chapter 1-1 : LED ON";
66
MSG.demoDescription = "Using blocks, light LED and bulb pictures";
7+
MSG.linkToBin = "Let's Cording";

msg/tutorials/led-1/zh-hant.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "教學積木";
44

55
MSG.subTitle = "課程 1-1:點亮 LED 燈";
66
MSG.demoDescription = "點亮 LED 燈與下面這張圖片的燈泡";
7+
MSG.linkToBin = "程式編輯";

msg/tutorials/led-2/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "Tutorials";
44

55
MSG.subTitle = "Chapter 1-2 : Click the image control LED";
66
MSG.demoDescription = "Click on the image below the bulb and the control LED on or off";
7+
MSG.linkToBin = "Let's Cording";

msg/tutorials/led-2/zh-hant.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "教學積木";
44

55
MSG.subTitle = "課程 1-2:點選圖片控制 LED 燈";
66
MSG.demoDescription = "點選下圖的燈泡,控制 LED 的開或關";
7+
MSG.linkToBin = "程式編輯";

msg/tutorials/led-3/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "Tutorials";
44

55
MSG.subTitle = "Chapter 1-3 : Control 2 LED";
66
MSG.demoDescription = "Click on the two light bulbs, control of two LED on or off";
7+
MSG.linkToBin = "Let's Cording";

msg/tutorials/led-3/zh-hant.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ MSG.catTutorials = "教學積木";
44

55
MSG.subTitle = "課程 1-3:控制兩顆 LED 燈";
66
MSG.demoDescription = "點選下圖左右兩顆燈泡,分別控制兩顆 LED 的開或關";
7+
MSG.linkToBin = "程式編輯";

tutorials.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,27 @@
2929
}
3030
#title,#subTitle{
3131
font-size:20px;
32+
}
33+
#linkToBin{
34+
position:absolute;
35+
top:-34px;
36+
right:-1px;
37+
font-size:16px;
38+
border-width:1px 1px 0;
39+
border-color:#aaa;
40+
border-style:dotted;
41+
padding:6px 15px;
42+
color:#000;
43+
}
44+
#linkToBin img{
45+
height:22px;
46+
margin-bottom:-4px;
47+
margin-right:3px;
48+
}
49+
#linkToBin:link{
50+
color:#000;
51+
text-decoration: none;
52+
}
53+
#linkToBin:hover{
54+
background:#eee;
3255
}

views/tutorials/led-1.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<div id="demoArea">
2020
<div id="demoTitle">{{demoTitle}}</div>
21+
<a href="http://bin.webduino.io/yew/edit?html,css,js,output" id="linkToBin" target="_blank"><img src="media/dave.min.svg">{{linkToBin}}</a>
2122
<div id="demoDescription">{{demoDescription}}</div>
2223
<div id="light" class="off">
2324
<img src='http://i.imgur.com/T5H4MHE.png'></img>

views/tutorials/led-2.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<div id="demoArea">
2020
<div id="demoTitle">{{demoTitle}}</div>
21+
<a href="http://bin.webduino.io/foru/edit?html,css,js,output" id="linkToBin" target="_blank"><img src="media/dave.min.svg">{{linkToBin}}</a>
2122
<div id="demoDescription">{{demoDescription}}</div>
2223
<div id="light" class="off">
2324
<img src='http://i.imgur.com/T5H4MHE.png'></img>

0 commit comments

Comments
 (0)