Permalink
Browse files

add a tos and privacy policy to myfavoritebeer

  • Loading branch information...
lloyd committed Feb 28, 2012
1 parent d2c54df commit 234cb607fbcb4c9884ad5104901b7ddfe796da2b
Showing with 18 additions and 2 deletions.
  1. +8 −2 static/js/main.js
  2. +5 −0 static/privacy.html
  3. +5 −0 static/tos.html
View
@@ -1,3 +1,9 @@
var browseridArguments = {
// display our tos and privacy policy in the browserid dialog
privacyURL: '/privacy.html',
tosURL: '/privacy.html',
};
function setSessions(val) {
if (navigator.id) {
navigator.id.sessions = val ? val : [ ];
@@ -95,7 +101,7 @@ function loggedOut() {
l.html('<img src="i/sign_in_blue.png" alt="Sign in">')
.show().one('click', function() {
$("header .login").css('opacity', '0.5');
navigator.id.getVerifiedEmail(gotVerifiedEmail);
navigator.id.get(gotVerifiedEmail, browseridArguments);
}).addClass("clickable").css('opacity','1.0');
}
@@ -126,7 +132,7 @@ function gotVerifiedEmail(assertion) {
if (document.addEventListener) {
document.addEventListener("login", function(event) {
$("header .login").css('opacity', '0.5');
navigator.id.getVerifiedEmail(gotVerifiedEmail);
navigator.id.get(gotVerifiedEmail, browseridArguments);
}, false);
document.addEventListener("logout", logout, false);
View
@@ -0,0 +1,5 @@
<html>
<body>
this is a fake terms of service document for myfavoritebeer.org
</body>
</html>
View
@@ -0,0 +1,5 @@
<html>
<body>
this is a fake terms of service document for myfavoritebeer.org
</body>
</html>

0 comments on commit 234cb60

Please sign in to comment.