From 20228a1a7dbea54cfa14e84c9bb38d6c8716839a Mon Sep 17 00:00:00 2001 From: Leonardo Merlin Date: Thu, 7 Jan 2016 15:05:35 -0200 Subject: [PATCH] Add and configure outdated-browser --- src/app/index.constants.js | 1 + src/app/index.run.js | 21 +++++++++++++++++++++ src/app/index.scss | 2 +- src/index.html | 6 ++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/app/index.constants.js b/src/app/index.constants.js index 5fe473b..835bd19 100644 --- a/src/app/index.constants.js +++ b/src/app/index.constants.js @@ -66,6 +66,7 @@ }) .constant('Modernizr', window.Modernizr) .constant('jQuery', window.jQuery) + .constant('outdatedBrowser', window.outdatedBrowser) ; })(); diff --git a/src/app/index.run.js b/src/app/index.run.js index 35d22da..999ca5c 100644 --- a/src/app/index.run.js +++ b/src/app/index.run.js @@ -9,6 +9,7 @@ .run(runCaptcha) // .run(runColorUtils) .run(runHistory) + .run(runOutdated) .run(runPath) .run(runSocialAuth) .run(runScroll) @@ -238,6 +239,26 @@ } /** @ngInject */ + function runOutdated(outdatedBrowser, jQuery) { + jQuery(document).ready(function(){ + + // Options to 'lowerThan': + // + // "IE11","borderImage" + // "IE10", "transform" (Default property) + // "IE9", "boxShadow" + // "IE8", "borderSpacing" + outdatedBrowser({ + bgColor: '#f25648', + color: '#ffffff', + lowerThan: 'boxShadow', + languagePath: '' + }); + }); + } + + + /** @ngInject */ function runPath($rootScope, PATH, $window, $log) { $rootScope.basePath = PATH.host; diff --git a/src/app/index.scss b/src/app/index.scss index 3651fc5..9e38d69 100644 --- a/src/app/index.scss +++ b/src/app/index.scss @@ -351,7 +351,7 @@ $common-color: #5E739E; } #barra-brasil ul.list { - z-index: 9999 !important; + z-index: 999 !important; } /** diff --git a/src/index.html b/src/index.html index 5a299f6..c301e24 100644 --- a/src/index.html +++ b/src/index.html @@ -50,6 +50,12 @@ +
+
Seu navegador está desatualizado!
+

Atualize o seu navegador para acessar o Dialoga Brasil corretamente.Atualizar agora

+

×

+
+ -- libgit2 0.21.2