(score, container, className = '')
| 95 | } |
| 96 | |
| 97 | function plotScoreBar(score, container, className = '') { |
| 98 | const scoreDiv = document.createElement('div'); |
| 99 | scoreDiv.className = 'score ' + className; |
| 100 | scoreDiv.style.width = (score * BAR_WIDTH_PX) + 'px'; |
| 101 | scoreDiv.innerHTML = (score * 100).toFixed(1); |
| 102 | container.appendChild(scoreDiv); |
| 103 | } |
| 104 | |
| 105 | function plotPredictResult(result) { |
| 106 | predictButton.textContent = 'Predict Pitch'; |
no outgoing calls
no test coverage detected