Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31
From version 170.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/11 19:05
on 2024/03/11 19:05
Change comment:
There is no comment for this version
To version 172.1
edited by Abdullah Sharifi
on 2024/03/11 19:26
on 2024/03/11 19:26
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. RicardoJulioRodriguezFernandez1 +XWiki.AbdullahSharifi
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,0 +1,47 @@ 1 +window.onload = function() { 2 + const titleElements = document.getElementsByClassName('kanban-item-title'); 3 + const headerElements = document.getElementsByClassName('kanban-board-header'); 4 + const titleContainers = document.getElementsByClassName('kanban-item'); 5 + 6 + /* for (let i = 0; i < titleElements.length; i++) { 7 + const titleElement = titleElements[i]; 8 + titleElement.style.padding = "2px 4px"; 9 + titleElement.style.borderRadius = "4px"; 10 + 11 + if (titleElement.textContent.includes('2')) { 12 + titleElement.style.color = 'white'; 13 + titleElement.style.backgroundColor = 'red'; 14 + const parentElement = titleElement.closest('.kanban-item'); 15 + if (parentElement) { 16 + parentElement.style.backgroundColor = 'yellow'; 17 + } 18 + } 19 + } */ 20 + 21 + for (let i = 0; i < headerElements.length; i++) { 22 + const element = headerElements[i]; 23 + if (element.innerHTML.includes('Floor#: 2')) { 24 + for (let j = 0; j < element.classList.length; j++) { 25 + if (/kanban-header-\w+/.test(element.classList[j])) { 26 + element.classList.remove(element.classList[j]); 27 + element.style.backgroundColor = '#E6E6FA'; 28 + break; 29 + } 30 + } 31 + } 32 + } 33 + 34 + for (let i = 0; i < headerElements.length; i++) { 35 + const element = headerElements[i]; 36 + if (element.innerHTML.includes('Floor#: 1')) { 37 + for (let j = 0; j < element.classList.length; j++) { 38 + if (/kanban-header-\w+/.test(element.classList[j])) { 39 + element.classList.remove(element.classList[j]); 40 + element.style.backgroundColor = '#FFE5B4'; 41 + break; 42 + } 43 + } 44 + } 45 + } 46 +}; 47 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Change background Color - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage