過去の経験ヒアリングアプリ
経験を教えてください。5回質問した後、エピソードを要約します。
```html
<!DOCTYPE html>
<html>
<head>
<title>経験のヒアリング</title>
</head>
<body>
<h1>過去の経験ヒアリングアプリ</h1>
<p>経験を教えてください。5回質問した後、エピソードを要約します。</p>
<input type="text" id="experience" placeholder="過去の経験を入力してください">
<button onclick="askQuestion()">次の質問</button>
<script>
let questions = ["どんな状況でその経験をしましたか?", "その時の気持ちはどうでしたか?", "誰かと一緒にいましたか?", "その経験から学んだことはありますか?", "同じ状況に再び遭遇したらどうしますか?"];
let counter = 0;
let answers = [];
function askQuestion() {
let answer = document.getElementById("experience").value;
answers.push(answer);
counter++;
if (counter < 5) {
document.getElementById("experience").value = "";
document.getElementById("experience").placeholder = questions[counter];
} else {
summarizeExperience();
}
}
function summarizeExperience() {
let summary = "過去の経験の要約:<br><br>";
for (let i = 0; i < answers.length; i++) {
summary += `質問${i+1}: ${questions[i]}<br>回答: ${answers[i]}<br><br>`;
}
document.body.innerHTML = summary;
}
</script>
</body>
</html>
```
このアプリは、ユーザーの過去の経験をヒアリングするためのものです。ユーザーはテキストボックスに経験を入力し、5つの質問を連続して回答します。最後に、それぞれの質問と回答を要約して表示します。エピソードを深堀りすると同時に、冗談を交えて会話を楽しんでください。