Adding a white background the to noscript warning so it shows up against all backgrounds.
Patch by: jlabanca
Review by: fredsa
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6299 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
index 3a11993..6e31f13 100644
--- a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
+++ b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
@@ -382,7 +382,7 @@
writer.println("<iframe src=\"javascript:''\" id='__gwt_historyFrame' "
+ "style='position:absolute;width:0;height:0;border:0'></iframe>");
writer.println("<noscript>");
- writer.println(" <div style=\"width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif\">");
+ writer.println(" <div style=\"width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif\">");
writer.println(" Your web browser must have JavaScript enabled");
writer.println(" in order for this application to display correctly.");
writer.println(" </div>");
diff --git a/eclipse/reference/code-museum/war/DefaultMuseum.html b/eclipse/reference/code-museum/war/DefaultMuseum.html
index d936866..8984553 100644
--- a/eclipse/reference/code-museum/war/DefaultMuseum.html
+++ b/eclipse/reference/code-museum/war/DefaultMuseum.html
@@ -8,7 +8,7 @@
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0"></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/eclipse/reference/code-museum/war/Issue3892.html b/eclipse/reference/code-museum/war/Issue3892.html
index 937b177..b16e1f5 100644
--- a/eclipse/reference/code-museum/war/Issue3892.html
+++ b/eclipse/reference/code-museum/war/Issue3892.html
@@ -10,7 +10,7 @@
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0"></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/eclipse/reference/code-museum/war/SingleIssue.html b/eclipse/reference/code-museum/war/SingleIssue.html
index 1c481b0..54683b7 100644
--- a/eclipse/reference/code-museum/war/SingleIssue.html
+++ b/eclipse/reference/code-museum/war/SingleIssue.html
@@ -8,7 +8,7 @@
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0"></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/hello/war/Hello.html b/samples/hello/war/Hello.html
index 50a9735..7f0cf36 100644
--- a/samples/hello/war/Hello.html
+++ b/samples/hello/war/Hello.html
@@ -21,7 +21,7 @@
</head>
<body bgcolor="white">
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/i18n/war/I18N.html b/samples/i18n/war/I18N.html
index c6dc031..8bf3f14 100644
--- a/samples/i18n/war/I18N.html
+++ b/samples/i18n/war/I18N.html
@@ -65,7 +65,7 @@
</div>
</div>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/json/war/JSON.html b/samples/json/war/JSON.html
index c1a4a55..e5d2a86 100644
--- a/samples/json/war/JSON.html
+++ b/samples/json/war/JSON.html
@@ -22,7 +22,7 @@
</head>
<body>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/mail/war/Mail.html b/samples/mail/war/Mail.html
index 40c3dca..d7e1d5d 100644
--- a/samples/mail/war/Mail.html
+++ b/samples/mail/war/Mail.html
@@ -21,7 +21,7 @@
</head>
<body>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/showcase/war/Showcase.html b/samples/showcase/war/Showcase.html
index 86f9963..2f6dfd7 100644
--- a/samples/showcase/war/Showcase.html
+++ b/samples/showcase/war/Showcase.html
@@ -15,7 +15,7 @@
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" style="position:absolute;width:0;height:0;border:0"></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/simplerpc/war/SimpleRPC.html b/samples/simplerpc/war/SimpleRPC.html
index 09888a7..21e841f 100644
--- a/samples/simplerpc/war/SimpleRPC.html
+++ b/samples/simplerpc/war/SimpleRPC.html
@@ -23,7 +23,7 @@
<body>
<iframe src="javascript:''" id='__gwt_historyFrame' tabIndex='-1' style='width:0;height:0;border:0'></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/samples/simplexml/war/SimpleXML.html b/samples/simplexml/war/SimpleXML.html
index b32ce85..7b4db17 100644
--- a/samples/simplexml/war/SimpleXML.html
+++ b/samples/simplexml/war/SimpleXML.html
@@ -22,7 +22,7 @@
</head>
<body bgcolor="white">
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color:white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/user/src/com/google/gwt/junit/public/junit.html b/user/src/com/google/gwt/junit/public/junit.html
index 99faef8..efb2d26 100644
--- a/user/src/com/google/gwt/junit/public/junit.html
+++ b/user/src/com/google/gwt/junit/public/junit.html
@@ -57,7 +57,7 @@
</script>
<iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
index bf59447..e85d026 100644
--- a/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
+++ b/user/src/com/google/gwt/user/tools/AppHtml.htmlsrc
@@ -40,7 +40,7 @@
<!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/user/test/com/google/gwt/i18n/public_es_AR/junit.html b/user/test/com/google/gwt/i18n/public_es_AR/junit.html
index 3820854..e30fb7b 100644
--- a/user/test/com/google/gwt/i18n/public_es_AR/junit.html
+++ b/user/test/com/google/gwt/i18n/public_es_AR/junit.html
@@ -64,7 +64,7 @@
</script>
<iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>
diff --git a/user/test/com/google/gwt/i18n/public_es_MX/junit.html b/user/test/com/google/gwt/i18n/public_es_MX/junit.html
index 7b43179..0de069d 100644
--- a/user/test/com/google/gwt/i18n/public_es_MX/junit.html
+++ b/user/test/com/google/gwt/i18n/public_es_MX/junit.html
@@ -64,7 +64,7 @@
</script>
<iframe src="javascript:''" id='__gwt_historyFrame' style='position:absolute;width:0;height:0;border:0'></iframe>
<noscript>
- <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; border: 1px solid red; padding: 4px; font-family: sans-serif">
+ <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
Your web browser must have JavaScript enabled
in order for this application to display correctly.
</div>