-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform: overhaul builtin style+markup for Emscripten apps.
What's new: * The style is consistent with the dark m.css theme that's used on the website and so provides a bit better "brand identity". * The canvas is responsive, looking properly on mobile and scaling down with aspect ratio preservation if the screen is too narrow. * It's now possible to override canvas size and aspect ratio or make it "fullscreen", i.e. occupying the whole browser window. * If the app crashes, a helpful message is printed instead of everything just being stuck.
- Loading branch information
Showing
10 changed files
with
469 additions
and
154 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Magnum AL Info</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="WebApplication.css" /> | ||
</head> | ||
<body> | ||
<h1>Magnum AL Info</h1> | ||
<div id="listener"> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Magnum AL Info</title> | ||
<link rel="stylesheet" href="WebApplication.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
</head> | ||
<body> | ||
<h1>Magnum AL Info</h1> | ||
<div id="container"> | ||
<div id="sizer"><div id="expander"><div id="listener"> | ||
<canvas id="module" class="hidden"></canvas> | ||
<pre id="log"></pre> | ||
<div id="status">Initialization...</div> | ||
<div id="statusDescription"></div> | ||
<div id="status-description"></div> | ||
<script src="WindowlessEmscriptenApplication.js"></script> | ||
<script async="async" src="magnum-al-info.js"></script> | ||
</div> | ||
</body> | ||
</div></div></div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.