mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
c9bd9a5dc9
Though not part of the library, this corrects/normalizes the license headers in the demo app to be consistent with those in the library. Issue #2638 Change-Id: I4546c4c6970d72ff71a37489fd582623bd6e2ca3
31 lines
678 B
JavaScript
31 lines
678 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 {shakaDemo.MessageIds} message
|
|
*/
|
|
static make(labeledElement, message) {
|
|
tippy(labeledElement, {
|
|
content: shakaDemoMain.getLocalizedString(message),
|
|
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.
|
|
}
|
|
};
|