Files
shaka-player/demo/tooltip.js
T
Joey Parrish c9bd9a5dc9 fix: Correct license headers in demo app
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
2020-06-09 16:07:06 -07:00

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.
}
};