From 69957978626e86b599b6ac76a53ad23292d39caa Mon Sep 17 00:00:00 2001 From: Michel Felipe de Oliveira Ferreira Date: Thu, 30 Jul 2015 19:04:01 -0300 Subject: [PATCH] Added the IE lower than 8 panel warning. Still needs show dialoga logo and hide use therms --- images/ie6-warning | 1 + index.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 0 deletions(-) create mode 160000 images/ie6-warning diff --git a/images/ie6-warning b/images/ie6-warning new file mode 160000 index 0000000..3f7cca6 --- /dev/null +++ b/images/ie6-warning @@ -0,0 +1 @@ +Subproject commit 3f7cca6979c2c63bb45efc512ce771cc89bd67d8 diff --git a/index.html b/index.html index 006c6c4..f7c314b 100644 --- a/index.html +++ b/index.html @@ -78,6 +78,40 @@ script_element.setAttribute('data-main', makeJSURL('js/requirejs-config.js')); head.appendChild(script_element); } + + function loadOldBrowserWarn(){ + var head = document.getElementsByTagName('head')[0]; + var script = document.createElement('script'); + var scriptLocale = document.createElement('script'); + var style = makeCSSLink('images/ie6-warning/css/ie-warning.css'); + head.appendChild(style); + + scriptLocale.type = script.type = 'text/javascript'; + script.src = makeJSURL('images/ie6-warning/warning.js'); + scriptLocale.src = makeJSURL('images/ie6-warning/localization/pt_BR.js'); + + head.appendChild(scriptLocale); + head.appendChild(script); + window.onload=function(){ + ie6Warning(function() { + var languageMap = {}; + //specifies a JSON hash table for localization + if(window.IE6WarningLocalizations) { + languageMap = window.IE6WarningLocalizations; + } + + return { + imgPath: makeJSURL("images/ie6-warning/"), //specifies the path to the icons of each browser + localizations: languageMap + }; + }); + }; + } + + if(!document.addEventListener){ + loadOldBrowserWarn(); + } + loadCSSFiles(); -- libgit2 0.21.2