Skip to content

Commit

Permalink
tests: html5 template
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Apr 5, 2024
1 parent afdb855 commit 522c9a5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions test/templates/html5/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@
<meta charset="utf-8" />
<title>::APP_TITLE::</title>
<script type="text/javascript" src="./::APP_FILE::.js"></script>
<style>
html,body{margin:0;padding:0;height:100%;}
::if (SET_OPENFL >= "9.4.0")::
#openfl-content{position:absolute;top:-100%;::if (WIN_BACKGROUND)::background:#000000;::end::width:::if (WIN_RESIZABLE)::100%::elseif (WIN_WIDTH > 0)::::WIN_WIDTH::px::else::100%::end::;height:::if (WIN_RESIZABLE)::100%::elseif (WIN_WIDTH > 0)::::WIN_HEIGHT::px::else::100%::end::;}
::end::
</style>
</head>
<body>
<noscript
>Please enable JavaScript in your web browser to run tests.</noscript
>
<noscript>Please enable JavaScript in your web browser to run tests.</noscript>
::if (SET_OPENFL >= "9.4.0")::
<div id="openfl-content"></div>
<script type="text/javascript">
lime.embed ("::APP_FILE::", "openfl-content", ::WIN_WIDTH::, ::WIN_HEIGHT::, { parameters: {} });
</script>
::else::
<script type="text/javascript">
lime.$scripts["::APP_FILE::"]();
</script>
::end::
</body>
</html>

0 comments on commit 522c9a5

Please sign in to comment.