Skip to content
Permalink
64751a67d8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
54 lines (51 sloc) 1.97 KB
<!doctype html>
<html lang="en">
<head>
<link href="images/favicon.png" type="image/png" rel="shortcut icon" /> <!-- shortcut to return to home page -->
<meta charset="utf-8">
<title>Log In</title>
<link href="images/fav.png" type="image/png" rel="shortcut icon" />
<!-- logo image with shorcut to return to homepage -->
<link href="css/mystyle.css" type="text/css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="scripts/scripts.js"></script>
</head>
<body>
<section class="middle">
<section class="centered">
<h2 class="ram3" <style="color: white ;">
<img class="logo3 ram2" src="images/remake.png" alt="Logo of website">Uploadify
</h2>
<h4 id="errormsg" class="login_error_h4"></h4>
<section id="main_content" style="display: none;"></section>
<form action="/login" id="login_form" method="post">
<section class="ram2">
Username:<br />
<input type="text" name="user" id="user" value="{{user}}" oninput=OnChangeUserPass("login_error")
autofocus>
</section>
<section id="login_error" class="login_error">'Username' cannot be empty!</section>
<br />
<section class="ram2">
Password:<br />
<input type="password" name="pass" id="pass" value="" oninput=OnChangeUserPass("pass_error")>
</section>
<section id="pass_error" class="login_error">'Password' cannot be empty!</section>
<br />
<p class="ram2"><input id="myBtn" type=button onClick="OnSubmitLoginForm()" value="Log in"></p>
<p class="ram2"><input type=button onClick="location.href='register'" value='Register'></p>
{{!-- <p class="ram2"><input type=button onClick=test() value='test'></p> --}}
<script>
var input = document.getElementById("pass");
input.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById("myBtn").click();
}
});
</script>
</form>
</section>
</section>
</body>
</html>