Created
April 29, 2022 04:55
-
-
Save ivancorrales/6264e3e808feec93cb81294518e0dc42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"syscall/js" | |
"time" | |
) | |
func main() { | |
document := js.Global().Get("document") | |
message := document.Call("getElementById", "description") | |
message.Get("style").Call("setProperty", "display", "block") | |
time.Sleep(2 * time.Second) | |
message.Get("style").Call("setProperty", "display", "none") | |
time.Sleep(2 * time.Second) | |
message.Get("style").Call("setProperty", "display", "block") | |
time.Sleep(2 * time.Second) | |
message.Get("style").Call("setProperty", "display", "none") | |
time.Sleep(2 * time.Second) | |
message.Get("style").Call("setProperty", "display", "block") | |
time.Sleep(2 * time.Second) | |
message.Get("style").Call("setProperty", "display", "none") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment