Skip to content

Commit dab3a5d

Browse files
committed
Added the checkbox to make sure people know
1 parent 3b70513 commit dab3a5d

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

src/pages/signup.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ var signInArea = {
4848
{
4949
element: "br",
5050
},
51+
{
52+
element: "div",
53+
children: [
54+
{
55+
element: "span",
56+
textContent: "I'm 13+ or have parent permission: ",
57+
},
58+
{
59+
element: "input",
60+
type: "checkbox",
61+
gid: "age_checkbox",
62+
style: { marginLeft: "2px" },
63+
}
64+
]
65+
},
5166
botCheck.jsonElement,
5267
{
5368
element: "div",
@@ -127,9 +142,15 @@ elements.appendElements(
127142
var goButton = elements.getGPId("goButton");
128143
var usernameInput = elements.getGPId("username_input");
129144
var passwordInput = elements.getGPId("password_input");
145+
var ageCheckbox = elements.getGPId("age_checkbox");
130146
var loader = require("./loadingscreen.js");
131147

132148
async function signUp() {
149+
if (!ageCheckbox.checked) {
150+
dialog.alert("Did you forget to check \"I'm 13+ or have parent permission?\"\nYou must agree to what it says.");
151+
return;
152+
}
153+
133154
var loadingScreen = loader.doLoadingScreen();
134155
goButton.disabled = true;
135156
try {

wpstatic/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"timestamp":"1775924747920"}
1+
{"timestamp":"1776179385575"}

0 commit comments

Comments
 (0)