Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Separate, smaller landing page

  • Loading branch information...
commit d75e713366fde4cb6b549f8f8df69f4a58573512 1 parent ba1c79e
@tmcw tmcw authored
Showing with 25 additions and 1 deletion.
  1. +2 −1  js/id/oauth.js
  2. +23 −0 land.html
View
3  js/id/oauth.js
@@ -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) {
View
23 land.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.