-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (67 loc) · 2.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<html>
<head>
</head>
<body bgcolor=#d9d9d9>
<center><img src="logo.png" width="280" height="142"></center>
<div style="background-color:white;margin:20 0 0 0;height:100%;">
<div style="background-color:white;margin:80 0 0 0;width:49.5%;align:left;display:inline-block;">
<div style="margin:0 0 0 60;">
<h1>About Sahayak</h1>
<font color="blue">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nostrum in eos hic mollitia nihil repellendus. Quod fuga eos, sed dolor non repellat facere molestias consequatur accusantium exercitationem eaque illo atque!</font>
<h3>Quick Guide for Sahayak</h3>
<h3>Full Documentation</h3>
<h3>Request for more features</h3>
<h3>Contact Technical Support</h3>
</div>
</div>
<div style="background-color:white;margin:80 0 0 0;width:49.5%;align:right;display:inline-block;">
<div style="margin:0 0 0 60;">
<h1>Register</h1>
Name: <input type="text" name="name"><br><br>
Email: <input type="text" name="email"><br><br>
Organisation:<input type="text" name="org"><br><br>
Password: <input type="password" name="pass"><br><br>
Language: <input type="text" name="lang"><br><br>
<button>Register</button> Already Registerd?
</div>
</div>
</div>
</body>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous">
</script>
<script>
$(function(){
var $name=$("#name");
var $email=$("#email");
var $org=$("#org");
var $pass=$("#pass");
var $lang=$("#lang");
$('#id').on('click',function(e){
var person={
name:$name.val(),
email:$email.val(),
org:$org.val(),
pass:$pass.val(),
lang:$lang.val()
}
console.log("person",person);
$.ajax({
type:'POST',
url:'/api/register',
data:person,
dataType: "html",
success:function( person, textStatus, jQxhr){
person=JSON.parse(person)
console.log(person)
},
error:function(err){
alert("no!!")
console.log(err)
}
})
})
</script>
</html>