Skip to content

Commit b48d699

Browse files
authored
Update formatting of Docs Quickstart
1 parent 8cb9251 commit b48d699

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/quickstart/index.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@
5858
*/
5959
function initClient() {
6060
gapi.client.init({
61-
apiKey: API_KEY,
62-
clientId: CLIENT_ID,
63-
discoveryDocs: DISCOVERY_DOCS,
64-
scope: SCOPES
65-
}).then(function () {
66-
// Listen for sign-in state changes.
67-
gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
61+
apiKey: API_KEY,
62+
clientId: CLIENT_ID,
63+
discoveryDocs: DISCOVERY_DOCS,
64+
scope: SCOPES
65+
}).then(function() {
66+
// Listen for sign-in state changes.
67+
gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus);
6868

69-
// Handle the initial sign-in state.
70-
updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
71-
authorizeButton.onclick = handleAuthClick;
72-
signoutButton.onclick = handleSignoutClick;
69+
// Handle the initial sign-in state.
70+
updateSigninStatus(gapi.auth2.getAuthInstance().isSignedIn.get());
71+
authorizeButton.onclick = handleAuthClick;
72+
signoutButton.onclick = handleSignoutClick;
7373
});
7474
}
7575

@@ -79,12 +79,12 @@
7979
*/
8080
function updateSigninStatus(isSignedIn) {
8181
if (isSignedIn) {
82-
authorizeButton.style.display = 'none';
83-
signoutButton.style.display = 'block';
84-
printDocTitle();
82+
authorizeButton.style.display = 'none';
83+
signoutButton.style.display = 'block';
84+
printDocTitle();
8585
} else {
86-
authorizeButton.style.display = 'block';
87-
signoutButton.style.display = 'none';
86+
authorizeButton.style.display = 'block';
87+
signoutButton.style.display = 'none';
8888
}
8989
}
9090

@@ -125,10 +125,10 @@
125125
var doc = response.result;
126126
var title = doc.title;
127127
appendPre('Document "' + title + '" successfully found.\n');
128-
},function(response) {
128+
}, function(response) {
129129
appendPre('Error: ' + response.result.error.message);
130-
});
131-
}
130+
});
131+
}
132132
</script>
133133
<script async="" defer="" onload="this.onload=function(){};handleClientLoad()" onreadystatechange="if (this.readyState === 'complete') this.onload()" src="https://apis.google.com/js/api.js"></script>
134134
</body>

0 commit comments

Comments
 (0)