diff --git a/src/App.svelte b/src/App.svelte index c4a4d5e..6ca77fc 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -33,14 +33,37 @@ $: console.log(dialog[$page]); console.log("Pancake recipe at https://github.com/danbulant/heaventaker"); + + var width = window.innerWidth; + var height = window.innerHeight; + var outerHeight = window.outerHeight; + var outerWidth = window.outerWidth; + + /** + * @param {UIEvent} e + */ + function resize(e) { + width = window.innerWidth; + height = window.innerHeight; + outerHeight = window.outerHeight; + outerWidth = window.outerWidth; + } - + Heaventaker +{#if width < height / 1080 * 615 * 2} +
+ + Resize or rotate your device to play. + +
+{/if} + {#if dialog[$page].map} {/if} @@ -48,3 +71,22 @@ + + \ No newline at end of file