Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31
From version 178.1
edited by Abdullah Sharifi
on 2024/03/11 19:38
on 2024/03/11 19:38
Change comment:
There is no comment for this version
To version 171.1
edited by Abdullah Sharifi
on 2024/03/11 19:24
on 2024/03/11 19:24
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -3,12 +3,12 @@ 3 3 const headerElements = document.getElementsByClassName('kanban-board-header'); 4 4 const titleContainers = document.getElementsByClassName('kanban-item'); 5 5 6 - for (let i = 0; i < titleElements.length; i++) { 6 + /* for (let i = 0; i < titleElements.length; i++) { 7 7 const titleElement = titleElements[i]; 8 8 titleElement.style.padding = "2px 4px"; 9 9 titleElement.style.borderRadius = "4px"; 10 10 11 - if (titleElement.textContent.includes(' LHCB')) {11 + if (titleElement.textContent.includes('2')) { 12 12 titleElement.style.color = 'white'; 13 13 titleElement.style.backgroundColor = 'red'; 14 14 const parentElement = titleElement.closest('.kanban-item'); ... ... @@ -16,63 +16,7 @@ 16 16 parentElement.style.backgroundColor = 'yellow'; 17 17 } 18 18 } 19 - if (titleElement.textContent.includes('STRI')) { 20 - titleElement.style.color = 'white'; 21 - titleElement.style.backgroundColor = 'navy'; 22 - const parentElement = titleElement.closest('.kanban-item'); 23 - if (parentElement) { 24 - parentElement.style.backgroundColor = '#FFDB58'; 25 - } 26 - } 27 - if (titleElement.textContent.includes('AUGE')) { 28 - titleElement.style.color = 'white'; 29 - titleElement.style.backgroundColor = '#FF7F50'; 30 - const parentElement = titleElement.closest('.kanban-item'); 31 - if (parentElement) { 32 - parentElement.style.backgroundColor = '#008080'; 33 - } 34 - } 35 - if (titleElement.textContent.includes('HQCD')) { 36 - titleElement.style.color = 'white'; 37 - titleElement.style.backgroundColor = 'crimson'; 38 - const parentElement = titleElement.closest('.kanban-item'); 39 - if (parentElement) { 40 - parentElement.style.backgroundColor = '#808000'; 41 - } 42 - } 43 - if (titleElement.textContent.includes('NUCL')) { 44 - titleElement.style.color = 'white'; 45 - titleElement.style.backgroundColor = '#E2725B'; 46 - const parentElement = titleElement.closest('.kanban-item'); 47 - if (parentElement) { 48 - parentElement.style.backgroundColor = '#708090'; 49 - } 50 - } 51 - if (titleElement.textContent.includes('GRWA')) { 52 - titleElement.style.color = 'white'; 53 - titleElement.style.backgroundColor = '#FF00FF'; 54 - const parentElement = titleElement.closest('.kanban-item'); 55 - if (parentElement) { 56 - parentElement.style.backgroundColor = '#F4C430'; 57 - } 58 - } 59 - if (titleElement.textContent.includes('NEXT')) { 60 - titleElement.style.color = 'white'; 61 - titleElement.style.backgroundColor = '#4B0082'; 62 - const parentElement = titleElement.closest('.kanban-item'); 63 - if (parentElement) { 64 - parentElement.style.backgroundColor = '#E0115F'; 65 - } 66 - } 67 - if (titleElement.textContent.includes('LACC')) { 68 - titleElement.style.color = 'white'; 69 - titleElement.style.backgroundColor = '#87CEEB'; 70 - const parentElement = titleElement.closest('.kanban-item'); 71 - if (parentElement) { 72 - parentElement.style.backgroundColor = '#98FF98'; 73 - } 74 - } 75 - } 19 + } */ 76 76 77 77 for (let i = 0; i < headerElements.length; i++) { 78 78 const element = headerElements[i]; ... ... @@ -80,7 +80,7 @@ 80 80 for (let j = 0; j < element.classList.length; j++) { 81 81 if (/kanban-header-\w+/.test(element.classList[j])) { 82 82 element.classList.remove(element.classList[j]); 83 - element.style.backgroundColor = ' #98FF98';27 + element.style.backgroundColor = 'crimson'; 84 84 break; 85 85 } 86 86 } ... ... @@ -93,7 +93,7 @@ 93 93 for (let j = 0; j < element.classList.length; j++) { 94 94 if (/kanban-header-\w+/.test(element.classList[j])) { 95 95 element.classList.remove(element.classList[j]); 96 - element.style.backgroundColor = ' #FF7F50';40 + element.style.backgroundColor = 'royalblue'; 97 97 break; 98 98 } 99 99 }