Separate, smaller landing page

This commit is contained in:
Tom MacWright
2012-12-12 16:05:02 -05:00
parent ba1c79e75f
commit d75e713366
2 changed files with 25 additions and 1 deletions

View File

@@ -82,7 +82,8 @@ iD.OAuth = function() {
.attr({ width: 640, height: 550, frameborder: 'no' })
.attr('src', baseurl + '/oauth/authorize?' + ohauth.qsString({
oauth_token: resp.oauth_token,
oauth_callback: location.href
oauth_callback: location.href.replace('index.html', '')
.replace(/#.+/, '') + 'land.html'
}))
.on('load', function() {
if (this.contentWindow.location.search) {

23
land.html Normal file
View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>iD</title>
<style>
body {
font:normal 20px/30px 'Helvetica Neue';
text-align:center;
}
</style>
</head>
<body>
<h1 id='land'></h1>
<script>
var i = 2;
window.setInterval(function() {
document.getElementById('land').innerHTML = (new Array(i++)).join('.');
i = (i > 8) ? 2 : i;
}, 200);
</script>
</body>
</html>