\r
@Override\r
public HTMLGen html(String ... attrib) {\r
- //forward.println("<!DOCTYPE html>");\r
+ forward.println("<!DOCTYPE html>");\r
incr("html",attrib);\r
return this;\r
}\r
return mark;\r
}\r
\r
-\r
-// @Override\r
-// protected void importCSS(Imports imports) {\r
-// if (imports.css.size() == 1) {\r
-// cssInline(imports.css.get(0));\r
-// } else {\r
-// for (String str : imports.css) {\r
-// forward.print("<link rel=\"stylesheet\" href=\"");\r
-// forward.print(imports.themePath(null));\r
-// forward.print(str);\r
-// forward.println("\">");\r
-// }\r
-// }\r
-// }\r
-//\r
-\r
- /*\r
- public void chromeFrame() {\r
- this.textCR(0,"<!--[if IE]>");\r
- Mark mark = new Mark();\r
- this.leaf(mark, "script","type=text/javascript","src=http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js")\r
- .end(mark);\r
- this.incr(mark, "style")\r
- .textCR(0,".chromeFrameInstallDefaultStyle {")\r
- .textCR(1,"width: 100%; /* default is 800px * /")\r
- .textCR(1,"border: 5px solid blue;")\r
- .textCR(0,"}")\r
- .end(mark);\r
-\r
- this.incr(mark,"div","id=prompt"); // auto comment would break IE specific Script\r
- // "if IE without GCF, prompt goes here"\r
- this.text("Please load this plugin to run ClientSide Websockets")\r
- .end(mark);\r
-\r
- this.incr(mark, "script")\r
- .textCR(0, "// The conditional ensures that this code will only execute in IE,")\r
- .textCR(0, "// Therefore we can use the IE-specific attachEvent without worry")\r
- .textCR(0, "window.attachEvent('onload', function() {")\r
- .textCR(1,"CFInstall.check({")\r
- .textCR(2,"mode: 'inline', // the default")\r
- .textCR(2,"node: 'prompt'")\r
- .textCR(1, "});")\r
- .textCR(0, "});")\r
- .end(mark);\r
- \r
- this.textCR(0,"<![endif]-->");\r
- }\r
- */\r
-\r
}\r