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
Nathan Adams
c56d707045
web: Make demo depend directly on ruffle-core
2020-11-24 16:36:33 -08:00
relrelb
d71c886e48
web: Move margin to #nav
2020-11-18 17:50:12 -08:00
relrelb
c8ed1debc6
web: Change margin to margin-top
...
This makes the demo page fit in a whole page without a scrollbar.
2020-11-18 17:50:12 -08:00
Mike Welsh
212645d9b9
demo: Remove query parameter support ( fix #1255 )
...
The 'file' query parameter is no longer necessary now that the
sample drop-down box was added, populated by swfs.json.
2020-10-10 17:48:39 -07:00
Mike Welsh
4671740abe
demo: Fix incorrect sample SWF loading
...
The indexing into the list of sample SWFs could be incorrect
depending on the order of the JSON data. Now we store the SWF info
directly on the option element for easy access, regardless of order.
2020-06-05 16:40:10 -07:00
Nathan Adams
d02223c816
chore: Formatted demo index.html
2020-05-27 00:11:02 -07:00
Sean-Thomas
2d557f8fb6
Added Opt-Groups for Web Demo
...
This commit adds HTML Opt-Groups separating Games and Animations on the web demo sample dropdown menu. There are also a few tiny styling changes. Mainly the addition of a transition duration to the logo image, as well as changing "max-device-width" to "max-width" on a media query so that the "mobile" view is shown if you scale down the window on desktop browsers.
2020-05-24 19:09:19 -07:00
Nathan Adams
9f4455f2fb
web: Fixed extra </div> in demo
2020-05-19 11:42:56 +02:00
Nathan Adams
11f68b90f9
web: Switch to using commonjs style require/exports
...
It looks like things still don't play nice with modules yet :(
2020-05-19 11:42:55 +02:00
Nathan Adams
0ab3c9f69b
web: Made demo use ruffle-selfhosted
2020-05-19 11:42:54 +02:00
Nathan Adams
b6523324ed
web: Move each web package into a packages/ directory
2020-05-19 11:42:53 +02:00