Noah Petherbridge
1a9706c09f
* Rework the Story Mode UI to display level thumbnails. * Responsive UI: defaults to wide screen mode and shows 3 levels horizontally but on narrow/mobile display, shows 2 levels per page in portrait. * Add "Tiny" screenshot size (224x126) to fit the Story Mode UI. * Make the pager buttons bigger and more touchable. * Maximize the game window on startup unless the -w option with a specific window resolution is provided.
16 lines
271 B
Go
16 lines
271 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package native
|
|
|
|
import "syscall/js"
|
|
|
|
// OpenURL opens a new window to the given URL, for WASM environment.
|
|
func OpenURL(url string) {
|
|
js.Global().Get("window").Call("open", url)
|
|
}
|
|
|
|
func OpenLocalURL(url string) {
|
|
OpenURL(url)
|
|
}
|