| | |
| | | } |
| | | } |
| | | |
| | | function wrapEl(el, wrapper) { |
| | | el.parentNode.insertBefore(wrapper, el); |
| | | wrapper.appendChild(el); |
| | | } |
| | | |
| | | function wrapText(text, context, wrapper = 'mark') { |
| | | let open = `<${wrapper}>`; |
| | | let close = `</${wrapper}>`; |
| | |
| | | lazyLoadMedia('img'); |
| | | })(); |
| | | |
| | | (function makeTablesResponsive(){ |
| | | const tables = elems('table'); |
| | | if (tables) { |
| | | tables.forEach(function(table){ |
| | | const tableWrapper = createEl(); |
| | | pushClass(tableWrapper, 'scrollable'); |
| | | wrapEl(table, tableWrapper); |
| | | }); |
| | | } |
| | | })(); |
| | | |
| | | function pickModePicture(user, system, context) { |
| | | const pictures = elems('picture'); |
| | | if(pictures) { |