nosamu
202fe2f1bb
core: Add options to set and force the stage alignment
2023-06-14 16:04:14 +02:00
nosamu
ec452d91bd
demo: Use forceScale option
2023-04-18 21:43:38 +02:00
relrelb
d9feadce00
web: Run `npm run format`
...
In order to fix Stylelint's new `media-feature-range-notation` rule:
https://stylelint.io/user-guide/rules/media-feature-range-notation/
2023-04-01 13:11:23 +03:00
Daniel Jacobs
4c50e2c271
demo: Add option to reload the current SWF
2023-04-01 01:46:03 -07:00
relrelb
b0eb1057f1
web: Run `npm run format`
2023-03-28 23:43:02 +03:00
Daniel Jacobs
a63f520449
web: Change preloader name while keeping old name for compatibility
2023-03-02 10:51:36 +02:00
nosamu
cfa3363416
web: Construct SwfMovie with spoofed URL when loaded from data
2023-01-29 17:55:55 +01:00
Daniel Jacobs
c2354c1a30
demo: Make open-modal kebab-case
2022-08-19 16:20:06 -07:00
Daniel Jacobs
d8ed2f0d01
demo: Address feedback for metadata color scheme and icon placement
2022-08-19 16:20:06 -07:00
Daniel Jacobs
a2968e6ecb
demo: Use switch statement instead of branches
2022-08-19 16:20:06 -07:00
Daniel Jacobs
7343acf65b
demo: Replace division & Math.round with bitshift (acts like Math.floor)
2022-08-19 16:20:06 -07:00
Daniel Jacobs
86f0813a79
demo: Use Object.entries for simpler code
2022-08-19 16:20:06 -07:00
Daniel Jacobs
9bd1a8c940
demo: Ensure metadata does not overflow 320 x 320 screen
2022-08-19 16:20:06 -07:00
Daniel Jacobs
92a4d7c831
demo: Add uncompressedLength to metadata on demo page
2022-08-19 16:20:06 -07:00
Daniel Jacobs
42cf08d578
demo: Show metadata on information icon click
2022-08-19 16:20:06 -07:00
Daniel Jacobs
75becaf3ba
demo: Add metadata to status bar on the page
2022-08-19 16:20:06 -07:00
relrelb
1accf2d8f9
web: Make `SourceAPI` a singleton
...
As a first step towards a simpler Web API, convert `SourceAPI` from
a class to a constant object, under the assumption that `SourceAPI`
isn't a public Ruffle API and as such is safe to be changed.
As a result the different `ruffle-core` users don't need to construct
a new `SourceAPI` instance before calling `PublicAPI.negotiate()`.
2022-07-23 10:37:33 -07:00
Daniel Jacobs
56adcc5665
web: Add a loading screen ( #7396 )
...
* web: Add a loading screen
* web: Workaround sometimes overwitten remove method
* web: Completely remove exact px values from preloader
* web: Add meaningless loading animation to preloader
* web: Make preloader position relative
* web: Minor preloader CSS changes
* web: Don't change autoplay/unmuteOverlay showing logic
* demo: Use preloader-background for demo
* web: Don't fully remove preloader
* web: Hide preloader loading bar if there's no content-length
* web: Fix typo in load-ruffle
* web: Show/hide playButton and unmuteOverlay based on preloader state
* web: Address preloader feedback
* web: Revert ESLint change
* web: Remove unneeded optional chaining
* web: Change load option from hasPreloader to preloader
* web: Address some preloader feedback
* web: Change margin-bottom for preloader loading anim
* web: Simplify preloader conditional
* web: Show/hide full container when hiding/showing preloader
* web: Make preloader full-size
2022-07-19 22:20:53 +03:00
nosamu
245b55a832
chore: Fix lint
2022-07-13 20:36:52 -07:00
nosamu
320f84dc88
demo: Improve Sample SWF dropdown
2022-07-13 20:36:52 -07:00
Daniel Jacobs
254a4a9175
demo: Fix styling on mobile devices
2022-05-09 10:07:16 -07:00
Daniel Jacobs
57659a1f44
demo: Add an area to say the file name
2022-05-06 10:43:20 -07:00
Daniel Jacobs
f94a76a248
demo: Style the local file selector and sample file select
2022-05-06 10:43:20 -07:00
Mike Welsh
d3becd9d2c
demo: Add Ruffle splash anim as initial animation
2022-04-27 22:39:14 -07:00
Chris Midgley
8ac19e9807
web: update everything ( #5731 )
...
* web: update everything
* chore: apply new lint corrections
2021-11-25 23:21:43 +02:00
Daniel Jacobs
a1fb368401
demo: Show overlay when dragging over file input
2021-10-06 18:17:59 -07:00
Daniel Jacobs
56e8dd1b0e
demo: Add visual indicator to file picker for dragging and dropping
2021-09-15 00:08:16 +03:00
Seedgou
5933107fd7
docs: vectorize logo image
2021-09-14 23:43:45 +03:00
cyrozap
74d6195725
demo: Fix local file uploads on iOS
...
It seems Mobile Safari on iOS refuses to allow selection of any files
when the "accept" attribute doesn't contain any file types it
recognizes. To fix this, detect when the demo is running on an iOS
device and remove the "accept" attribute from the file input in that
case.
Fixes: 2d0c76c06f
("demo: Only accepts .swf and .spl files")
2021-08-11 19:53:38 +02:00
relrelb
a33066f666
demo: Small cleanups
2021-07-12 23:21:14 +03:00
Daniel Jacobs
e6bc34cf1c
Add favicon to demo page ( fix #2910 )
2021-06-10 23:57:31 -07:00
Daniel Jacobs
8c9db35baf
demo: Allow small screens to still upload local files
2021-04-18 21:04:02 -07:00
relrelb
9e4816c2f1
demo: Add missing class="hidden"
2021-04-15 15:56:52 -07:00
relrelb
792519a725
demo: Improvements
2021-04-11 21:49:18 -07:00
relrelb
1ed8dea599
web: Improvements
2021-03-05 23:07:55 -08:00
relrelb
73b5916b2a
web: Fix player positioning
2021-02-19 17:40:43 -08:00
Mike Welsh
836b631237
web: Revert style changes in #3239
2021-02-18 04:11:04 -08:00
relrelb
1c21856980
web: General refactoring
...
* web: Don't load a random SWF Instead, show a prompt to select or drag an SWF.
* web: Refactor webpack.config.js
* demo: Refactor index.js
* demo: Cleanup CSS
2021-02-16 20:39:46 -08:00
Andrew Larson
f34bdb045d
demo: Fix player not being destroyed when None is selected
...
Fix issue with duplicate instances in web demo when sample SWF
is unloaded.
2021-01-25 03:31:24 -08:00
relrelb
0ea7b857cf
demo: Lint index.js
2021-01-22 09:19:26 -08:00
relrelb
0349d90fcd
demo: Add drag-and-drop functionality
2021-01-22 09:19:26 -08:00
Maxwell DeKock
b2594b2b6c
web: Fix error in demo when selecting None for sample ( close #2416 )
2021-01-21 18:05:12 -08:00
Adrian Wielgosik
b69e17bf35
web: Allow customizing log level
2021-01-19 18:10:35 -08:00
relrelb
828d8b7339
demo: General refactor
...
General cleanup and refactoring of the web demo
2021-01-09 19:36:05 -08:00
Mike Welsh
87ae91963b
demo: Enable letterbox for demo
2021-01-07 11:46:07 -08:00
Toad06
2d0c76c06f
demo: Only accepts .swf and .spl files
2020-12-30 15:14:28 -08:00
Nathan Adams
797dd83766
web: Merge streamSwfUrl and streamSwfData into load
2020-11-25 11:33:51 -08:00
willbrindle
c3e64f1b12
demo: Allow specifying file in demo via query params
2020-11-24 17:50:30 -08:00
Nathan Adams
abb311670f
web: Rename RufflePlayer.play_swf_data to RufflePlayer.playSwfData
2020-11-24 16:36:33 -08:00
Nathan Adams
bc3b6ade4e
web: Rename SourceAPI.create_player to SourceAPI.createPlayer
2020-11-24 16:36:33 -08:00