diff --git a/tests/main.go b/tests/main.go
index fa59e3b..fa66d70 100644
--- a/tests/main.go
+++ b/tests/main.go
@@ -18,3 +18,3 @@ func main() {
- test := document.CreateElement("div")
- test.InnerText = "hellodkljhsa"
- document.QuerySelector("body").AppendChild(test)
+ // test := document.CreateElement("div")
+ // test.InnerText = "hellodkljhsa"
+ // document.QuerySelector("body").AppendChild(test)
package main
import (
"fmt"
"gui"
"gui/element"
)
func main() {
window := gui.Open("./src/index.html")
// window.AddAdapter(raylib)
document := window.Document
document.QuerySelector("body").AddEventListener("click", func(e element.Event) {
fmt.Println("click")
e.Target.Style["background"] = "red"
})
test := document.CreateElement("div")
test.InnerText = "hellodkljhsa"
document.QuerySelector("body").AppendChild(test)
gui.View(&window, 850, 400)
// input, output := gui.Render(&window, 850, 400)
// go adapter.View(input, output)
}