Files
shaka-player/demo/tooltip.js
T
theodab e8e28073c1 chore(demo): Removed demo localization system (#5665)
A localization system was added to the demo, in preparation for future localizations of the demo page.
However, such further localizations were never added, and it seems likely that they will never be added.
Given that it will almost definitely never be used, the localization system has just become an annoyance that makes adding new features to the demo more difficult, so this removes the system entirely.
2023-09-25 02:58:39 -07:00

30 lines
620 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shakaDemo.Tooltips');
/**
* Creates and contains a tooltip.
*/
shakaDemo.Tooltips = class {
/**
* @param {!Element} labeledElement
* @param {string} content
*/
static make(labeledElement, content) {
tippy(labeledElement, {
content,
placement: 'bottom',
arrow: true,
animation: 'scale',
size: 'large',
});
// TODO: The tooltip should be unreadable by screen readers, and this
// tooltip info should instead be encoded into the object.
}
};