2020-03-09 18:31:36 +00:00
|
|
|
/**
|
|
|
|
* @param {string} msg
|
|
|
|
* @param {number} [height=200]
|
|
|
|
* @return {string}
|
|
|
|
*/
|
2020-01-09 22:11:00 +00:00
|
|
|
const placeholder = ( msg, height ) => {
|
|
|
|
return `<div style="width: 100%; height: ${height || 200}px; margin-bottom: 2px;
|
|
|
|
font-size: 12px; padding: 8px; box-sizing: border-box;
|
|
|
|
display: flex; background: #eee; align-items: center;justify-content: center;">${msg}</div>`;
|
|
|
|
};
|
|
|
|
|
2021-02-08 23:10:21 +00:00
|
|
|
/**
|
|
|
|
* @param {string} html
|
|
|
|
* @return {string}
|
|
|
|
*/
|
|
|
|
const portletAfter = ( html ) => {
|
|
|
|
return `<div class="after-portlet after-portlet-tb">${html}</div>`;
|
|
|
|
};
|
|
|
|
|
2020-07-14 21:40:28 +00:00
|
|
|
const htmlUserLanguageAttributes = `dir="ltr" lang="en-GB"`;
|
2020-01-09 22:11:00 +00:00
|
|
|
|
2021-02-08 23:10:21 +00:00
|
|
|
export { placeholder, htmlUserLanguageAttributes, portletAfter };
|