app/assets/javascripts/no_ie6.js.erb in no-ie6-rails-0.0.1 vs app/assets/javascripts/no_ie6.js.erb in no-ie6-rails-0.0.2
- old
+ new
@@ -33,10 +33,10 @@
var pre_template = '<div style="border:1px solid #ccc;width:' + width.toString() + 'px;filter: alpha(opacity=95);background:#fff;padding:0 0 5px 0;margin:0;"><div style="text-align: right; padding:5px 10px;margin:0;font-size:12px;line-height:12px;background-color:#ffffcc;border-bottom: 1px solid #ccc" onclick="hideWarning();"><a style="color: #0E6AD3;text-decoration: none;margin:5px;padding:0;" href="#">Close [x]</a></div><div style="font-family:Helvetica,Arial,sans-serif;font-size:16px;padding:5px 10px;color:#333"><h1 style="font-size:22px">Did you know that your Internet Explorer is out of date?</h1><p>To get the best possible experience using our website we recommend that you upgrade to a newer version or other web browser. A list of the most popular web browsers can be found below.</p><p>Just click on the icons to get to the download page.</p></div><div style="font-family:Arial,Verdana,sans-serif;color:#4f4f4f;font-size:12px;padding-left: 5px;">';
var middle = "";
var i;
for (i = 0; i < browsers.length; i += 1) {
- middle += "<div style='padding:0;margin:5px;float:left;display:inline;background: url(<%= image_path('background_browser.gif') %>) no-repeat scroll left top; width: 120px; height: 122px;'><a target='_blank' href='" + browsers[i].url + "' style='padding:0;margin:4px 10px;display:block;width:100px;height:96px;background:transparent url(" + browsers[i].image + ");'></a><div style='text-align:center;font-size:12px;line-height:12px;margin:0;padding:0'>" + browsers[i].name + "</div></div>";
+ middle += "<div style='padding:0;margin:5px;float:left;display:inline;background: url(<%= image_path('background_browser.gif') %>) no-repeat scroll left top; width: 120px; height: 122px;'><a href='" + browsers[i].url + "' style='padding:0;margin:4px 10px;display:block;width:100px;height:96px;background:transparent url(" + browsers[i].image + ");'></a><div style='text-align:center;font-size:12px;line-height:12px;margin:0;padding:0'>" + browsers[i].name + "</div></div>";
}
var post_template = "<div style = 'clear:both'></div></div></div>";
warning.innerHTML = pre_template + middle + post_template;