2020-07-29 10:51:18 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2020-07-29 11:13:19 +02:00
|
|
|
<meta name="google-signin-client_id" content="580018768696-4beppspj6cu7rhjnfgok8lbmh9a4n3ok.apps.googleusercontent.com">
|
2020-07-29 10:51:18 +02:00
|
|
|
<title>Elm SPA</title>
|
|
|
|
<link rel="stylesheet" href="./output.css" />
|
2020-07-29 11:13:19 +02:00
|
|
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
2020-07-29 10:51:18 +02:00
|
|
|
<script src="./Main.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body class="font-serif">
|
|
|
|
<div id="mount"></div>
|
|
|
|
<script>
|
2020-07-29 11:13:19 +02:00
|
|
|
function onSignIn(googleUser) {
|
|
|
|
var profile = googleUser.getBasicProfile();
|
|
|
|
console.log('ID: ' + profile.getId());
|
|
|
|
console.log('Name: ' + profile.getName());
|
|
|
|
console.log('Image URL: ' + profile.getImageUrl());
|
|
|
|
console.log('Email: ' + profile.getEmail());
|
|
|
|
}
|
|
|
|
|
|
|
|
function signOut() {
|
|
|
|
console.log('Signing out!');
|
|
|
|
var auth2 = gapi.auth2.getAuthInstance();
|
|
|
|
auth2.signOut().then(function() {
|
|
|
|
console.log('User signed out.');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-07-29 10:51:18 +02:00
|
|
|
Elm.Main.init({node: document.getElementById("mount")});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|