Commit 20228a1a7dbea54cfa14e84c9bb38d6c8716839a
1 parent
cab00684
Exists in
master
and in
4 other branches
Add and configure outdated-browser
Showing
4 changed files
with
29 additions
and
1 deletions
Show diff stats
src/app/index.constants.js
@@ -66,6 +66,7 @@ | @@ -66,6 +66,7 @@ | ||
66 | }) | 66 | }) |
67 | .constant('Modernizr', window.Modernizr) | 67 | .constant('Modernizr', window.Modernizr) |
68 | .constant('jQuery', window.jQuery) | 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,6 +9,7 @@ | ||
9 | .run(runCaptcha) | 9 | .run(runCaptcha) |
10 | // .run(runColorUtils) | 10 | // .run(runColorUtils) |
11 | .run(runHistory) | 11 | .run(runHistory) |
12 | + .run(runOutdated) | ||
12 | .run(runPath) | 13 | .run(runPath) |
13 | .run(runSocialAuth) | 14 | .run(runSocialAuth) |
14 | .run(runScroll) | 15 | .run(runScroll) |
@@ -238,6 +239,26 @@ | @@ -238,6 +239,26 @@ | ||
238 | } | 239 | } |
239 | 240 | ||
240 | /** @ngInject */ | 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 | function runPath($rootScope, PATH, $window, $log) { | 262 | function runPath($rootScope, PATH, $window, $log) { |
242 | $rootScope.basePath = PATH.host; | 263 | $rootScope.basePath = PATH.host; |
243 | 264 |
src/app/index.scss
src/index.html
@@ -50,6 +50,12 @@ | @@ -50,6 +50,12 @@ | ||
50 | 50 | ||
51 | <div id="footer-brasil"></div> | 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">×</a></p> | ||
57 | + </div> | ||
58 | + | ||
53 | <!-- build:js(src) scripts/vendor.js --> | 59 | <!-- build:js(src) scripts/vendor.js --> |
54 | <!-- bower:js --> | 60 | <!-- bower:js --> |
55 | <!-- run `gulp inject` to automatically populate bower script dependencies --> | 61 | <!-- run `gulp inject` to automatically populate bower script dependencies --> |