My current project involves working with Electron, and it consists of three essential files.
The first file is index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/styles.css">
<script src="../js/preload.js"></script>
<script src="../js/signup.js"></script>
</head>
<body>
// HTML content here...
</body>
</html>
The second file is styles.css:
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');
// CSS styling here...
The third file is signup.js:
function validate()
{
// JavaScript function for form validation...
}
Despite having the project written in Russian, I encountered an issue when trying to use the signup.js file to verify the password fields "psw" and "psw-repeat." Unfortunately, upon running the program, nothing happens as intended. Additionally, the input fields get cleared upon clicking the button.