public static <E extends SCRIPT> E setScriptSrc(E e, String src) { if (src.endsWith(".js")) { e.$type("text/javascript"); // required in html4 } e.$src(src); return e; } }
public static void jsnotice(HTML html) { html. div("#jsnotice.ui-state-error"). __("This page will not function without javascript enabled." + " Please enable javascript on your browser.").__(); html. script().$type("text/javascript"). __("$('#jsnotice').hide();").__(); }