File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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(
127142var goButton = elements . getGPId ( "goButton" ) ;
128143var usernameInput = elements . getGPId ( "username_input" ) ;
129144var passwordInput = elements . getGPId ( "password_input" ) ;
145+ var ageCheckbox = elements . getGPId ( "age_checkbox" ) ;
130146var loader = require ( "./loadingscreen.js" ) ;
131147
132148async 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 {
Original file line number Diff line number Diff line change 1- {"timestamp" :" 1775924747920 " }
1+ {"timestamp" :" 1776179385575 " }
You can’t perform that action at this time.
0 commit comments