Skip to content

Commit 8e81e00

Browse files
authored
Remove autoplay attribute from video element (#634)
1 parent c063361 commit 8e81e00

File tree

15 files changed

+33
-33
lines changed

15 files changed

+33
-33
lines changed

docs/1-trial-session/02-html/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ VS Code 上で作成したファイルは `index.html` でした。しかしな
9090

9191
保存したら、ブラウザの更新ボタンを押して、ページを再読み込みします。
9292

93-
<video src={reloadBrowserVideo} autoPlay muted loop controls />
93+
<video src={reloadBrowserVideo} muted controls />
9494

9595
`<a href="https://www.google.com/">~</a>`**`a` <Term>要素</Term>** です。<Term>開始タグ</Term>の中に `href="https://www.google.com/"` という部分があります。これが<Term>**属性**</Term>です。<Term>属性</Term>は、<Term>開始タグ</Term> の中に `属性名="値"` のように記述され、<Term>要素</Term>の特徴を表します。`a` <Term>要素</Term>の **`href` <Term>属性</Term>**は、ハイパーリンクのリンク先を表す<Term>属性</Term>です。
9696

docs/1-trial-session/08-loop/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ document.write("終了");
1919

2020
プログラムの実行の流れを確認してみましょう。
2121

22-
<video src={whileLoopVideo} controls muted autoPlay loop />
22+
<video src={whileLoopVideo} controls muted />
2323

2424
while 文は、次のように記述します。
2525

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ document.write(add(3, 4));
7171
次の行 `return sum;``add` <Term>関数</Term>は<Term>変数</Term> `sum` を<Term>評価</Term>した結果である、`7` を<Term>返し</Term>ます。
7272
そして<Term>式</Term> `add(3, 4)` の<Term>評価</Term>結果が `7` となります。
7373

74-
<video src={returnValueVideo} controls autoPlay muted loop />
74+
<video src={returnValueVideo} controls muted />
7575

7676
:::tip
7777
**return 文** が実行された時点で<Term>関数</Term>の処理が終了するため、次のように書くことで [if ~ else 文](../if-statement/#if--else)[&& (AND) 演算子](../boolean/#論理演算子)の繰り返しを避けつつ、複数の条件のついた処理を実行することができます。

docs/1-trial-session/14-events/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ greetButton.onclick = clicked;
4646

4747
この例では、<Term>HTML 要素</Term>の `id` <Term>属性</Term>に `greet-button` が指定されている <Term>HTML 要素</Term>を表す<Term>オブジェクト</Term>の `onclick` <Term>プロパティ</Term>に対し、<Term>関数</Term> `clicked` を<Term>代入</Term>しています。これにより、ボタンがクリックされたとき、`clicked` <Term>関数</Term>が実行されるようになります。
4848

49-
<video src={handleClickVideo} autoPlay muted loop controls />
49+
<video src={handleClickVideo} muted controls />
5050

5151
:::info
5252

@@ -81,7 +81,7 @@ greetButton.onclick = clicked();
8181

8282
押すと大きく赤文字が表示される「びっくり箱」のようなボタンを作ってみましょう。
8383

84-
<video src={projectMovieForDom} autoPlay muted loop controls />
84+
<video src={projectMovieForDom} muted controls />
8585

8686
<Details summary={<summary>ヒント1:文字列の表示</summary>}>
8787

docs/2-browser-apps/01-inspector/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Google Chrome 以外のブラウザにも開発者ツールは搭載されてい
2525

2626
また、表示中の HTML 要素を右クリックして `検証` メニューをクリックするか、開発者ツールの中のインスペクトボタン (<GrSelect style={{ verticalAlign: "middle" }} />) をクリックすることにより、要素を直接選択することができます。この方法を用いることで、HTML の木構造を根から辿る必要がなくなります。
2727

28-
<video src={inspectElementsVideo} muted autoPlay loop controls />
28+
<video src={inspectElementsVideo} muted controls />
2929

3030
### 課題
3131

docs/2-browser-apps/06-project/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import todoVideo from "./todo.mp4";
1313
- ToDo の編集ができます。
1414
- 入力欄が空欄だと ToDo の追加ができなくなります。
1515

16-
<video src={todoVideo} controls loop autoPlay muted />
16+
<video src={todoVideo} controls muted />
1717

1818
## ヒント
1919

docs/3-web-servers/03-module/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Node.js における**パッケージ**とは、主に JavaScript ファイル
193193

194194
npm を用いて開発を行うには、まず `npm init` コマンドを実行します。いくつか質問をされるので、Enter キーを押し続けて質問をスキップしましょう。完了すると、フォルダの中に `package.json` という名前のファイルが作成されます。このファイルは、npm によって管理されるフォルダに必ず 1 つ必要になるものです。
195195

196-
<video src={npmInitVideo} controls muted autoPlay loop />
196+
<video src={npmInitVideo} controls muted />
197197

198198
続いて、npm のパッケージをインストールします。`npm install` に続けて、インストールしたいパッケージの名前を入力します。
199199

@@ -203,7 +203,7 @@ npm install date-fns
203203

204204
これにより、フォルダの中に `package-lock.json` ファイルと、`node_modules` フォルダが作成され、内部にパッケージ本体がダウンロードされます。
205205

206-
<video src={npmInstallVideo} controls muted autoPlay loop />
206+
<video src={npmInstallVideo} controls muted />
207207

208208
:::tip[JSON]
209209

docs/3-web-servers/07-database/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ npx prisma init
8484

8585
コマンドを実行します。パッケージを実行しても良いか尋ねられる場合は、`y` を入力して許可しましょう。
8686

87-
<video src={prismaInitVideo} controls muted autoPlay loop />
87+
<video src={prismaInitVideo} controls muted />
8888

8989
:::tip[<Term>`npx` コマンド</Term>]
9090

@@ -96,7 +96,7 @@ npx prisma init
9696

9797
続いて、ElephantSQL からデータベースへの接続情報を `.env` ファイルにコピーします。これにより、Prisma は ElephantSQL 上の PostgreSQL サーバーと接続できるようになります。
9898

99-
<video src={copySecretValuesVideo} controls muted autoPlay loop />
99+
<video src={copySecretValuesVideo} controls muted />
100100

101101
`prisma/schema.prisma` ファイルを、次のように編集し、データベースのテーブルとカラムを定義します。
102102

docs/3-web-servers/08-cookie/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ app.listen(3000);
5757

5858
[`express.Request#cookies` プロパティ](https://expressjs.com/ja/api.html#req.cookies) には、ブラウザから送信されていた Cookie がオブジェクト形式で保存されています。ブラウザで表示させると、更新ボタンが押されるたびに数値が増えていることがわかります。
5959

60-
<video src={cookieCounterVideo} controls muted autoPlay loop />
60+
<video src={cookieCounterVideo} controls muted />
6161

6262
プログラムの流れを整理すると、次の図のようになります。
6363

docs/3-web-servers/10-git-github/index.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Git では、**リポジトリ**と呼ばれる単位でソースコードを管
2222

2323
まずは Git で管理するためのディレクトリを作成し、VS Code で開きます。左側のアクティビティバーの `Source Control` パネル内の `Initialize Repository` ボタンを押してください。これで、カレントディレクトリを Git の管理下に置く (カレントディレクトリを Git リポジトリにする) ことができます。
2424

25-
<video src={gitInitVideo} controls autoPlay muted loop />
25+
<video src={gitInitVideo} controls muted />
2626

2727
:::info[`git init` コマンド]
2828

@@ -32,7 +32,7 @@ Git の操作は、コマンドからも行うことが出来ます。カレン
3232
git init
3333
```
3434

35-
<video src={gitInitWithCliVideo} controls autoPlay muted loop />
35+
<video src={gitInitWithCliVideo} controls muted />
3636

3737
:::
3838

@@ -58,7 +58,7 @@ branches config description HEAD hooks info objects refs
5858

5959
コミットを作成する前に、変更を**ステージ**する必要があります。ステージとはコミットの直前の状態で、Git に対して該当ファイルをコミットする意思があることを伝えるためのものです。`Source Control` パネル内の変更したファイルの横の `+` ボタンを押します。ファイルが `Changes` から `Staged Changes` に移ったら成功です。
6060

61-
<video src={stageChangesVideo} loop muted autoPlay controls />
61+
<video src={stageChangesVideo} muted controls />
6262

6363
:::info[`git status` コマンド]
6464

@@ -85,13 +85,13 @@ $ git add -A # リポジトリ内部のすべてのファイルをステージ
8585

8686
`git add` コマンドを使う前後で `git status` コマンドの結果が変化していることを確認しましょう。
8787

88-
<video src={stageChangesWithCliVideo} loop muted autoPlay controls />
88+
<video src={stageChangesWithCliVideo} muted controls />
8989

9090
:::
9191

9292
ステージされた変更からコミットを作成するには、**コミットメッセージ**を入力して `Commit` ボタンを押します。コミットメッセージには、そのコミットで行われた変更を説明する簡潔なメッセージを入力してください。(日本語も使うことが出来ます。)
9393

94-
<video src={commitChangesVideo} muted autoPlay loop controls />
94+
<video src={commitChangesVideo} muted controls />
9595

9696
変更がコミットとして記録されました。
9797

@@ -103,7 +103,7 @@ $ git add -A # リポジトリ内部のすべてのファイルをステージ
103103
git commit -m "コミットメッセージ"
104104
```
105105

106-
<video src={commitChangesWithCliVideo} muted autoPlay loop controls />
106+
<video src={commitChangesWithCliVideo} muted controls />
107107

108108
:::
109109

@@ -119,17 +119,17 @@ git commit -m "コミットメッセージ"
119119

120120
先ほど作成したファイルを変更し、ステージした後、もう一度コミットを作ってみましょう。
121121

122-
<video src={secondCommitVideo} muted autoPlay loop controls />
122+
<video src={secondCommitVideo} muted controls />
123123

124124
これにより、2 つ目のコミットが作成されました。コミットの履歴を確認するために、先ほどインストールした `Git Graph` 拡張機能を起動してみましょう。<kbd>command</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> (macOS) / <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> (Windows) キーを押してコマンドパレットを開き、`Git Graph: View Git Graph (git log)` を選択します。
125125

126-
<video src={showGitHistoryVideo} muted autoPlay loop controls />
126+
<video src={showGitHistoryVideo} muted controls />
127127

128128
:::info[`git log` コマンド]
129129

130130
コマンドを用いて変更を表示するには、`git log` コマンドを使用します。
131131

132-
<video src={showGitHistoryWithCliVideo} muted autoPlay loop controls />
132+
<video src={showGitHistoryWithCliVideo} muted controls />
133133

134134
:::
135135

@@ -139,7 +139,7 @@ git commit -m "コミットメッセージ"
139139

140140
下の動画の最後で実行されている `git diff @ @~` は、最新のコミットとそのひとつ前のコミットを比較するためのコマンドです。`@` が最新のコミットを、`~` が「そのひとつ前」を表します。
141141

142-
<video src={showGitDiffWithCliVideo} muted autoPlay loop controls />
142+
<video src={showGitDiffWithCliVideo} muted controls />
143143

144144
:::
145145

@@ -163,7 +163,7 @@ git remote add origin [email protected]:アカウント名/リポジトリ名.git
163163

164164
追加が完了したら、`origin` として登録したリモートリポジトリにコミットを送信します。この操作を**プッシュ**と呼びます。プッシュをするには、`Publish Branch` を押します。
165165

166-
<video src={pushChangesVideo} muted autoPlay loop controls />
166+
<video src={pushChangesVideo} muted controls />
167167

168168
:::info
169169

0 commit comments

Comments
 (0)