Skip to content

Commit 994ea85

Browse files
committed
quick readme update
1 parent 79c53bf commit 994ea85

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,19 @@ import { CaptionsStylePlugin, CaptionsToggleplugin, Container } from 'springroll
106106

107107
const container = new springroll.Container('#game', {
108108
plugins: [
109-
new CaptionsTogglePlugin({
110-
captionsButtons: '#captions',
111-
}),
112-
new CaptionsStylePlugin({
109+
new CaptionsTogglePlugin('#captions'),
110+
new CaptionsStylePlugin(
113111
// 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]',
115113

116114
// expects exactly two(2) radio buttons with values "default" (black background, white text),
117115
// and "inverted" (black text, white background) for caption color schemes
118-
colorRadios: 'input[name=captions-font-color]',
116+
'input[name=captions-font-color]',
119117

120118
// expects exactly two(2) radio buttons values "top" and "bottom".
121119
// 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+
),
124122
]
125123
});
126124
container.openPath('game.html');

0 commit comments

Comments
 (0)