Josh Tynjala
3802d51e5c
templates: use mobile-web-app-capable in index.html template instead of apple-mobile-web-app-capable
...
Similar fix to openfl/openfl@8aadc573b7
2025-06-04 13:41:08 -07:00
Josh Tynjala
c81ad95ae5
output.js: fix broken breakpoints in debug builds ( closes #1872 )
...
::SOURCE_FILE:: must appear on the first line so that the .js.map line numbers match with our generated .js file line numbers
Added a comment to explain why that part of the file isn't formatted nicely with line breaks like the rest of the file.
This partially reverts bbcb8bea07
2024-12-09 09:23:12 -08:00
Joshua Granick
88e21e6cc9
Fix JS, minor improvements to readability after generate
2024-07-09 10:53:53 -07:00
Joseph Cloutier
2874ac9cab
Use globalThis.
...
It's designed to solve exactly this problem, and has been universally available since 2020.
The most likely scenario for `globalThis` to fail is if the user is stuck with an old browser, in which case `self` will be available. `window` will be too, but `self` also works in web workers.
2024-06-10 14:26:46 -04:00
Joseph Cloutier
832ac358c1
Use === and !== in output.js.
2024-06-10 14:14:39 -04:00
Joseph Cloutier
bbcb8bea07
Format output.js for readability.
2024-06-10 14:12:19 -04:00
Joseph Cloutier
8066037cdd
Bug fix: Node.js was being treated as a web worker context.
2024-06-10 14:07:22 -04:00
Joseph Cloutier
630aa1a62f
Fix web worker errors.
...
It took a lot of work to get web workers to work, but web workers finally work!
`transferList` doesn't seem to work, though. It makes the object
inaccessible as expected, but it doesn't seem to affect performance.
2022-02-28 19:15:19 -05:00
Kostas Chatzikokolakis
d969c7fa30
output.js: add AMD compatibility
...
If the code is loaded via AMD/requirejs:
- we call define() instead of exporting 'lime' globally
- we disable AMD while the embedded libraries are loading, so that they
register themselves in the global scope.
2019-06-12 11:51:36 -07:00
Joshua Granick
44133fe2d4
Add -npm option for HTML5
2019-04-15 13:59:18 -07:00
Joshua Granick
42649d1b9a
Improve output HTML5 script wrapper for better Haxe 3.2 support
2019-04-03 11:31:49 -07:00
Joshua Granick
970aaa979c
Fix HTML5 output template on debug
2019-03-29 17:06:43 -07:00
Joshua Granick
914e94f9e5
Fix line numbers for HTML5 source maps
2019-03-29 15:58:03 -07:00
Joshua Granick
cac82509da
Add support for embedded JS dependencies (embed Lime dependencies by default)
2019-02-12 13:30:07 -08:00
Joshua Granick
3e9f875eaf
Process JS using template, add support for unique statics in repeat lime.embed calls
2019-02-12 13:14:40 -08:00
Joshua Granick
734ed288ab
Make DIV transparent when no window background is set
2018-11-12 11:03:59 -08:00
Joshua Granick
ce50286f0a
Workaround change in behavior for Chrome window preventDefault
2018-06-25 11:28:55 -07:00
Joshua Granick
594ab27006
Make font style CSS on HTML5 dependent on which formats are generated
2017-11-17 15:51:11 -08:00
Joshua Granick
96df81a89b
Remove deprecated HTML meta tag
2017-03-29 16:00:07 -07:00
Joshua Granick
3ded4212ae
Update default HTML template
2017-02-28 15:50:00 -08:00
Joshua Granick
592665629d
Use AppName.embed instead lime.embed for HTML5 by default
2016-12-22 14:34:33 -08:00
Joshua Granick
f580ea149c
Add favicon for HTML5
2016-09-29 14:29:01 -07:00
Valentin Lemière
9fe3750653
Separate build types, use context variable in templates instead of hardcoding. Fix #353
2016-07-06 09:41:56 +02:00
Joshua Granick
887bb118b7
Allow <window resizable='false' /> in default HTML5 template
2015-12-11 14:18:07 -08:00
Joshua Granick
bf8f88639d
Fix template (thanks @mcheshkov) ( fix #551 )
2015-08-22 09:12:40 -07:00
Joshua Granick
7700c12567
Add js-flatten and DCE full to HTML5 -final HXML
2015-01-22 11:10:02 -08:00
Joshua Granick
0183e700be
Unify preloading code
2014-06-19 00:48:11 -07:00
Joshua Granick
97d9911b67
Some refactoring
2014-06-19 00:35:46 -07:00
Joshua Granick
bfbdbdba5a
Begin work on HTML5
2014-06-19 00:35:36 -07:00
Joshua Granick
1675043dd1
Add HXML files for 'final' build config
2014-05-22 15:38:04 -07:00
Joshua Granick
7d4c3668d1
Cleanup HXML templates
2014-05-20 18:38:30 -07:00
Joshua Granick
a6e83e9a46
Add JS dependencies to HTML template
2014-05-16 09:24:07 -07:00
George Corney
6ba1a00ebc
CSS-forced width & height fix
...
CSS prevented the width and the height being set by the project file
2014-04-05 19:22:04 +01:00
underscorediscovery
277cbf83a5
Wrapper; Audio; Making sure audio thread code only runs on native with thread options
...
Wrapper; Template; updating html5 ApplicationMain.hx to have parity with new config typing.
2014-01-28 03:35:14 -03:30
underscorediscovery
143d25bb11
Wrapper; Input; adding html5 gamepad support, still a few minor things to add (disconnect/reconnect like native) and initial event types for gamepad for native as well
2014-01-26 21:55:16 -03:30
underscorediscovery
37e23f3a3d
Wrapper; Template; cleanup older template code, and fix css to properly centre the canvas.
2014-01-26 15:10:49 -03:30
underscorediscovery
74429b0e36
Wrapper; soundManager2 Audio implementation for html5 lime standalone targets
2014-01-26 05:52:33 -03:30
underscorediscovery
cc9ff9b882
Wrapper; Window; passing all of the window flags for config.
...
Wrapper; Float32Array; The constructor was using length as a bytelength, instead of vert length (to match the webGL spec)
2013-12-11 21:59:10 -03:30
underscorediscovery
7b5f2dfaf3
Keys; Adding more enums for the keymaps, and fixing values from sdl2.
...
Cleanup; Renaming LiME to Lime from legacy class name.
2013-12-09 18:05:22 -03:30
underscorediscovery
ba35d41715
Updating templates path
2013-11-28 01:23:25 -03:30