<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>人気アプリランダム表示</title>
</head>
<body>
<h1>人気アプリランダム表示</h1>
<button onclick="showRandomApp()">アプリをランダム表示</button>
<div id="app-container"></div>
<script>
// GPTAppに掲載されているアプリのリスト
const appList = [
"パズルゲーム",
"シューティングゲーム",
"カメラアプリ",
"動画編集アプリ",
"音楽アプリ",
"料理レシピアプリ",
"ニュースアプリ",
"天気アプリ",
"スケジュール管理アプリ",
"健康管理アプリ"
];
function showRandomApp() {
const appContainer = document.getElementById("app-container");
appContainer.innerHTML = "";
// ランダムにアプリを選ぶ
const appIndex = Math.floor(Math.random() * appList.length);
// アプリを表示する
const appElement = document.createElement("p");
appElement.textContent = `${appList[appIndex]}が選ばれました!`;
appContainer.appendChild(appElement);
}
</script>
</body>
</html>
※ジョークの内容は省略しました。