2011-12-23 18:28:16 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<title>NewsBlur - Connecting...</title>
|
|
|
|
|
|
|
|
<head>
|
2012-08-12 18:57:29 -07:00
|
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
2012-08-11 17:40:35 -07:00
|
|
|
|
2011-12-23 18:28:16 -08:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #A0A0A0;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.NB-loader {
|
|
|
|
margin: 72px auto;
|
|
|
|
width: 256px;
|
|
|
|
height: 256px;
|
2012-03-07 16:32:02 -08:00
|
|
|
display: block;
|
2012-03-07 15:01:44 -08:00
|
|
|
-webkit-animation: -webkit-slow-spin 3.4s infinite linear;
|
|
|
|
-moz-animation-duration: 6.8s;
|
|
|
|
-moz-animation-name: -moz-slow-spin;
|
|
|
|
-moz-animation-iteration-count: infinite;
|
|
|
|
-moz-animation-timing-function: linear;
|
|
|
|
}
|
2012-08-12 18:57:29 -07:00
|
|
|
@media screen and (max-width: 320px) {
|
|
|
|
.NB-loader {
|
|
|
|
margin: 42px auto;
|
|
|
|
width: 200px;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-07 15:01:44 -08:00
|
|
|
@-webkit-keyframes -webkit-slow-spin {
|
|
|
|
from {-webkit-transform: rotate(0deg)}
|
|
|
|
to {-webkit-transform: rotate(360deg)}
|
2011-12-23 18:28:16 -08:00
|
|
|
}
|
2012-03-07 15:01:44 -08:00
|
|
|
@-moz-keyframes -moz-slow-spin {
|
|
|
|
from {-moz-transform: rotate(0deg)}
|
|
|
|
to {-moz-transform: rotate(360deg)}
|
|
|
|
}
|
2011-12-23 18:28:16 -08:00
|
|
|
</style>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2012-08-12 20:34:30 -07:00
|
|
|
window.NEWSBLUR = window.NEWSBLUR || {};
|
|
|
|
|
2012-07-11 00:43:26 -07:00
|
|
|
if (!window.console) {
|
|
|
|
window.console = {};
|
|
|
|
window.console.log = function() {};
|
|
|
|
}
|
2012-08-10 19:20:08 -07:00
|
|
|
var opener = parent && parent.window.opener || window.opener;
|
2011-12-23 18:28:16 -08:00
|
|
|
var next = "{{ next|safe }}";
|
|
|
|
if (next) {
|
2013-06-12 13:52:43 -07:00
|
|
|
console.log(["Forwarding to next", next, opener]);
|
2011-12-23 18:28:16 -08:00
|
|
|
setTimeout(function() {
|
2013-06-12 13:52:43 -07:00
|
|
|
console.log(["Forwarding to next", next, opener]);
|
2011-12-23 18:28:16 -08:00
|
|
|
window.location.href = next;
|
|
|
|
}, 1000);
|
2012-08-10 19:20:08 -07:00
|
|
|
} else if (opener && opener.NEWSBLUR) {
|
|
|
|
console.log(["Found opener", opener.NEWSBLUR]);
|
2020-06-10 19:24:02 -04:00
|
|
|
if (opener.NEWSBLUR.intro) {
|
2012-07-11 00:43:26 -07:00
|
|
|
console.log(['Connecting through intro']);
|
2012-08-10 19:20:08 -07:00
|
|
|
opener.NEWSBLUR.intro.post_connect({
|
2012-03-12 18:11:13 -07:00
|
|
|
{% if error %}
|
2012-08-12 19:16:21 -07:00
|
|
|
'error': "{{ error }}"
|
2012-03-12 18:11:13 -07:00
|
|
|
{% endif %}
|
|
|
|
});
|
2012-08-10 19:20:08 -07:00
|
|
|
} else if (opener.NEWSBLUR.reader_friends) {
|
2012-07-11 00:43:26 -07:00
|
|
|
console.log(["Connecting through friends dialog"]);
|
2012-08-10 19:20:08 -07:00
|
|
|
opener.NEWSBLUR.reader_friends.post_connect({
|
2012-03-12 18:11:13 -07:00
|
|
|
{% if error %}
|
2012-08-12 19:16:21 -07:00
|
|
|
'error': "{{ error }}"
|
2012-03-12 18:11:13 -07:00
|
|
|
{% endif %}
|
|
|
|
});
|
|
|
|
}
|
2011-12-23 18:28:16 -08:00
|
|
|
window.close();
|
|
|
|
} else {
|
2012-08-10 19:20:08 -07:00
|
|
|
console.log(["No opener, directing to /", opener]);
|
2012-08-12 20:34:30 -07:00
|
|
|
NEWSBLUR.error = "{{ error }}";
|
2012-08-10 19:20:08 -07:00
|
|
|
window.close();
|
2012-08-12 20:34:30 -07:00
|
|
|
window.location.href = "/";
|
2011-12-23 18:28:16 -08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
|
|
|
<img class="NB-loader" src="{{ MEDIA_URL }}img/logo_512.png">
|
|
|
|
|
|
|
|
<div>Hold on just a smidgen...</div>
|
|
|
|
<div>If I was a bird I'd be a pigeon.</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|