Grouping route

This commit is contained in:
2024-10-02 15:33:41 +07:00
parent 5d7dc70f1b
commit 93c44f40cc
41 changed files with 1176 additions and 1158 deletions

View File

@ -1,6 +1,6 @@
if (!window.mySocket) {
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
window.mySocket = new WebSocket(`${wsProtocol}//${window.location.host}/user`);
window.mySocket = new WebSocket(`${wsProtocol}//${window.location.host}/ws`);
window.mySocket.onopen = function(event) {
console.log('WebSocket is open now.');

View File

@ -3,6 +3,7 @@ var isValid = false;
var hasUppercase = false;
function validatePasswords() {
var checkContainer = document.getElementById('checkContainer')
var password = document.getElementById('password').value;
var confirmPassword = document.getElementById('confirmPassword').value;
var matchGoodPath = document.getElementById('matchGoodPath');
@ -17,7 +18,12 @@ function validatePasswords() {
var matchStatusText = document.getElementById('matchStatusText');
var lengthStatusText = document.getElementById('lengthStatusText');
var uppercaseStatusText = document.getElementById('uppercaseStatusText');
console.log("jalan")
if (password.length > 0) {
checkContainer.classList.remove("hidden")
} else {
checkContainer.classList.add("hidden")
}
if (password === confirmPassword && password.length > 0 && confirmPassword.length > 0 && password.length === confirmPassword.length) {
matchSvgContainer.classList.remove('bg-red-200');
matchSvgContainer.classList.add('bg-green-200');