mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-11 16:53:40 +00:00
clicking on a device column makes it the active the device
This commit is contained in:
@@ -207,6 +207,7 @@ a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.active-device-outline {
|
||||
padding: 0px;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user