-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
86 lines (76 loc) · 3.43 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-signin-scope" content="profile email">
<meta name="google-signin-client_id" content="597932733653-1tl5t3mq3kqh4n1tvifsnuldbimq7pvh.apps.googleusercontent.com">
<title>Credential Management API Demo</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600">
<link rel="stylesheet" href="index.css">
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-82213717-1', 'auto');
ga('send', 'pageview');
</script>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '513912645617483',
cookie : true,
xfbml : true,
version : 'v2.8'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<section id="signin" class="hidden">
<h4>Credential Management API Demo</h4>
<form action="#" method="post">
<div class="field">
<label><span>Fake</span> Name</label>
<input type="text" name="name">
</div>
<div class="field">
<label><span>Fake</span> Email</label>
<input type="email" name="email">
</div>
<div class="field">
<label><span>Fake</span> Password</label>
<input type="password" name="password">
</div>
<div class="field actions">
<button>Sign In</button>
</div>
<div class="field social-auth">
<div class="g-signin2" data-onsuccess="handleGoogleSignIn"></div>
<div class="fb-login-button" data-scope="public_profile,email" data-max-rows="1" data-size="medium" data-button-type="login_with" data-show-faces="false" data-auto-logout-link="false" data-use-continue-as="false" data-onlogin="handleFacebookSignIn"></div>
</div>
</form>
</section>
<section id="profile" class="hidden">
<div class="profile">
<img src="">
<div class="details">
<h3>Arnelle Balane</h3>
<p>arnellebalane</p>
</div>
<a href="#">Sign Out</a>
</div>
</section>
<script src="https://apis.google.com/js/platform.js"></script>
<script src="index.js"></script>
</body>
</html>