Commit 20228a1a7dbea54cfa14e84c9bb38d6c8716839a

Authored by Leonardo Merlin
1 parent cab00684

Add and configure outdated-browser

src/app/index.constants.js
... ... @@ -66,6 +66,7 @@
66 66 })
67 67 .constant('Modernizr', window.Modernizr)
68 68 .constant('jQuery', window.jQuery)
  69 + .constant('outdatedBrowser', window.outdatedBrowser)
69 70 ;
70 71  
71 72 })();
... ...
src/app/index.run.js
... ... @@ -9,6 +9,7 @@
9 9 .run(runCaptcha)
10 10 // .run(runColorUtils)
11 11 .run(runHistory)
  12 + .run(runOutdated)
12 13 .run(runPath)
13 14 .run(runSocialAuth)
14 15 .run(runScroll)
... ... @@ -238,6 +239,26 @@
238 239 }
239 240  
240 241 /** @ngInject */
  242 + function runOutdated(outdatedBrowser, jQuery) {
  243 + jQuery(document).ready(function(){
  244 +
  245 + // Options to 'lowerThan':
  246 + //
  247 + // "IE11","borderImage"
  248 + // "IE10", "transform" (Default property)
  249 + // "IE9", "boxShadow"
  250 + // "IE8", "borderSpacing"
  251 + outdatedBrowser({
  252 + bgColor: '#f25648',
  253 + color: '#ffffff',
  254 + lowerThan: 'boxShadow',
  255 + languagePath: ''
  256 + });
  257 + });
  258 + }
  259 +
  260 +
  261 + /** @ngInject */
241 262 function runPath($rootScope, PATH, $window, $log) {
242 263 $rootScope.basePath = PATH.host;
243 264  
... ...
src/app/index.scss
... ... @@ -351,7 +351,7 @@ $common-color: #5E739E;
351 351 }
352 352  
353 353 #barra-brasil ul.list {
354   - z-index: 9999 !important;
  354 + z-index: 999 !important;
355 355 }
356 356  
357 357 /**
... ...
src/index.html
... ... @@ -50,6 +50,12 @@
50 50  
51 51 <div id="footer-brasil"></div>
52 52  
  53 + <div id="outdated">
  54 + <h6>Seu navegador está desatualizado!</h6>
  55 + <p>Atualize o seu navegador para acessar o Dialoga Brasil corretamente.<a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Atualizar agora</a></p>
  56 + <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
  57 + </div>
  58 +
53 59 <!-- build:js(src) scripts/vendor.js -->
54 60 <!-- bower:js -->
55 61 <!-- run `gulp inject` to automatically populate bower script dependencies -->
... ...