Created
February 19, 2014 16:36
-
-
Save miketaylr/9095795 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define("core-app/views/login-screen.view", [ "require", "exports", "module", "views/layout.view", "text!core-app/tmpl/login-screen.html", "views/alert.view", "views/modal.view", "utils/device" ], function(e, n, r) { | |
var i, o, s, a, u, l, c; | |
return s = e("views/layout.view"), u = e("text!core-app/tmpl/login-screen.html"), | |
i = e("views/alert.view"), l = e("views/modal.view"), o = e("utils/device"), r.exports = a = function(e) { | |
function n() { | |
return c = n.__super__.constructor.apply(this, arguments); | |
} | |
return t(n, e), n.prototype.tmpl = u, n.prototype.className = "login-screen", n.prototype.iosErrorMessage = "Sorry, your browser is not supported — to log in or install this app, we recommend\nyou use your native Safari browser. For more details on\nsupported devices and browsers, please visit our FAQ (<a\nhref='http://www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html'>www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html</a>)", | |
n.prototype.androidErrorMessage = "Your browser is not supported – to log in or install this app, we recommend you download the\nlatest version of Chrome. For more details on supported devices and browsers, please visit our\nFAQ (<a href='http://www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html'>\nwww.nytimes.com/content/help/mobile/todays-paper/todays-paper.html</a>)", | |
n.prototype.ieErrorMessage = "Your browser is not supported – to log in or install this app, we recommend you use Safari\nif you are on a Mac and Chrome if you are on a PC. For more details on supported devices\nand browsers, please visit our FAQ (<a\nhref='http://www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html'>www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html</a>)", | |
n.prototype.universalErrorMessage = "Sorry your device and/or browser is not supported – to log in or install this app, we recommend the following:\n<ul>\n<li>Safari or Chrome for iPad users</li>\n<li>Chrome for Android tablet users</li>\n<li>IE for Windows Surface users</li>\n<li>Chrome for PC and Mac desktop users</li>\n<li>Safari for Mac desktop users, and</li>\n<li>IE for PC.</li>\n</ul>\n", | |
n.prototype.silkErrorMessage = "Your browser is not supported. To access content found in the print edition of The New York Times,\nplease visit: <a href='http://www.nytimes.com/todayspaper/'>www.nytimes.com/todayspaper/</a> To see a full list of supported devices and browsers,\nvisit our FAQ: (<a href='http://www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html'>www.nytimes.com/content/help/mobile/todays-paper/todays-paper.html</a>)\n", | |
n.prototype.didRender = function() { | |
var e, t; | |
if (!/[?&]allowDevice\b/i.test(window.location.search) && (o.Silk || o.Android && !o.Chrome || o.ie7 || o.ie8 || o.ie9)) return o.Silk ? e = this.universalErrorMessage : o.Android && !o.Chrome && (e = this.androidErrorMessage), | |
e = o.Silk ? this.silkErrorMessage : this.ieErrorMessage, t = new i({ | |
alertModel: { | |
text: e, | |
buttons: [] | |
} | |
}), this.alertModal = new l({ | |
nestView: t, | |
className: "alert", | |
disallowClose: !0 | |
}), this.alertModal.render(); | |
}, n; | |
}(s); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment