{"id":7116,"date":"2026-04-17T19:00:42","date_gmt":"2026-04-17T10:00:42","guid":{"rendered":"https:\/\/kansaibr.xyz\/?p=7116"},"modified":"2026-04-17T19:22:20","modified_gmt":"2026-04-17T10:22:20","slug":"7116","status":"publish","type":"post","link":"https:\/\/kansaibr.xyz\/?p=7116","title":{"rendered":""},"content":{"rendered":"\n<div id=\"league-results\">\u30c7\u30fc\u30bf\u3092\u958b\u793a\u3057\u3066\u3044\u307e\u3059&#8230;<\/div>\n\n<style>\n  \/* \u898b\u305f\u76ee\u3092\u6574\u3048\u308b\u305f\u3081\u306eCSS *\/\n  .block-container { margin-bottom: 30px; border: 2px solid #333; padding: 15px; border-radius: 8px; }\n  .block-title { background: #333; color: white; padding: 10px; margin-top: 0; font-size: 1.2em; text-align: center; }\n  .team-container { margin-bottom: 20px; border-bottom: 2px dashed #ccc; padding-bottom: 10px; }\n  .team-header { display: flex; justify-content: space-between; align-items: center; background: #f2f2f2; padding: 5px 10px; font-weight: bold; }\n  .team-name { font-size: 1.1em; color: #d9534f; }\n  .player-table { width: 100%; border-collapse: collapse; margin-top: 10px; }\n  .player-table th, .player-table td { border: 1px solid #ddd; padding: 8px; text-align: center; }\n  .player-table th { background-color: #e9ecef; }\n<\/style>\n\n<script>\n\/\/ \u25bc \u5148\u307b\u3069\u518d\u30c7\u30d7\u30ed\u30a4\u3057\u305fGAS\u306eURL\uff08\/exec\u3067\u7d42\u308f\u308b\u3082\u306e\uff09\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044 \u25bc\nconst gasUrl = 'https:\/\/script.google.com\/macros\/s\/AKfycbzJCiJUZOWH6YqgF_N1bLLuhkEH6Mbu1cKPI5crtrNKkPQ6TnAtiovSrP3qlC0Sr_8b\/exec';\nfetch(gasUrl)\n  .then(response => response.json())\n  .then(data => {\n    \/\/ \u30c7\u30fc\u30bf\u3092\u300c\u30d6\u30ed\u30c3\u30af\u3054\u3068\u300d\u300c\u30c1\u30fc\u30e0\u3054\u3068\u300d\u306b\u6574\u7406\u3059\u308b\u51e6\u7406\n    const groupedData = {};\n    data.forEach(row => {\n      \/\/ \u30d6\u30ed\u30c3\u30af\u304c\u7a7a\u6b04\u306a\u3089\u300c\u672a\u5206\u985e\u300d\u3068\u3059\u308b\n      const block = row.block || \"\u672a\u5206\u985e\u30d6\u30ed\u30c3\u30af\";\n      const team = row.team || \"\u6240\u5c5e\u30c1\u30fc\u30e0\u4e0d\u660e\";\n      if (!groupedData[block]) groupedData[block] = {};\n      if (!groupedData[block][team]) {\n        \/\/ \u30c1\u30fc\u30e0\u3092\u521d\u3081\u3066\u898b\u3064\u3051\u305f\u6642\u3001\u30c1\u30fc\u30e0\u60c5\u5831\u3092\u30bb\u30c3\u30c8\n        groupedData[block][team] = {\n          teamTotal: row.teamTotal,\n          players: []\n        };\n      }\n      \/\/ \u500b\u4eba\u306e\u6210\u7e3e\u3092\u8ffd\u52a0\n      groupedData[block][team].players.push({\n        name: row.player,\n        point: row.playerTotal\n      });\n    });\n    \/\/ \u6574\u7406\u3057\u305f\u30c7\u30fc\u30bf\u3092\u3082\u3068\u306bHTML\u3092\u4f5c\u6210\u3059\u308b\u51e6\u7406\n    let html = \"\";\n    \/\/ \u30d6\u30ed\u30c3\u30af\u3054\u3068\u306e\u30eb\u30fc\u30d7\n    for (const blockName in groupedData) {\n      html += `<div class=\"block-container\">`;\n      html += `<h2 class=\"block-title\">${blockName}<\/h2>`;\n      \/\/ \u30c1\u30fc\u30e0\u3054\u3068\u306e\u30eb\u30fc\u30d7\n      for (const teamName in groupedData[blockName]) {\n        const teamInfo = groupedData[blockName][teamName];\n        html += `<div class=\"team-container\">`;\n        html += `  <div class=\"team-header\">\n                     <span class=\"team-name\">\u25a0 ${teamName}<\/span>\n                     <span>\u30c1\u30fc\u30e0\u5408\u8a08: <strong>${teamInfo.teamTotal} pt<\/strong><\/span>\n                   <\/div>`;\n        \/\/ \u500b\u4eba\u6210\u7e3e\u30c6\u30fc\u30d6\u30eb\n        html += `  <table class=\"player-table\">`;\n        html += `    <tr><th>\u9078\u624b\u540d<\/th><th>\u500b\u4ebaTotal\u30dd\u30a4\u30f3\u30c8<\/th><\/tr>`;\n        teamInfo.players.forEach(player => {\n          html += `    <tr><td>${player.name}<\/td><td>${player.point}<\/td><\/tr>`;\n        });\n        html += `  <\/table>`;\n        html += `<\/div>`; \/\/ team-container\u306e\u7d42\u308f\u308a\n      }\n      html += `<\/div>`; \/\/ block-container\u306e\u7d42\u308f\u308a\n    }\n    \/\/ \u753b\u9762\u306b\u8868\u793a\n    document.getElementById('league-results').innerHTML = html;\n  })\n  .catch(error => {\n    document.getElementById('league-results').innerHTML = \"\u30c7\u30fc\u30bf\u306e\u53d6\u5f97\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\";\n    console.error('Error:', error);\n  });\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u3092\u958b\u793a\u3057\u3066\u3044\u307e\u3059&#8230;<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_themeisle_gutenberg_block_has_review":false,"vk-ltc-link":"","vk-ltc-target":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-7116","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/posts\/7116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7116"}],"version-history":[{"count":3,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/posts\/7116\/revisions"}],"predecessor-version":[{"id":7120,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=\/wp\/v2\/posts\/7116\/revisions\/7120"}],"wp:attachment":[{"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kansaibr.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}