{"id":26023,"date":"2025-05-20T12:21:50","date_gmt":"2025-05-20T03:21:50","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=26023"},"modified":"2025-05-20T12:22:14","modified_gmt":"2025-05-20T03:22:14","slug":"%e6%b1%82%e4%ba%ba%e6%8e%b2%e7%a4%ba%e6%9d%bf%e3%82%b5%e3%82%a4%e3%83%88-html","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=26023","title":{"rendered":"\u6c42\u4eba\u63b2\u793a\u677f\u30b5\u30a4\u30c8.html"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html lang=\"ja\">\n&lt;head>\n  &lt;meta charset=\"UTF-8\">\n  &lt;title>JobFinder - \u6c42\u4eba\u63b2\u793a\u677f&lt;\/title>\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  &lt;style>\n    body { font-family: sans-serif; background: #f4f4f4; margin: 0; }\n    header { background: #007bff; color: white; padding: 1rem; text-align: center; }\n    main { padding: 2rem; max-width: 900px; margin: auto; }\n    .search-bar, .post-form { background: white; padding: 1rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }\n    .job-card {\n      background: white; padding: 1rem; margin-bottom: 1rem;\n      border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n    }\n    .job-card h2 { margin-top: 0; }\n    .job-card button {\n      background: #007bff; color: white;\n      border: none; padding: 0.5rem 1rem;\n      border-radius: 4px; cursor: pointer;\n    }\n    .job-card button:hover { background: #0056b3; }\n    .modal {\n      display: none; position: fixed; z-index: 999;\n      left: 0; top: 0; width: 100%; height: 100%;\n      background: rgba(0,0,0,0.5);\n      justify-content: center; align-items: center;\n    }\n    .modal-content {\n      background: white; padding: 2rem;\n      border-radius: 8px; max-width: 500px;\n    }\n    label, input, textarea, select {\n      display: block; width: 100%; margin-bottom: 10px;\n    }\n    button&#91;type=\"submit\"] {\n      background: #28a745;\n      color: white;\n      padding: 0.5rem 1rem;\n      border: none;\n      border-radius: 4px;\n    }\n  &lt;\/style>\n&lt;\/head>\n&lt;body>\n\n&lt;header>\n  &lt;h1>JobFinder - \u6c42\u4eba\u63b2\u793a\u677f&lt;\/h1>\n&lt;\/header>\n\n&lt;main>\n  &lt;!-- \ud83d\udd0d \u691c\u7d22\u30d0\u30fc -->\n  &lt;div class=\"search-bar\">\n    &lt;h3>\ud83d\udd0d \u6c42\u4eba\u691c\u7d22&lt;\/h3>\n    &lt;input type=\"text\" id=\"searchLocation\" placeholder=\"\u52e4\u52d9\u5730\u3067\u691c\u7d22\uff08\u4f8b: \u6771\u4eac\uff09\">\n    &lt;button onclick=\"filterJobs()\">\u691c\u7d22&lt;\/button>\n  &lt;\/div>\n\n  &lt;!-- \ud83d\udccb \u6c42\u4eba\u4e00\u89a7 -->\n  &lt;div id=\"jobList\">&lt;\/div>\n\n  &lt;!-- \ud83d\udcdd \u6c42\u4eba\u6295\u7a3f\u30d5\u30a9\u30fc\u30e0 -->\n  &lt;div class=\"post-form\">\n    &lt;h3>\ud83d\udcdd \u65b0\u3057\u3044\u6c42\u4eba\u3092\u6295\u7a3f&lt;\/h3>\n    &lt;input type=\"text\" id=\"jobTitle\" placeholder=\"\u8077\u7a2e\uff08\u4f8b: Web\u30a8\u30f3\u30b8\u30cb\u30a2\uff09\">\n    &lt;input type=\"text\" id=\"jobCompany\" placeholder=\"\u4f1a\u793e\u540d\">\n    &lt;input type=\"text\" id=\"jobLocation\" placeholder=\"\u52e4\u52d9\u5730\uff08\u4f8b: \u6771\u4eac\uff09\">\n    &lt;textarea id=\"jobDescription\" rows=\"3\" placeholder=\"\u4ed5\u4e8b\u5185\u5bb9\u3092\u5165\u529b...\">&lt;\/textarea>\n    &lt;button onclick=\"addJob()\">\u6c42\u4eba\u3092\u6295\u7a3f&lt;\/button>\n  &lt;\/div>\n&lt;\/main>\n\n&lt;!-- \ud83d\udcc4 \u30e2\u30fc\u30c0\u30eb -->\n&lt;div class=\"modal\" id=\"jobModal\">\n  &lt;div class=\"modal-content\" id=\"modalContent\">&lt;\/div>\n&lt;\/div>\n\n&lt;script>\nlet jobs = &#91;\n  {\n    title: \"Web\u30a8\u30f3\u30b8\u30cb\u30a2\",\n    company: \"\u682a\u5f0f\u4f1a\u793e\u30c6\u30c3\u30af\",\n    location: \"\u6771\u4eac\",\n    description: \"React\u3084Vue\u3092\u7528\u3044\u305f\u958b\u767a\u3002\u7d4c\u9a13\u8005\u512a\u9047\u3002\"\n  },\n  {\n    title: \"\u55b6\u696d\u8077\",\n    company: \"\u30bb\u30fc\u30eb\u30b9\u682a\u5f0f\u4f1a\u793e\",\n    location: \"\u5927\u962a\",\n    description: \"\u6cd5\u4eba\u55b6\u696d\u7d4c\u9a13\u8005\u6b53\u8fce\u3002\"\n  }\n];\n\nfunction displayJobs(filteredJobs = jobs) {\n  const jobList = document.getElementById(\"jobList\");\n  jobList.innerHTML = \"\";\n  filteredJobs.forEach((job, index) => {\n    const card = document.createElement(\"div\");\n    card.className = \"job-card\";\n    card.innerHTML = `\n      &lt;h2>${job.title}&lt;\/h2>\n      &lt;p>&lt;strong>\u4f1a\u793e:&lt;\/strong> ${job.company}&lt;\/p>\n      &lt;p>&lt;strong>\u52e4\u52d9\u5730:&lt;\/strong> ${job.location}&lt;\/p>\n      &lt;button onclick=\"showDetails(${index})\">\u8a73\u7d30\u3092\u898b\u308b&lt;\/button>\n    `;\n    jobList.appendChild(card);\n  });\n}\n\nfunction showDetails(index) {\n  const job = jobs&#91;index];\n  const modal = document.getElementById(\"jobModal\");\n  const modalContent = document.getElementById(\"modalContent\");\n  modalContent.innerHTML = `\n    &lt;h2>${job.title}&lt;\/h2>\n    &lt;p>&lt;strong>\u4f1a\u793e:&lt;\/strong> ${job.company}&lt;\/p>\n    &lt;p>&lt;strong>\u52e4\u52d9\u5730:&lt;\/strong> ${job.location}&lt;\/p>\n    &lt;p>${job.description}&lt;\/p>\n    &lt;button onclick=\"alert('\u5fdc\u52df\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01')\">\u5fdc\u52df\u3059\u308b&lt;\/button>\n    &lt;button onclick=\"document.getElementById('jobModal').style.display='none'\">\u9589\u3058\u308b&lt;\/button>\n  `;\n  modal.style.display = \"flex\";\n}\n\nfunction addJob() {\n  const title = document.getElementById(\"jobTitle\").value;\n  const company = document.getElementById(\"jobCompany\").value;\n  const location = document.getElementById(\"jobLocation\").value;\n  const description = document.getElementById(\"jobDescription\").value;\n\n  if (title &amp;&amp; company &amp;&amp; location &amp;&amp; description) {\n    jobs.push({ title, company, location, description });\n    displayJobs();\n    document.getElementById(\"jobTitle\").value = \"\";\n    document.getElementById(\"jobCompany\").value = \"\";\n    document.getElementById(\"jobLocation\").value = \"\";\n    document.getElementById(\"jobDescription\").value = \"\";\n  } else {\n    alert(\"\u3059\u3079\u3066\u306e\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\");\n  }\n}\n\nfunction filterJobs() {\n  const keyword = document.getElementById(\"searchLocation\").value.trim();\n  const filtered = jobs.filter(job => job.location.includes(keyword));\n  displayJobs(filtered);\n}\n\n\/\/ \u521d\u671f\u8868\u793a\ndisplayJobs();\n\nwindow.onclick = function(event) {\n  const modal = document.getElementById(\"jobModal\");\n  if (event.target === modal) {\n    modal.style.display = \"none\";\n  }\n}\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[80],"tags":[],"class_list":["post-26023","post","type-post","status-publish","format-standard","hentry","category-html"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/26023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26023"}],"version-history":[{"count":2,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/26023\/revisions"}],"predecessor-version":[{"id":26025,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/26023\/revisions\/26025"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26023"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}