diff options
author | Ernesto Castellotti <mail@ernestocastellotti.it> | 2023-01-12 01:00:00 +0100 |
---|---|---|
committer | Simone <26844016+simonebortolin@users.noreply.github.com> | 2023-01-12 01:03:22 +0100 |
commit | 678831e295d57fba1dc575fb901f4105102244d8 (patch) | |
tree | ddb28daf8eae73fa3fb73b02ee4e9defd3123449 | |
parent | Allow specify model name in root_lantiq include (diff) | |
download | hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar.gz hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar.bz2 hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar.lz hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar.xz hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.tar.zst hack-gpon.github.io-678831e295d57fba1dc575fb901f4105102244d8.zip |
Diffstat (limited to '')
-rw-r--r-- | _includes/root_lantiq.html | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/_includes/root_lantiq.html b/_includes/root_lantiq.html index 798b266..fd8912c 100644 --- a/_includes/root_lantiq.html +++ b/_includes/root_lantiq.html @@ -54,15 +54,15 @@ let rootStep = [document.getElementById('root-step-1')]; - if ({{include.unlockHuaweiShell}}) { - rootStep.push(document.getElementById('root-step-2')); - } +{% if include.unlockHuaweiShell %} + rootStep.push(document.getElementById('root-step-2')); +{% endif %} let rootStepText = [document.getElementById('root-text-step-1')]; - if ({{include.unlockHuaweiShell}}) { - rootStepText.push(document.getElementById('root-text-step-2')); - } +{% if include.unlockHuaweiShell %} + rootStepText.push(document.getElementById('root-text-step-2')); +{% endif %} rootModal.addEventListener('modal-jtd-close', async function(event) { acontroller.abort(); @@ -105,9 +105,9 @@ async function root({ signal } = {}) { loading("Waiting for the user to choose the port",0); - if ({{include.unlockHuaweiShell}}) { - pause("",1); - } +{% if include.unlockHuaweiShell %} + pause("",1); +{% endif %} let port; try { @@ -139,10 +139,7 @@ return; } - if (!{{include.unlockHuaweiShell}}) { - return; - } - +{% if include.unlockHuaweiShell %} result = await unlockHuaweiShell(port, (msg) => { loading(msg, 1); @@ -156,5 +153,6 @@ if (result) { showSuccess("Congratulations! Step completed.", 1); } +{% endif %} } </script> |