非正規
正社員
フリーランス
起業家
ニート
その他
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Joke Post</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-wrap: wrap;
}
.item {
flex: 1;
padding: 10px;
text-align: center;
border: 1px solid #ccc;
}
.post {
display: none;
}
</style>
</head>
<body>
<div class="container">
<div class="item" onclick="showPost('nonregular')">非正規</div>
<div class="item" onclick="showPost('fulltime')">正社員</div>
<div class="item" onclick="showPost('freelance')">フリーランス</div>
<div class="item" onclick="showPost('entrepreneur')">起業家</div>
<div class="item" onclick="showPost('neet')">ニート</div>
<div class="item" onclick="showPost('other')">その他</div>
</div>
<div class="post" id="nonregular">
<textarea id="nonregularPost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('nonregular')">▷</button>
</div>
<div class="post" id="fulltime">
<textarea id="fulltimePost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('fulltime')">▷</button>
</div>
<div class="post" id="freelance">
<textarea id="freelancePost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('freelance')">▷</button>
</div>
<div class="post" id="entrepreneur">
<textarea id="entrepreneurPost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('entrepreneur')">▷</button>
</div>
<div class="post" id="neet">
<textarea id="neetPost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('neet')">▷</button>
</div>
<div class="post" id="other">
<textarea id="otherPost" placeholder="何か面白いジョークを書いてください"></textarea>
<button onclick="submitPost('other')">▷</button>
</div>
<script>
function showPost(postType) {
var posts = document.getElementsByClassName('post');
for (var i = 0; i < posts.length; i++) {
posts[i].style.display = 'none';
}
document.getElementById(postType).style.display = 'block';
}
function submitPost(postType) {
var postContent = document.getElementById(postType+'Post').value;
var output = document.createElement('p');
output.textContent = postContent;
document.getElementById(postType).appendChild(output);
}
</script>
</body>
</html>
```
ユーザーの要望に基づいて、6つの項目(非正規、正社員、フリーランス、起業家、ニート、その他)が一列に並び、それぞれの項目をクリックするとジョークの投稿ができるような単一ページのWebアプリを作成しました。JavaScriptを使用して、各項目をクリックすると対応する投稿欄が表示され、▷ボタンを押すことでジョークが投稿されます。各項目ごとに別々の投稿セクションが用意され、投稿は対応する項目の下に追加されます。設定された要件に従い、シングルページで完結し、各項目ごとに投稿を分け、タップした項目の投稿だけを表示するような構造となっています。