From 86d9e67d7a9f0128ff8b62d12a3ababc9135b618 Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Thu, 23 Aug 2018 20:01:30 +0200 Subject: [PATCH] Add responsive HTML5 export page with full-size canvas as new default --- .../html/{default.html => fixed-size.html} | 0 misc/dist/html/full-size.html | 260 ++++++++++++++++++ platform/javascript/SCsub | 2 +- 3 files changed, 261 insertions(+), 1 deletion(-) rename misc/dist/html/{default.html => fixed-size.html} (100%) create mode 100644 misc/dist/html/full-size.html diff --git a/misc/dist/html/default.html b/misc/dist/html/fixed-size.html similarity index 100% rename from misc/dist/html/default.html rename to misc/dist/html/fixed-size.html diff --git a/misc/dist/html/full-size.html b/misc/dist/html/full-size.html new file mode 100644 index 00000000000..44b009524c3 --- /dev/null +++ b/misc/dist/html/full-size.html @@ -0,0 +1,260 @@ + + + + + + + +$GODOT_HEAD_INCLUDE + + + + HTML5 canvas appears to be unsupported in the current browser.
+ Please try updating or use a different browser. +
+
+ + + +
+ + + + + diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index 98988d97fd6..a93c98a89fb 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -32,6 +32,6 @@ zip_files = env.InstallAs([ ], [ js_wrapped, wasm, - '#misc/dist/html/default.html' + '#misc/dist/html/full-size.html' ]) env.Zip('#bin/godot', zip_files, ZIPROOT=zip_dir, ZIPSUFFIX='${PROGSUFFIX}${ZIPSUFFIX}', ZIPCOMSTR='Archving $SOURCES as $TARGET')