-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (64 loc) · 3.96 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html> <!--shift + exclammation mark + enter = boiler plate template -->
<html lang="en">
<head>
<meta name="google-signin-client_id" content="581520203695-8pg26ag5uo42p8qm5no4i2vajroicibu.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="Login_Page//Loginpage.css"> <!--rel tells relationship of linked document with html file-->
<title>LOGIN PAGE </title>
</head>
<!-- enable https server using python
by typing in command line
python -m http.server
and remeber do this ocmmand only in the current working directory only
remember put localhost:8000 (port number) on the google instead of 127.0.0.1
and ow you can run the sign in button thankyou
:-)
THIS iS ANSHIKA'S CODE love u bhupdi
github pe krle kaam gadhi
aurat
pakt be
-->
<body>
<div class="form"> <!--creates divison in the web page; it is a container containing specified tags; if any changes is made to div tag, all the changes get reflected on tags included in div tag -->
<div class="title">WELCOME</div>
<div class="subtitle"><h2>LOGIN</h2></div>
<div class="input-container first">
<input id="firstname" class="input" type="email" placeholder=" "/> <!--input tag helps to take input from the user; as input type is text so it makes big box for the user to enter the text also, we can use input type as checkbox to have a box for ticking; anything that we write in placeholder is shown in input type if it is text -->
<!--checkbox type of input don't need placeholder so, it doesnot write anything in placeholder , id attribute takes a unique value and used for internal linking-->
<!--we can use input type date time local to enter users bday or some dd mm yy format-->
<div class="cut"></div> <!--we can use div to seperate label and input container by putting div in between..so first label appears and then input field ; div is a block level element so anything after div starts from new line -->
<label for="firstname" class="placeholder">E-mail address</label><!--we have given a label for id firstname using internal linking of label tag with id "firstname"-->
</div>
<div class="input-container second">
<input id="lastname" class="input" type="text" placeholder=" "/><!--placeholder="Enter your last name" we can write it like to show this text inside the type choosen in the input tag;space in placeholder detects that there is no value in the placeholder-->
<div class="cut cut-short"></div>
<label for="lastname" class="placeholder"> Password </label>
</div>
<div class="checkbox">
<input type="checkbox" placeholder=" "/>
Remember me
</div>
<div class="forget">
<font color ="violet">Forget password?</font>
</div>
<button type="submit" class="submit">LOGIN</button> <!-- button type="submit" inserts the data on the database if existed and button type="reset" used to clear data entered above from the database-->
<div class="space"><font color ="white">Not registered yet?</font> <font color ="violet">Create an Account</font></div>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<div id="content"></div>
<script>
function onSignIn(googleUser){
var profile = googleUser.getBasicProfile()
console.log('User is '+ JSON.stringify(profile))
var element= document.querySelector('#content')
document.querySelector('#content').innerText= googleUser.getBasicProfile().getName();
var image = document.createElement('img')
image.setAttribute('src',profile.getImageUrl())
element.append(image)
}
</script>
</div>
</body>
</html>