		{"id":149,"date":"2025-05-05T05:13:33","date_gmt":"2025-05-05T05:13:33","guid":{"rendered":"https:\/\/wargamer.kz\/?page_id=149"},"modified":"2025-05-05T18:43:36","modified_gmt":"2025-05-05T18:43:36","slug":"nexus_rating","status":"publish","type":"page","link":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/","title":{"rendered":"Nexus League S1"},"content":{"rendered":"    <style>\n        .nexusleague-table {\n            width: 100%;\n            border-collapse: collapse;\n            margin-top: 20px;\n        }\n        .nexusleague-table th, .nexusleague-table td {\n            padding: 10px;\n            border: 1px solid #ddd;\n            text-align: left;\n        }\n        .nexusleague-table th {\n            background-color: transparent; \/* \u0421\u0434\u0435\u043b\u0430\u043b\u0438 \u0444\u043e\u043d \u0448\u0430\u043f\u043a\u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c *\/\n        }\n        .game-list-table {\n            width: 100%;\n            margin-top: 20px;\n            border-collapse: collapse;\n        }\n        .game-list-table th, .game-list-table td {\n            padding: 8px;\n            border: 1px solid #ddd;\n            text-align: left;\n        }\n        .game-list-table th {\n            background-color: transparent; \/* \u0424\u043e\u043d \u0448\u0430\u043f\u043a\u0438 \u0438\u0433\u0440\u044b \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 *\/\n        }\n        .game-list-table td {\n            background-color: transparent; \/* \u0422\u0430\u043a\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0444\u043e\u043d \u044f\u0447\u0435\u0435\u043a \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c *\/\n        }\n        .game-list-table th {\n            background-color: transparent; \/* \u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u0444\u043e\u043d \u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 *\/\n        }\n        .winner {\n            font-weight: bold;\n            color: green;\n        }\n    <\/style>\n\n    <table class=\"nexusleague-table\">\n        <thead>\n            <tr>\n                <th>\u0418\u043c\u044f \u0438\u0433\u0440\u043e\u043a\u0430<\/th>\n                <th>\u0420\u0435\u0439\u0442\u0438\u043d\u0433<\/th>\n            <\/tr>\n        <\/thead>\n        <tbody>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"6\">\n                            \u0410\u043b\u0438\u043c                        <\/a>\n                        <div class=\"game-list\" id=\"games-6\"><\/div>\n                    <\/td>\n                    <td>1568<\/td>\n                <\/tr>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"2\">\n                            \u0414\u0430\u043c\u0438\u0440                        <\/a>\n                        <div class=\"game-list\" id=\"games-2\"><\/div>\n                    <\/td>\n                    <td>1535<\/td>\n                <\/tr>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"7\">\n                            \u0410\u043d\u0434\u0440\u0435\u0439                        <\/a>\n                        <div class=\"game-list\" id=\"games-7\"><\/div>\n                    <\/td>\n                    <td>1480<\/td>\n                <\/tr>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"1\">\n                            \u0410\u043b\u0435\u043a\u0441\u0435\u0439                        <\/a>\n                        <div class=\"game-list\" id=\"games-1\"><\/div>\n                    <\/td>\n                    <td>1472<\/td>\n                <\/tr>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"3\">\n                            \u0415\u0440\u043b\u0430\u043d                        <\/a>\n                        <div class=\"game-list\" id=\"games-3\"><\/div>\n                    <\/td>\n                    <td>1459<\/td>\n                <\/tr>\n                            <tr>\n                    <td>\n                        <a href=\"#\" class=\"player-name\" data-player-id=\"4\">\n                            \u0416\u0430\u0440\u0433\u0430\u043b                        <\/a>\n                        <div class=\"game-list\" id=\"games-4\"><\/div>\n                    <\/td>\n                    <td>1428<\/td>\n                <\/tr>\n                    <\/tbody>\n    <\/table>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function () {\n        document.querySelectorAll('.player-name').forEach(function (el) {\n            el.addEventListener('click', function (e) {\n                e.preventDefault();\n                const playerId = this.dataset.playerId;\n                const gameList = document.getElementById('games-' + playerId);\n\n                if (gameList.innerHTML.trim() !== '') {\n                    gameList.innerHTML = '';\n                    return;\n                }\n\n                fetch('https:\/\/wargamer.kz\/wp-admin\/admin-ajax.php?action=fetch_player_games&player_id=' + playerId)\n                    .then(response => response.json())\n                    .then(data => {\n                        if (data.length === 0) {\n                            gameList.innerHTML = '<p>\u041d\u0435\u0442 \u0438\u0433\u0440.<\/p>';\n                        } else {\n                            let html = `\n                                <table class=\"game-list-table\">\n                                    <thead>\n                                        <tr>\n                                            <th>\u0414\u0430\u0442\u0430<\/th>\n                                            <th>\u0418\u0433\u0440\u043e\u043a A (\u0424\u0440\u0430\u043a\u0446\u0438\u044f)<\/th>\n                                            <th>\u0418\u0433\u0440\u043e\u043a B (\u0424\u0440\u0430\u043a\u0446\u0438\u044f)<\/th>\n                                            <th>\u041d\u043e\u0432\u044b\u0439 \u0440\u0435\u0439\u0442\u0438\u043d\u0433<\/th>\n                                        <\/tr>\n                                    <\/thead>\n                                    <tbody>\n                            `;\n                            data.forEach(game => {\n                                const date = new Date(game.created_at);\n                                const formattedDate = date.toLocaleDateString('ru-RU');\n\n                                let playerA = `${game.player_a_name} (${game.faction_a})`;\n                                let playerB = `${game.player_b_name} (${game.faction_b})`;\n\n                                if (game.result == 1) {\n                                    playerA = `<span class=\"winner\">${playerA}<\/span>`;\n                                } else if (game.result == 0) {\n                                    playerB = `<span class=\"winner\">${playerB}<\/span>`;\n                                }\n\n                                html += `\n                                    <tr>\n                                        <td>${formattedDate}<\/td>\n                                        <td>${playerA}<\/td>\n                                        <td>${playerB}<\/td>\n                                        <td>${Math.round(game.new_rating_a)} : ${Math.round(game.new_rating_b)}<\/td>\n                                    <\/tr>\n                                `;\n                            });\n                            html += `\n                                <\/tbody>\n                            <\/table>\n                            `;\n                            gameList.innerHTML = html;\n                        }\n                    });\n            });\n        });\n    });\n    <\/script>\n    \n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-149","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nexus League S1 - Wargamer.kz<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nexus League S1 - Wargamer.kz\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/\" \/>\n<meta property=\"og:site_name\" content=\"Wargamer.kz\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-05T18:43:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 \u043c\u0438\u043d\u0443\u0442\u0430\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/\",\"url\":\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/\",\"name\":\"Nexus League S1 - Wargamer.kz\",\"isPartOf\":{\"@id\":\"https:\/\/wargamer.kz\/#website\"},\"datePublished\":\"2025-05-05T05:13:33+00:00\",\"dateModified\":\"2025-05-05T18:43:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wargamer.kz\/index.php\/nexus_rating\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/wargamer.kz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nexus League S1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wargamer.kz\/#website\",\"url\":\"https:\/\/wargamer.kz\/\",\"name\":\"Wargamer.kz\",\"description\":\"\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u043c\u043e\u0441\u0442\u0438\u043a \u0432\u0430\u0440\u0433\u0435\u0439\u043c\u0435\u0440\u043e\u0432 \u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0430\",\"publisher\":{\"@id\":\"https:\/\/wargamer.kz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wargamer.kz\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wargamer.kz\/#organization\",\"name\":\"Wargamer.kz\",\"url\":\"https:\/\/wargamer.kz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/wargamer.kz\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wargamer.kz\/wp-content\/uploads\/2025\/04\/Logo_LONG-1-scaled.png\",\"contentUrl\":\"https:\/\/wargamer.kz\/wp-content\/uploads\/2025\/04\/Logo_LONG-1-scaled.png\",\"width\":2560,\"height\":709,\"caption\":\"Wargamer.kz\"},\"image\":{\"@id\":\"https:\/\/wargamer.kz\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nexus League S1 - Wargamer.kz","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/","og_locale":"ru_RU","og_type":"article","og_title":"Nexus League S1 - Wargamer.kz","og_url":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/","og_site_name":"Wargamer.kz","article_modified_time":"2025-05-05T18:43:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"1 \u043c\u0438\u043d\u0443\u0442\u0430"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/","url":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/","name":"Nexus League S1 - Wargamer.kz","isPartOf":{"@id":"https:\/\/wargamer.kz\/#website"},"datePublished":"2025-05-05T05:13:33+00:00","dateModified":"2025-05-05T18:43:36+00:00","breadcrumb":{"@id":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wargamer.kz\/index.php\/nexus_rating\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wargamer.kz\/index.php\/nexus_rating\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/wargamer.kz\/"},{"@type":"ListItem","position":2,"name":"Nexus League S1"}]},{"@type":"WebSite","@id":"https:\/\/wargamer.kz\/#website","url":"https:\/\/wargamer.kz\/","name":"Wargamer.kz","description":"\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0439 \u043c\u043e\u0441\u0442\u0438\u043a \u0432\u0430\u0440\u0433\u0435\u0439\u043c\u0435\u0440\u043e\u0432 \u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d\u0430","publisher":{"@id":"https:\/\/wargamer.kz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wargamer.kz\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/wargamer.kz\/#organization","name":"Wargamer.kz","url":"https:\/\/wargamer.kz\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/wargamer.kz\/#\/schema\/logo\/image\/","url":"https:\/\/wargamer.kz\/wp-content\/uploads\/2025\/04\/Logo_LONG-1-scaled.png","contentUrl":"https:\/\/wargamer.kz\/wp-content\/uploads\/2025\/04\/Logo_LONG-1-scaled.png","width":2560,"height":709,"caption":"Wargamer.kz"},"image":{"@id":"https:\/\/wargamer.kz\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/pages\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":6,"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/pages\/149\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/pages\/149\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/wargamer.kz\/index.php\/wp-json\/wp\/v2\/media?parent=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}