*/
public class Jalview
{
+ // @formatter:off
/**
- * // find first query parameter (if any) that doesn't start with j2s // and
- * set as space-delimited arguments to Jalview main
+ * find first query parameter (if any) that doesn't start with j2s
+ * and set as space-delimited arguments to Jalview main
*
* @j2sNative
- *
- * var hr = decodeURI(document.location.href); var pos =
- * hr.indexOf("?"); if (pos > 0) { q = hr.substring(pos+1); args =
- * q.split("&"); for (i = 0 ; i < args.length; i++) { arg1 =
- * args[i]; if (!arg1.startsWith("j2s")) { thisApplet.__Info.args =
- * arg1.split(" "); break; } } }
+ * var hr = decodeURI(document.location.href);
+ * var pos = hr.indexOf("?");
+ * if (pos > 0)
+ * {
+ * q = hr.substring(pos+1);
+ * args = q.split("&");
+ * for (i = 0 ; i < args.length; i++)
+ * {
+ * arg1 = args[i];
+ * if (!arg1.startsWith("j2s"))
+ * {
+ * thisApplet.__Info.args = arg1.split(" ");
+ * break;
+ * }
+ * }
+ * }
*/
+ // @formatter:on
/*
* singleton instance of this class
java.net.URL urllogo = getClass()
.getResource("/images/Jalview_Logo_small.png");
- if (/** @j2sNative false || */
- url != null)
+ if (!Platform.isJS() && url != null)
{
image = java.awt.Toolkit.getDefaultToolkit().createImage(url);
Image logo = java.awt.Toolkit.getDefaultToolkit()
} catch (InterruptedException x)
{
}
- ;
if (mt.isErrorAny())
{
System.err.println("Error when loading images!");