No IEs allowed

This commit is contained in:
Vincent Fiduccia 2015-06-14 15:41:06 -07:00
parent b8bdcaac44
commit 133eee429e
7 changed files with 39 additions and 1 deletions

View File

@ -138,6 +138,14 @@ export default Ember.Route.extend({
}
},
beforeModel: function() {
var agent = window.navigator.userAgent.toLowerCase();
if ( agent.indexOf('msie ') >= 0 || agent.indexOf('trident/') >= 0 || agent.indexOf('edge/') >= 0 )
{
this.transitionTo('ie');
}
},
setupController: function(controller/*, model*/) {
controller.set('code',null);
controller.set('state',null);

6
app/ie/template.hbs Normal file
View File

@ -0,0 +1,6 @@
<section class="text-center">
<br><br>
<div class="sad-ie"></div>
<br><br>
<h4>Sorry, IE is not supported for Beta.</h4>
</section>

View File

@ -6,6 +6,7 @@ var Router = Ember.Router.extend({
});
Router.map(function() {
this.route('ie');
this.route('index');
this.route('failWhale', { path: '/fail' });

View File

@ -800,3 +800,12 @@ SECTION.header H3 {
margin-right: 10px;
}
}
.sad-ie {
background-image: url('images/sad-ie.png');
width: 300px;
height: 317px;
background-size: 300px 317px;
background-repeat: no-repeat;
margin: 0 auto;
}

View File

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.27.0",
"version": "0.28.0",
"private": true,
"directories": {
"doc": "doc",

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 225.3 238.1" enable-background="new 0 0 225.3 238.1" xml:space="preserve">
<path fill="#006EB8" d="M197.3,6.4c-19.5,0-41.5,12.7-49.7,17.9c-1.2,0.8-0.9,2.6,0.5,3c15.7,4,75,24.2,70.4,103
c-0.1,0.9-0.8,1.6-1.7,1.6h-12.4c-6.4,0-17-0.1-41.5,4.7s-70,27.5-65.7,36.5s55.7-16.5,55.7-16.5s24.8-8.8,42.2-11.3
c0.2,0,0.4-0.1,0.7-0.1l19.3,0c1.1,0,1.9,1.1,1.6,2.2c-4,11.7-26.3,67-96.4,67c-15.3,0-22.7-1-24.8-1.3c-0.4-0.1-0.9,0-1.3,0.3
c-4.4,3.4-33.8,24.8-62.7,24.8c-31.4,0-34.3-34.1-29.9-49.3c4.4-15.2,22-89.3,95.9-140.2c0.4-0.3,0.7-0.8,0.7-1.4v0
c0-1.2-1.3-2-2.4-1.5c-10,4.7-50,25.3-81.2,67.6c-1,1.3-3.1,0.6-3-1.1c1.1-13.9,7.3-50.7,42.9-73.4c37.8-22.8,75.5-15.2,81.2-13.9
c0.5,0.1,0.9,0,1.3-0.3c4.7-3.3,35.8-24.5,61.1-24.6c0,0,0.1,0,0.1,0c1.4-0.1,42.4-3,20.7,53.2l-0.5-0.5c-0.5-0.5-0.6-1.1-0.4-1.7
C220.5,44.4,232.8,6.4,197.3,6.4z"/>
<path fill="#FFFFFF" d="M117.7,69.8c32.1,0,30.8,30.8,30.8,30.8H85.3C85.3,100.6,84.5,69.8,117.7,69.8z"/>
<path fill="#FFFFFF" d="M28.7,172.1c0,0,15.8,29.4,62.2,39.7c0,0-47.9,29.1-69.4,8.9C10,200.6,28.7,172.1,28.7,172.1z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB