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
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
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">×</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 --> | ... | ... |