diff --git a/firmware.php b/firmware.php index 9b008f5..ce590dc 100644 --- a/firmware.php +++ b/firmware.php @@ -99,7 +99,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = 'router_images/keinbild.jpg' img_router_back.src = 'router_images/keinbild.jpg' @@ -147,7 +147,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = 'router_images/keinbild.jpg' img_router_back.src = 'router_images/keinbild.jpg' @@ -184,7 +184,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' img_router_front.src = newImageFront img_router_back.src = newImageBack @@ -244,7 +244,7 @@ $community_id = $_REQUEST['id']; } s6.href = '#' s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add('btn-primary', 'disabled') + s6.classList.add('btn-primary', 'disabled') s6.textContent = 'Download Firmware' } function populateE () { @@ -256,46 +256,46 @@ $community_id = $_REQUEST['id']; if (s5.value.lastIndexOf('Jbeta') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 4)) link = router_json[id].betafactorylink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Jbroken') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].brokenfactorylink - linkclass = ' btn-danger' + linkclass = 'btn-danger' } if (s5.value.lastIndexOf('Jexp') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 3)) link = router_json[id].experimentalfactorylink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Jstable') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].stablefactorylink - linkclass = ' btn-success' + linkclass = 'btn-success' } if (s5.value.lastIndexOf('Nbeta') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 4)) link = router_json[id].betasysupgradelink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Nbroken') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].brokensysupgradelink - linkclass = ' btn-danger' + linkclass = 'btn-danger' } if (s5.value.lastIndexOf('Nexp') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 3)) link = router_json[id].experimentalsysupgradelink - linkclass = ' btn-warning' + linkclass = 'btn-warning' } if (s5.value.lastIndexOf('Nstable') != -1) { id = parseInt(s5.value.slice(0, s5.value.length - 6)) link = router_json[id].stablesysupgradelink - linkclass = ' btn-success' + linkclass = 'btn-success' } s6.href = link s6.classList.remove('disabled', 'btn-primary', 'btn-danger', 'btn-warning', 'btn-success') - s6.className.add(linkclass) + s6.classList.add(linkclass) s6.textContent = 'Download Firmware' } @@ -349,7 +349,7 @@ $community_id = $_REQUEST['id'];