diff --git a/static/icon-map.js b/static/icon-map.js index 87f899b..7edfd6d 100644 --- a/static/icon-map.js +++ b/static/icon-map.js @@ -34,5 +34,10 @@ const iconMap = { '29.97': { src: 'assets/timeturner_2997.png', tooltip: '29.97 frames per second' }, '30.00': { src: 'assets/timeturner_30.png', tooltip: '30.00 frames per second' }, 'default': { src: 'assets/timeturner_25.png', tooltip: 'Unknown frame rate' } + }, + lockRatio: { + 'good': { src: 'assets/timeturner_lockratio_green.png', tooltip: 'Lock ratio is 100%.' }, + 'average': { src: 'assets/timeturner_lockratio_orange.png', tooltip: 'Lock ratio is 90% or higher.' }, + 'bad': { src: 'assets/timeturner_lockratio_red.png', tooltip: 'Lock ratio is below 90%.' } } }; diff --git a/static/index.html b/static/index.html index 3a5f91f..4362a86 100644 --- a/static/index.html +++ b/static/index.html @@ -26,7 +26,7 @@
--:--:--:--
--
-- fps
-Lock Ratio: --%
+Lock Ratio: --%
diff --git a/static/script.js b/static/script.js index 3c63cb7..f0e07ad 100644 --- a/static/script.js +++ b/static/script.js @@ -90,7 +90,18 @@ document.addEventListener('DOMContentLoaded', () => { const frameRateIconInfo = iconMap.frameRate[frameRate] || iconMap.frameRate.default; statusElements.frameRate.innerHTML = `