diff options
Diffstat (limited to 'javascript/videojs/src/js/control-bar/time-controls/time-divider.js')
| -rw-r--r-- | javascript/videojs/src/js/control-bar/time-controls/time-divider.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/javascript/videojs/src/js/control-bar/time-controls/time-divider.js b/javascript/videojs/src/js/control-bar/time-controls/time-divider.js deleted file mode 100644 index 970e2d1..0000000 --- a/javascript/videojs/src/js/control-bar/time-controls/time-divider.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @file time-divider.js - */ -import Component from '../../component.js'; - -/** - * The separator between the current time and duration. - * Can be hidden if it's not needed in the design. - * - * @extends Component - */ -class TimeDivider extends Component { - - /** - * Create the component's DOM element - * - * @return {Element} - * The element that was created. - */ - createEl() { - const el = super.createEl('div', { - className: 'vjs-time-control vjs-time-divider' - }, { - // this element and its contents can be hidden from assistive techs since - // it is made extraneous by the announcement of the control text - // for the current time and duration displays - 'aria-hidden': true - }); - - const div = super.createEl('div'); - const span = super.createEl('span', { - textContent: '/' - }); - - div.appendChild(span); - el.appendChild(div); - - return el; - } - -} - -Component.registerComponent('TimeDivider', TimeDivider); -export default TimeDivider; |
