login und jqurary
This commit is contained in:
parent
be4ba34a2d
commit
ba52004aec
2 changed files with 6 additions and 4 deletions
2
jquery-3.3.1.min.js
vendored
Normal file
2
jquery-3.3.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -4,14 +4,14 @@
|
||||||
<script src="../jquery-3.3.1.min.js"></script>
|
<script src="../jquery-3.3.1.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var email,pass;
|
var name,pass;
|
||||||
$("#submit").click(function(){
|
$("#submit").click(function(){
|
||||||
email=$("#email").val();
|
name=$("#name").val();
|
||||||
pass=$("#password").val();
|
pass=$("#password").val();
|
||||||
/*
|
/*
|
||||||
* Perform some validation here.
|
* Perform some validation here.
|
||||||
*/
|
*/
|
||||||
$.post(window.location.href,{email:email,pass:pass},function(data){
|
$.post(window.location.href,{name:name,pass:pass},function(data){
|
||||||
if(data==='done')
|
if(data==='done')
|
||||||
{
|
{
|
||||||
window.location.href="/admin";
|
window.location.href="/admin";
|
||||||
|
@ -22,7 +22,7 @@ $(document).ready(function(){
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<input type="text" size="40" placeholder="Type your email" id="email"><br />
|
<input type="text" size="40" placeholder="Type your name" id="name"><br />
|
||||||
<input type="password" size="40" placeholder="Type your password" id="password"><br />
|
<input type="password" size="40" placeholder="Type your password" id="password"><br />
|
||||||
<input type="button" value="Submit" id="submit">
|
<input type="button" value="Submit" id="submit">
|
||||||
</body>
|
</body>
|
||||||
|
|
Reference in a new issue