Skip to content

Commit

Permalink
Add Google API login
Browse files Browse the repository at this point in the history
  • Loading branch information
cashlo committed Apr 3, 2012
1 parent d19cfae commit d97d440
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion index.html
Expand Up @@ -12,6 +12,28 @@
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("gdata", "1.x");
google.setOnLoadCallback(initFunc);

var contactsService;

function setupContactsService() {
contactsService = new google.gdata.contacts.ContactsService('Catifier');
}

function logMeIn() {
var scope = 'https://www.google.com/m8/feeds';
var token = google.accounts.user.login(scope);
}

function initFunc() {
setupContactsService();
logMeIn();
getMyContacts();
}
</script>
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
Expand All @@ -26,7 +48,7 @@ <h1>Catifier</h1>
</ul> </ul>
</header> </header>
<section> <section>
<h3>Welcome to GitHub Pages.</h3> <h3>Welcome to Catifier.</h3>


<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:</p> <p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:</p>


Expand Down

0 comments on commit d97d440

Please sign in to comment.