Skip to content

Commit 8b464f0

Browse files
committed
削除されていたview sourceなどを復元
1 parent 6f1f7ff commit 8b464f0

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="stylesheet" href="./style.css" />
6+
<title>Title</title>
7+
</head>
8+
<body>
9+
<div id="greeting">Hello World!</div>
10+
</body>
11+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#greeting {
2+
color: red;
3+
}
4+

docs/1-trial-session/03-css/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import fooCss from "!!raw-loader!./_samples/foo/style.css";
2020
<div style="color: red; font-size: 24px;">Hello World!</div>
2121
```
2222

23+
<ViewSource url={import.meta.url} path="_samples/first-css" />
24+
2325
![Hello World!](./red-hello-world.png)
2426

2527
{/* prettier-ignore */}
@@ -63,6 +65,8 @@ import fooCss from "!!raw-loader!./_samples/foo/style.css";
6365
}
6466
```
6567

68+
<ViewSource url={import.meta.url} path="_samples/red-hello-world" />
69+
6670
### `link`要素
6771

6872
```html title="index.html"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>max関数 解答例</title>
6+
</head>
7+
<body>
8+
<script src="./script.js"></script>
9+
</body>
10+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function max(a, b) {
2+
if (a > b) {
3+
return a;
4+
}
5+
return b;
6+
}
7+
8+
document.write(`${4}${7}のうち大きいのは${max(4, 7)}です。`);

docs/1-trial-session/09-functions/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ function max(a, b) {
202202
}
203203
```
204204

205-
<ViewSource url={import.meta.url} path="_samples/max-no-else" />
206-
207205
<Sandpack
208206
template="static"
209207
files={{
@@ -228,6 +226,8 @@ function max(a, b) {
228226
}
229227
```
230228

229+
<ViewSource url={import.meta.url} path="_samples/max-no-else" />
230+
231231
:::
232232

233233
</Answer>

0 commit comments

Comments
 (0)