mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
Separate, smaller landing page
This commit is contained in:
@@ -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
23
land.html
Normal 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>
|
||||
Reference in New Issue
Block a user