forked from lucaspatenaude/ScoreSpot
Updated registration screen added
This commit is contained in:
@@ -5,6 +5,13 @@ $(document).ready(function() {
|
||||
// Toggle the visibility of the login container
|
||||
$('#login-container').toggle();
|
||||
});
|
||||
|
||||
$('#register-page-login-button').click(function() {
|
||||
event.preventDefault(); // Prevent the default action of following the link
|
||||
|
||||
$('#register-container').hide();
|
||||
$('#login-container').toggle();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
$(document).ready(function () {
|
||||
|
||||
// Listen for click event on the register button
|
||||
$('#register-button').click(function (event) {
|
||||
event.preventDefault(); // Prevent the default action of following the link
|
||||
|
||||
$('#login-container').hide();
|
||||
// Show the register container
|
||||
$('#register-container').show();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user