@@ -106,21 +106,19 @@ import { CaptionsStylePlugin, CaptionsToggleplugin, Container } from 'springroll
106
106
107
107
const container = new springroll.Container (' #game' , {
108
108
plugins: [
109
- new CaptionsTogglePlugin ({
110
- captionsButtons: ' #captions' ,
111
- }),
112
- new CaptionsStylePlugin ({
109
+ new CaptionsTogglePlugin (' #captions' ),
110
+ new CaptionsStylePlugin (
113
111
// expects exactly three(3) radio buttons with values "small", "medium", and "large" indicating caption font sizes.
114
- fontSizeRadios : ' input[name=captions-font-size]' ,
112
+ ' input[name=captions-font-size]' ,
115
113
116
114
// expects exactly two(2) radio buttons with values "default" (black background, white text),
117
115
// and "inverted" (black text, white background) for caption color schemes
118
- colorRadios : ' input[name=captions-font-color]' ,
116
+ ' input[name=captions-font-color]' ,
119
117
120
118
// expects exactly two(2) radio buttons values "top" and "bottom".
121
119
// Indicating that captions should be placed at the top or bottom of the screen.
122
- alignmentRadios : ' input[name=captions-alignment]' ,
123
- } ),
120
+ ' input[name=captions-alignment]' ,
121
+ ),
124
122
]
125
123
});
126
124
container .openPath (' game.html' );
0 commit comments