clicking on a device column makes it the active the device

This commit is contained in:
sparks-alec
2023-01-08 23:51:55 -05:00
parent ee3e79bef0
commit 205f407266
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -207,6 +207,7 @@ a {
width: 100%;
height: 100%;
border: 0;
pointer-events: none;
}
.active-device-outline {
padding: 0px;
+3
View File
@@ -168,6 +168,9 @@ function switchDevice(id) {
document.getElementById('all-devices').insertAdjacentHTML('afterbegin', html);
$deviceWrapper = document.getElementById(`device-${i}`);
$deviceWrapper.onclick = function (e) {
switchDevice(i);
};
}
window.switchClass(document.getElementById(id), 'active-device');