| 1 | export function trackingBarElement() { |
| 2 | const progressDiv = document.createElement('div'); |
| 3 | progressDiv.id = 'malSyncProgress'; |
| 4 | progressDiv.className = 'ms-loading'; |
| 5 | progressDiv.style.cssText = ` |
| 6 | background-color: transparent; |
| 7 | position: absolute; |
| 8 | top: 0; |
| 9 | left: 0; |
| 10 | right: 0; |
| 11 | height: 4px; |
| 12 | `; |
| 13 | |
| 14 | const resumeInnerDiv = document.createElement('div'); |
| 15 | resumeInnerDiv.className = 'ms-progress-resume'; |
| 16 | resumeInnerDiv.style.cssText = ` |
| 17 | border-top: 4px dashed #2980b9; |
| 18 | width: 0%; |
| 19 | height: 100%; |
| 20 | position: absolute; |
| 21 | top: 0; |
| 22 | left: 0; |
| 23 | right: 0; |
| 24 | bottom: 0; |
| 25 | `; |
| 26 | progressDiv.appendChild(resumeInnerDiv); |
| 27 | |
| 28 | const progressInnerDiv = document.createElement('div'); |
| 29 | progressInnerDiv.className = 'ms-progress'; |
| 30 | progressInnerDiv.style.cssText = ` |
| 31 | background-color: #2980b9; |
| 32 | width: 0%; |
| 33 | height: 100%; |
| 34 | transition: width 1s; |
| 35 | position: absolute; |
| 36 | top: 0; |
| 37 | left: 0; |
| 38 | right: 0; |
| 39 | bottom: 0; |
| 40 | `; |
| 41 | progressDiv.appendChild(progressInnerDiv); |
| 42 | |
| 43 | return progressDiv; |
| 44 | } |
| 45 | |
| 46 | export function trackingSyncButtonElement(buttonText: string) { |
| 47 | const syncButton = document.createElement('button'); |