-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
294 lines (284 loc) · 8.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html><html lang="ja"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><link rel="icon" href="data:">
<title>IchigoJam web by jig.jp</title>
<meta property="og:image" content="ichigojamweb-r2.png">
<link rel="apple-touch-icon" href="icon-ichigojam.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<script src="ichigojam.mjs" type="module"></script>
<script type="module" src="https://code4fukui.github.io/i18n/translation.js"></script>
<style>
body {
font-family: sans-serif;
background-color: #fff;
text-align: center;
margin: 0px;
margin-bottom: 3em;
background-color: white;
box-sizing: border-box;
font-size: 16px;
}
h1 {
margin-top: 0.3em;
}
.buttons {
margin: 2px 0;
}
.buttons > button {
border: 1px solid black;
border-radius: 0;
padding: .5vh 1.0vw;
margin: 1vh 0;
background-color: white;
}
#keyspanel {
margin: 1em .8vw 1em .8vw;
}
#keyspanel span {
display: flex;
font-size: 2.7vmin;
align-items: center;
justify-content: center;
margin: 0 -1px -1px 0;
border: 1px solid #333;
padding: .6vmin 0;
}
/* I/O panel */
#iopanel > table {
font-size: 2.2vw;
border: 1px solid black;
margin: 0.5em;
}
#iopanel th, #iopanel td {
text-align: center;
}
#program {
margin: 1.5em 0em;
padding: .3em;
border: 2px solid black;
}
#canvas {
width: 544px;
height: 416px;
x-border: 2px solid black;
background-color: black;
image-rendering: pixelated;
}
textarea {
width: 544px;
height: 4em;
}
.ichigojam {
height: 8em;
}
@media screen and (max-aspect-ratio: 3/4) { /* 縦長タブレット、画面いっぱい */
#canvas {
width: 100vw;
height: 76.47vw
}
textarea {
width: 90vw;
height: 4em;
}
}
@media screen and (max-aspect-ratio: 2/3) { /* もっと縦長スマホとか、キーを大きく */
#keyspanel span {
padding: 1.5vmin 0;
x-padding: 3.5vmin 0;
}
}
/*
@media screen and (max-width: 580px), screen and (max-height: 420px) {
#canvas {
width: 370px;
height: 283px;
}
textarea {
width: 370px;
height: 4em;
}
}
@media screen and (max-width: 374px), screen and (max-height: 288px) {
body {
font-size: 70%;
}
#canvas {
width: 280px;
height: 212px;
}
textarea {
width: 280px;
height: 4em;
}
}
*/
/*
@media all and (display-mode: fullscreen) and (min-aspect-ratio: 544/416) {
body {
background-color: black;
}
#canvas {
width: 130.77vh;
height: 100vh;
}
}
@media all and (display-mode: fullscreen) and (max-aspect-ratio: 544/416) {
body {
background-color: black;
}
#canvas {
width: 100vw;
height: 76.47vw;
}
}
*/
/* external out */
#extout {
position: absolute;
right: 30px;
top: 10px;
height: 100px;
}
/* dobutsu */
#btn_dobutsu {
height: 1.2em;
vertical-align: middle;
padding-left: .3em;
}
#dobutsupanel {
margin: 2em 0;
}
#dobutsupanel hr {
width: 60%;
margin: 2em auto;
text-align: center;
}
#dobutsupanel button {
background-color: #ddd;
border: none;
border-radius: .2em;
padding: 1em;
width: 18em;
margin: 0;
color: #111;
}
#dobutsupanel select {
font-size: 95%;
padding: .2em 1em;
margin: 0 .2em;
width: 12em;
}
#dobutsupanel input {
font-size: 95%;
padding: .2em .2em;
text-align: center;
margin: 0 .2em;
width: 11em;
}
#dobutsupanel .arrow {
width: 1.2em;
padding: .5em;
margin: 0;
}
/* credit */
#credit {
font-size: 12px;
margin-top: 1em;
}
a {
color: gray !important;
}
</style>
</head>
<body>
<h1>IchigoJam web</h1>
<canvas id=canvas></canvas><br>
<div class=buttons>
<button id=btn_keys>KEY</button>
<button id=btn_esc>ESC</button>
<button id=btn_export>EXPORT</button>
<button id=btn_import>IMPORT</button>
<button id=btn_full>FULL</button>
<button id=btn_io>I/O</button>
<button id=btn_audio>AUDIO ON</button>
<img id=btn_dobutsu src="./silhouette-illust_30831_zou.png">
</div>
<div id=keyspanel style="display:none"></div>
<div id=iopanel style="display:none"></div>
<div id=dobutsupanel style="display:none">
<div>
<select><option>ぞう</option></select>
<select><option>ぞう</option></select>
<select><option>ぞう</option></select>
</div>
<div><img class="arrow" src="./silhouette-illust_396_arrow.png"></div>
<button class=ja>このプログラムをみる</button>
<hr>
<button class=ja>このプログラムをシェアする</button>
<div><img class="arrow" src="./silhouette-illust_396_arrow.png"></div>
<div>
<input disabled=true value="?">
<input disabled=true value="?">
<input disabled=true value="?">
</div>
</div>
<!--<div id=seg class=sseg><div></div><div></div></div>-->
<!--<script type="module" src="./seven-segment.js"></script>
<seven-segment id=extout></seven-segment>
-->
<!--<traffic-signal id=sig></traffic-signal>-->
<script type="module" src="./external-out.js"></script>
<external-out id=extout></external-out>
<textarea id=program></textarea><br>
<script type="module" src="https://code4fukui.github.io/qr-code-reader/qr-code-reader.js"></script>
<div>
<a href=https://store-jp.nintendo.com/feature_joycon.html>Joy-Con</a> <button id=btnjoycon class=ja>接続</button> /
<a href=https://www.nintendo.co.jp/ring/>Ring-Con</a> <button id=btnringcon class=ja>接続</button> /
<a href=https://kurikit.ux-xu.com/cocorokit-plus/ class=ja>ココロキット+</a> <button id=btncocoro class=ja>接続</button>
<!--<qr-code-reader id=qrcocoro></qr-code-reader>-->
<!--
<input type="text" id="cocoroid" style="width:6em"><br>
-->
<span id=cocorokitc></span>
</div>
<br>
<div class=ja_content>
<a href=https://fukuno.jig.jp/app/csv/ichigojam-cmd.html target=_blank>IchigoJam BASIC リファレンス</a> (<a href=https://fukuno.jig.jp/app/csv/ichigojam-cmd.html#lang=en target=_blank>英語版</a>)<br>
<br>
【IchigoJamプログラミング、ネット教材】<br>
<a target=_blank href=https://ichigojam.github.io/slide/IchigoJam-first-game/IchigoJam-first-game-web.pdf>はじめてのプログラミング</a>(<a target=_blank href=https://www.youtube.com/watch?v=GJSslpKxlCI>動画</a>、<a target=_blank href=https://fukuno.jig.jp/app/IchigoJam/firstgame.html>動画付き</a>)<br>
<a target=_blank href=https://ichigojam.net/IchigoJam-firstgame.pdf>はじめのいっぽ&ミニゲームズ</a>(<a target=_blank href=https://www.youtube.com/watch?v=0drNeZ9UUIs>動画</a>)<br>
<a target=_blank href=https://ichigojam.github.io/print/ja/>IchigoJamプリント</a><br>
<a target=_blank href=https://fukuno.jig.jp/704>IchigoJamプログラミング入門</a><br>
<a target=_blank href=https://pcn.club/sp/diprogram/>ダンブンゲームズ by PCN</a><br>
<br>
【はんだづけから楽しむ、IchigoJamハーフキット】<br>
<a target=_blank href=https://hello002.stores.jp/items/61dfa83ce3bbd16086b9bd50><img class=ichigojam src=./ichigojam-r.jpg></a><br>
<br>
<div id="credit">
IchigoJam web: <a href=https://ichigojam.net/>IchigoJam</a> by <a target=_blank href=https://webassembly.org/>WebAssembly / WASM</a> (blog <a href="http://fukuno.jig.jp/1728">fukuno.jig.jp</a>)<br>
API: <a href=http://webassembly.org/>WebAssembly / WASM</a><br>
Illust: <a href=https://www.silhouette-illust.com/ class=ja>無料のAi・PNG白黒シルエットイラスト</a><br>
Web interface: <a href=https://github.com/ichigojam/web>src on GitHub</a><br>
</div>
</div>
<div class=en_content style="display:none">
<a href=https://fukuno.jig.jp/app/csv/ichigojam-cmd.html#lang=en target=_blank>IchigoJam BASIC reference</a><br>
<br>
【How to program on IchigoJam】<br>
<a target=_blank href=http://fukuno.jig.jp/img/IchigoJam-firstkit-en-3.jpg>IchigoJam first step</a> (<a target=_blank href=https://www.youtube.com/watch?v=GJSslpKxlCI>video</a>)<br>
<a target=_blank href=http://fukuno.jig.jp/img/IchigoJam-firstkit-en-4.jpg>IchigoJam mini games</a>(<a target=_blank href=https://www.youtube.com/watch?v=0drNeZ9UUIs>video</a>)<br>
<a target=_blank href=https://ichigojam.github.io/print/en/>IchigoJam print</a><br>
<a target=_blank href=https://fukuno.jig.jp/704>How to start IchigoJam programming (ja)</a><br>
<a target=_blank href=https://pcn.club/sp/diprogram/>Danbun games by PCN (ja)</a><br>
<br>
【Let's solder the IchigoJam half kit】<br>
<a target=_blank href=https://hello002.stores.jp/items/61dfa83ce3bbd16086b9bd50><img class=ichigojam src=./ichigojam-r.jpg></a><br>
<br>
<div id="credit">
IchigoJam web: <a href=https://ichigojam.net/index-en.html>IchigoJam</a> by <a target=_blank href=https://webassembly.org/>WebAssembly / WASM</a> (blog <a href="http://fukuno.jig.jp/1728">fukuno.jig.jp</a>)<br>
Illust: <a href=https://www.silhouette-illust.com/ class=ja>無料のAi・PNG白黒シルエットイラスト</a><br>
Web interface: <a href=https://github.com/ichigojam/web>src on GitHub</a><br>
</div>
</div>
</body>
</html>