From e6bc83ba83152aa8ea24afc905d5f8394081d3f7 Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Fri, 7 Jun 2024 20:59:26 +0200 Subject: Improved UI to make it clear that the browser is not supported (#346) Some users do not understand that the browser does not support WebSerial because on the page https://hack-gpon.org/ont-huawei-ma5671a-ymodem/ pressing the button opens the flash window, with this PR the button is deactivated if the browser is not supported and the the strikethrough out character is applied to button text --- _includes/root_lantiq.html | 2 ++ 1 file changed, 2 insertions(+) (limited to '_includes/root_lantiq.html') diff --git a/_includes/root_lantiq.html b/_includes/root_lantiq.html index fd8912c..4a0bd13 100644 --- a/_includes/root_lantiq.html +++ b/_includes/root_lantiq.html @@ -46,6 +46,8 @@ document.getElementById('start-button').disabled = false; } else { document.getElementById('browser-error').style.display = 'block'; + document.getElementById('start-button').disabled = true; + document.getElementById('start-button').innerHTML=document.getElementById('start-button').innerText.strike(); } const acontroller = new AbortController(); const cs = acontroller.signal; -- cgit v1.2.3