Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const app = express();
const names = ["田中", "鈴木", "佐藤"];
app.get("/", (request, response) => {
response.send(`
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const app = express();

app.get("/", (request, response) => {
response.send(`
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion docs/3-web-servers/04-server/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const app = express();
const names = ["田中", "鈴木", "佐藤"];
app.get("/", (request, response) => {
response.send(`
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand Down
4 changes: 2 additions & 2 deletions docs/3-web-servers/07-database/_samples/forum/template.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -7,7 +7,7 @@
<body>
<ul>
<% for(const message of messages) { %>
<li><%= message %></li>
<li><%= message %></li>
<% } %>
</ul>

Expand Down
30 changes: 15 additions & 15 deletions docs/3-web-servers/08-cookie/_samples/profile/index.ejs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<form method="post" action="/login">
<input name="username">
<input name="password" type="password">
<button>ログイン</button>
</form>
<p><%= warning %></p>
<a href="/resister">新規登録</a>
</body>
</html>
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<form method="post" action="/login">
<input name="username" />
<input name="password" type="password" />
<button>ログイン</button>
</form>
<p><%= warning %></p>
<a href="/resister">新規登録</a>
</body>
</html>
20 changes: 10 additions & 10 deletions docs/3-web-servers/08-cookie/_samples/profile/login.ejs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<p>ようこそ!<%= username %>さん!</p>
<a href="/profile">プロフィールを表示</a>
</body>
</html>
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<p>ようこそ!<%= username %>さん!</p>
<a href="/profile">プロフィールを表示</a>
</body>
</html>
22 changes: 11 additions & 11 deletions docs/3-web-servers/08-cookie/_samples/profile/profile.ejs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<li>氏名:<%= name %></li>
<li>年齢:<%= age %></li>
<li>大学:<%= univ %></li>
</body>
</html>
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<li>氏名:<%= name %></li>
<li>年齢:<%= age %></li>
<li>大学:<%= univ %></li>
</body>
</html>
64 changes: 32 additions & 32 deletions docs/3-web-servers/08-cookie/_samples/profile/resister.ejs
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<form method="post" action="/resistered">
<div>
ユーザー名
<input name="username">
</div>
<div>
パスワード
<input name="password" type="password">
</div>
<div>
氏名
<input name="name">
</div>
<div>
年齢
<input name="age">
</div>
<div>
大学
<input name="univ">
</div>
<button>新規登録</button>
</form>
<p><%= warning %></p>
</body>
</html>
<head>
<meta charset="utf-8" />
<title>profile</title>
</head>
<body>
<form method="post" action="/resistered">
<div>
ユーザー名
<input name="username" />
</div>
<div>
パスワード
<input name="password" type="password" />
</div>
<div>
氏名
<input name="name" />
</div>
<div>
年齢
<input name="age" />
</div>
<div>
大学
<input name="univ" />
</div>
<button>新規登録</button>
</form>
<p><%= warning %></p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -7,7 +7,7 @@
<body>
<ul>
<% for (const department of departments) { %>
<li><%= department %></li>
<li><%= department %></li>
<% } %>
</ul>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -8,7 +8,7 @@
<%= facultyData[faculty].name %>の学科一覧
<ul>
<% for (const department of facultyData[faculty].departments) { %>
<li><%= department %></li>
<li><%= department %></li>
<% } %>
</ul>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -8,7 +8,7 @@
東京大学の学部一覧
<ul>
<% for (const faculty of faculties) { %>
<li><a href="<%= faculty %>"><%= facultyData[faculty].name %></a></li>
<li><a href="<%= faculty %>"><%= facultyData[faculty].name %></a></li>
<% } %>
</ul>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -8,7 +8,7 @@
<%= facultyData[faculty].name %>の学科一覧
<ul>
<% for (const department of facultyData[faculty].departments) { %>
<li><%= department %></li>
<li><%= department %></li>
<% } %>
</ul>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand All @@ -8,7 +8,7 @@
東京大学の学部一覧
<ul>
<% for (const faculty of faculties) { %>
<li><a href=<%= faculty %>><%= facultyData[faculty].name %></a></li>
<li><a href=<%= faculty %>><%= facultyData[faculty].name %></a></li>
<% } %>
</ul>
</body>
Expand Down
12 changes: 6 additions & 6 deletions docs/6-exercise/8-database-and-cookie/_samples/cookie/index.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand All @@ -14,15 +14,15 @@
</tr>
</thead>
<tbody>
<tr>
<% for ( const item of items ){%>
<tr>
<% for ( const item of items ){%>
<td><form action=<%= `/${item}` %>><button>購入</button></form></td>
<% } %>
</tr>
<% } %>
</tr>
</tbody>
</table>
<% if(recommended){ %>
<div>あなたへのおすすめは<%= recommended %>です</div>
<% } %>
<% } %>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand All @@ -15,11 +15,11 @@
</thead>
<tbody>
<% for (const course of courses) {%>
<tr>
<td><%= course.name %></td>
<td><%= course.hasTest %></td>
<td><%= course.description %></td>
</tr>
<tr>
<td><%= course.name %></td>
<td><%= course.hasTest %></td>
<td><%= course.description %></td>
</tr>
<% } %>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand All @@ -15,15 +15,15 @@
</thead>
<tbody>
<% for (const teacher of teachers) {%>
<tr>
<td><%= teacher.id %></td>
<td><%= teacher.name %></td>
<td>
<form action="/<%= teacher.id %>/courses">
<button type="submit">講義を見る</button>
</form>
</td>
</tr>
<tr>
<td><%= teacher.id %></td>
<td><%= teacher.name %></td>
<td>
<form action="/<%= teacher.id %>/courses">
<button type="submit">講義を見る</button>
</form>
</td>
</tr>
<% } %>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
Expand All @@ -15,11 +15,11 @@
</thead>
<tbody>
<% for (const course of courses) {%>
<tr>
<td><%= course.name %></td>
<td><%= course.hasTest %></td>
<td><%= course.description %></td>
</tr>
<tr>
<td><%= course.name %></td>
<td><%= course.hasTest %></td>
<td><%= course.description %></td>
</tr>
<% } %>
</tbody>
</table>
Expand Down
Loading