{"id":15,"date":"2026-04-21T12:42:56","date_gmt":"2026-04-21T12:42:56","guid":{"rendered":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php\/signup\/"},"modified":"2026-04-21T12:42:56","modified_gmt":"2026-04-21T12:42:56","slug":"signup","status":"publish","type":"page","link":"https:\/\/great-euclid.217-154-38-247.plesk.page\/?page_id=15","title":{"rendered":"Signup"},"content":{"rendered":"\n<div class=\"plp-signup-container\">\n\n    <h2>Join the League<\/h2>\n    <p class=\"plp-subtext\">Enter your invite code to get started.<\/p>\n    <p class=\"plp-subtext\">Weekly entry fee: <strong>GBP 5<\/strong>.<\/p>\n\n    <p><strong>Already Registered?<\/strong> <a href=\"https:\/\/great-euclid.217-154-38-247.plesk.page\/home\">Click here to log in<\/a><\/p>\n\n    <hr>\n\n    <form id=\"plp-signup-form\">\n        <input type=\"hidden\" name=\"access_token\" value=\"\">\n\n        <label>Invite Code<\/label>\n        <input type=\"text\" name=\"invite\" maxlength=\"6\" placeholder=\"123456\" value=\"\" required>\n\n        <label>First Name<\/label>\n        <input type=\"text\" name=\"first\" placeholder=\"Your name\" required>\n\n        <label>Team Name<\/label>\n        <input type=\"text\" name=\"team\" placeholder=\"Your team name\" required>\n\n        <label>Email<\/label>\n        <input type=\"email\" name=\"email\" placeholder=\"you@example.com\" required>\n\n        <button type=\"submit\" class=\"plp-btn\">Join League<\/button>\n\n        <div id=\"plp-signup-message\"><\/div>\n\n    <\/form>\n\n    <p class=\"plp-hint\">Need help? Contact the league admin.<\/p>\n\n<\/div>\n\n<script>\njQuery(function($){\n\n    $('#plp-signup-form').on('submit', function(e){\n        e.preventDefault();\n\n        $('#plp-signup-message').html('<p>Creating your account...<\/p>');\n\n        $.post(plp_ajax.url, {\n            action: 'plp_signup',\n            _ajax_nonce: plp_ajax.nonce,\n            invite: $('input[name=invite]').val(),\n            first: $('input[name=first]').val(),\n            team: $('input[name=team]').val(),\n            email: $('input[name=email]').val(),\n            access_token: $('input[name=access_token]').val()\n        }, function(res){\n\n            if (res.success) {\n                $('#plp-signup-message').html('<p class=\"plp-success\">Success! Redirecting...<\/p>');\n                setTimeout(function(){\n                    window.location.href = 'https:\/\/great-euclid.217-154-38-247.plesk.page\/dashboard';\n                }, 800);\n            } else {\n                $('#plp-signup-message').html('<p class=\"plp-error\">' + res.data.message + '<\/p>');\n            }\n\n        });\n\n    });\n\n});\n<\/script>\n\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-15","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":0,"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=\/wp\/v2\/pages\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/great-euclid.217-154-38-247.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}