Permalink
Browse files

5.1.javascript로 로그인 구현 - auth2 로드

  • Loading branch information...
egoing committed Aug 26, 2018
1 parent c17af68 commit 180767f0208169d2377d3afa76a1496e49f20512
Showing with 9 additions and 1 deletion.
  1. +9 −1 index.html
View
@@ -5,8 +5,15 @@
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="colors.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="1069961247398-d5cpi17r74jaad01cf93gbilfnaf3mf4.apps.googleusercontent.com">
<script>
function init(){
console.log('init');
gapi.load('auth2', function() {
console.log('auth2');
});
}
</script>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
@@ -31,5 +38,6 @@ <h1><a href="index.html">WEB</a></h1>
<h2>WEB</h2>
<p>The World Wide Web (abbreviated WWW or the Web) is an information space where documents and other web resources are identified by Uniform Resource Locators (URLs), interlinked by hypertext links, and can be accessed via the Internet.[1] English scientist Tim Berners-Lee invented the World Wide Web in 1989. He wrote the first web browser computer program in 1990 while employed at CERN in Switzerland.[2][3] The Web browser was released outside of CERN in 1991, first to other research institutions starting in January 1991 and to the general public on the Internet in August 1991.
</p>
<script src="https://apis.google.com/js/platform.js?onload=init" async defer></script>
</body>
</html>

0 comments on commit 180767f

Please sign in to comment.