mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix Client.java file in maven archetype
This commit is contained in:
parent
f3a4d3737b
commit
3f7b142d6e
|
@ -1,15 +1,11 @@
|
|||
package ${package};
|
||||
|
||||
import org.teavm.dom.browser.Window;
|
||||
import org.teavm.dom.html.HTMLDocument;
|
||||
import org.teavm.dom.html.HTMLElement;
|
||||
import org.teavm.jso.JS;
|
||||
import org.teavm.jso.dom.html.HTMLDocument;
|
||||
import org.teavm.jso.dom.html.HTMLElement;
|
||||
|
||||
public class Client {
|
||||
private static Window window = (Window)JS.getGlobal();
|
||||
private static HTMLDocument document = window.getDocument();
|
||||
|
||||
public static void main(String[] args) {
|
||||
HTMLDocument document = HTMLDocument.current();
|
||||
HTMLElement div = document.createElement("div");
|
||||
div.appendChild(document.createTextNode("TeaVM generated element"));
|
||||
document.getBody().appendChild(div);
|
||||
|
|
Loading…
Reference in New Issue
Block a user