(elmID, type)
| 54 | return; |
| 55 | } |
| 56 | function showElement(elmID, type) { |
| 57 | if (elmID == "popup-custom" || elmID == "popup") { |
| 58 | switch (type) { |
| 59 | case true: |
| 60 | popupModal.show(); |
| 61 | break; |
| 62 | case false: |
| 63 | popupModal.hide(); |
| 64 | break; |
| 65 | } |
| 66 | } |
| 67 | if (elmID == "loading") { |
| 68 | switch (type) { |
| 69 | case true: |
| 70 | loadingModal.show(); |
| 71 | break; |
| 72 | case false: |
| 73 | loadingModal.hide(); |
| 74 | break; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | function showToast(title, message, type = 'info') { |
| 79 | const toast = document.getElementById('toast'); |
| 80 | const toastBody = document.getElementById('toast-body'); |
no test coverage detected