(page)
| 54 | } |
| 55 | |
| 56 | export function floatClick(page) { |
| 57 | if (api.settings.get('floatButtonCorrection')) { |
| 58 | con.log('Open correction'); |
| 59 | page.openCorrectionUi(); |
| 60 | } else { |
| 61 | con.log('Open miniMAL'); |
| 62 | if (j.$('#info-popup').css('display') === 'none') { |
| 63 | document.getElementById('info-popup')!.style.display = 'block'; |
| 64 | hideFloatbutton(true); |
| 65 | if (!j.$('#info-iframe').length) { |
| 66 | createIframe(page); |
| 67 | } else if (typeof minimalObj !== 'undefined' && typeof page.singleObj !== 'undefined') { |
| 68 | minimalObj.fill({ url: page.singleObj.getUrl() }, true); |
| 69 | } |
| 70 | } else { |
| 71 | document.getElementById('info-popup')!.style.display = 'none'; |
| 72 | showFloatbutton(); |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | export function importAssets(head) { |
| 78 | api.storage.injectCssResource( |
nothing calls this directly
no test coverage detected