#The <div> dont get the class
32 messages · Page 1 of 1 (latest)
Did you write this code yourself
yes with some online website helps
errors is shadowed inside of the if condition
if (username_input)is always truthy
where do theusername,password,repeat, etc. come from?
why not just add the incorrect classif (errors.length > 0)
if (username_input) is there, because there will be a login page, where you will need the email and password only.
i dont wanna write another js, so i do it in one.
i'm sending the html file here
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hungarian E-sport Leagues</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="form" class="register-box">
<div class="wrapper">
<form class="register-form">
<div><h1>S</h1><h1>i</h1><h1>g</h1><h1>n</h1><h1>u</h1><h1>p</h1></div>
<div>
<label for="username-input"><svg></svg></label>
<input required type="text" name="username" id="username-input" placeholder="Username">
</div>
<div>
<label for="email-input"><svg></svg></label>
<input required type="email" name="email" id="email-input" placeholder="Email">
</div>
<div>
<label for="password-input"><svg></label>
<input required type="password" name="password" id="password-input" placeholder="Password">
</div>
<div>
<label for="re-password-input"><svg ></svg></label>
<input required type="password" name="re-password" id="re-password-input" placeholder="Repeat Password">
</div>
<div class="button"><button type="submit">Signup</button></div>
<p>Already have an Account? <a href="login.html">login</a></p>
</form>
<video autoplay loop muted playsinline class="background"><source src="background.mp4" type="video/mp4"></video>
</div>
</div>
<script src="scripts.js"></script>
</body>
</html>```
just paste it into chat gippity 😩
i tried it and that shi' wont help :c
i tried 1231312321 different code
2141231 different html
nothing
i tought this is the only way to do it lol
basically no one does pure JS these days
what do u mean pure js?
Just writing JavaScript code without any framework or library
e.g. React, Vue, Angular
(or even just JQuery as the bare minimum)
idk, i have done it once, but i deleted it and cant find it
you might find this https://www.theodinproject.com/paths useful
The Odin Project empowers aspiring web developers to learn together for free
ty
im trying to learn it by my self btw, prolly thats why i didnt know anything about it
all good 🫶
The Odin Project is more or less the best resource for learning web dev stuff I've seen so far, way better than basically every paid course I've seen
ty
😎