You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
482 B
16 lines
482 B
function rotateCurrentElement() {
|
|
let next = document.querySelector('#open table tbody tr');
|
|
let currentTarget = document.querySelector('#current table tbody');
|
|
let current = currentTarget.querySelector("tr");
|
|
let target = document.querySelector('#processed table tbody');
|
|
|
|
if(current){
|
|
current.remove();
|
|
target.insertAdjacentElement("afterbegin", current);
|
|
}
|
|
|
|
if(next){
|
|
next.remove();
|
|
currentTarget.append(next);
|
|
}
|
|
}
|
|
|