-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
32 lines (29 loc) · 795 Bytes
/
scripts.js
File metadata and controls
32 lines (29 loc) · 795 Bytes
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
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
window.location.href = "./questions.html";
}
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
console.log('User signed out.');
window.location.href = "./index.html";
});
}
function submitSlider1() {
var slider1 = document.getElementById("slider1");
var rating = slider1.value;
var type = "";
if(rating > 50) {
type = "romantic";
}
else {
type = "spontaneous";
}
console.log(type);
}
//Jquery
$(document).ready(function(){
});