Mercurial > summit-idp
changeset 53:18de6b362cc5
made server.html and fixed example-client.html to work with it instead of index.html.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 26 Jun 2010 20:51:47 -0700 |
parents | d5efcc6476d9 |
children | fe5a2f26787d |
files | static-files/api.js static-files/example-client.html static-files/server.html |
diffstat | 3 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/static-files/api.js Sat Jun 26 20:42:06 2010 -0700 +++ b/static-files/api.js Sat Jun 26 20:51:47 2010 -0700 @@ -84,6 +84,8 @@ if (!path) path = "/"; + path += "server.html"; + iframe.src = origin + path; iframe.onload = function() {
--- a/static-files/example-client.html Sat Jun 26 20:42:06 2010 -0700 +++ b/static-files/example-client.html Sat Jun 26 20:51:47 2010 -0700 @@ -28,7 +28,7 @@ $("#error .reason").text(response.error); $("#error").slideDown(); } else { - $("#users").text(JSON.stringify(response.users)); + $("#users").text(JSON.stringify(response.users, null, 2)); } }); });
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/static-files/server.html Sat Jun 26 20:51:47 2010 -0700 @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> +<head> + <title>Mozilla Summit Identity Pal PostMessage Server</title> +</head> +<body> +<p>You should never really see this page, it's meant to be embedded as +an invisible iframe in mashups and web apps.</p> +<script src="summit-idp.js"></script> +<script src="api.js"></script> +<script src="server.js"></script> +</body> +</html>