Commit 69957978626e86b599b6ac76a53ad23292d39caa
1 parent
00fd53f3
Exists in
master
and in
4 other branches
Added the IE lower than 8 panel warning. Still needs show dialoga logo and hide use therms
Showing
2 changed files
with
35 additions
and
0 deletions
Show diff stats
@@ -0,0 +1 @@ | @@ -0,0 +1 @@ | ||
1 | +Subproject commit 3f7cca6979c2c63bb45efc512ce771cc89bd67d8 |
index.html
@@ -78,6 +78,40 @@ | @@ -78,6 +78,40 @@ | ||
78 | script_element.setAttribute('data-main', makeJSURL('js/requirejs-config.js')); | 78 | script_element.setAttribute('data-main', makeJSURL('js/requirejs-config.js')); |
79 | head.appendChild(script_element); | 79 | head.appendChild(script_element); |
80 | } | 80 | } |
81 | + | ||
82 | + function loadOldBrowserWarn(){ | ||
83 | + var head = document.getElementsByTagName('head')[0]; | ||
84 | + var script = document.createElement('script'); | ||
85 | + var scriptLocale = document.createElement('script'); | ||
86 | + var style = makeCSSLink('images/ie6-warning/css/ie-warning.css'); | ||
87 | + head.appendChild(style); | ||
88 | + | ||
89 | + scriptLocale.type = script.type = 'text/javascript'; | ||
90 | + script.src = makeJSURL('images/ie6-warning/warning.js'); | ||
91 | + scriptLocale.src = makeJSURL('images/ie6-warning/localization/pt_BR.js'); | ||
92 | + | ||
93 | + head.appendChild(scriptLocale); | ||
94 | + head.appendChild(script); | ||
95 | + window.onload=function(){ | ||
96 | + ie6Warning(function() { | ||
97 | + var languageMap = {}; | ||
98 | + //specifies a JSON hash table for localization | ||
99 | + if(window.IE6WarningLocalizations) { | ||
100 | + languageMap = window.IE6WarningLocalizations; | ||
101 | + } | ||
102 | + | ||
103 | + return { | ||
104 | + imgPath: makeJSURL("images/ie6-warning/"), //specifies the path to the icons of each browser | ||
105 | + localizations: languageMap | ||
106 | + }; | ||
107 | + }); | ||
108 | + }; | ||
109 | + } | ||
110 | + | ||
111 | + if(!document.addEventListener){ | ||
112 | + loadOldBrowserWarn(); | ||
113 | + } | ||
114 | + | ||
81 | loadCSSFiles(); | 115 | loadCSSFiles(); |
82 | </script> | 116 | </script> |
83 | 117 |