Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31
From version 305.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 17:08
on 2024/04/28 17:08
Change comment:
Kanban content updated
To version 308.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 17:18
on 2024/04/28 17:18
Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,4 +1,4 @@ 1 -setTimeout(changeStyles, 500);1 +setTimeout(changeStyles, 1000); 2 2 3 3 function changeStyles() { 4 4 const titleElements = document.getElementsByClassName('kanban-item-title'); ... ... @@ -13,7 +13,7 @@ 13 13 kanbanContainer.style.flexWrap = "wrap" 14 14 } 15 15 16 - 16 + for (let i = 0; i < titleElements.length; i++) { 17 17 const titleElement = titleElements[i]; 18 18 titleElement.style.padding = "2px 4px"; 19 19 titleElement.style.borderRadius = "4px"; ... ... @@ -34,7 +34,7 @@ 34 34 parentElement.style.backgroundColor = '#FFDB58'; 35 35 } 36 36 } 37 - if (titleElement.textContent.includes('AUGE')) { 37 + if (titleElement.textContent.includes('AUGE')) { 38 38 titleElement.style.color = 'white'; 39 39 titleElement.style.backgroundColor = '#FF7F50'; 40 40 const parentElement = titleElement.closest('.kanban-item'); ... ... @@ -42,7 +42,7 @@ 42 42 parentElement.style.backgroundColor = '#008080'; 43 43 } 44 44 } 45 - if (titleElement.textContent.includes('HQCD')) { 45 + if (titleElement.textContent.includes('HQCD')) { 46 46 titleElement.style.color = 'white'; 47 47 titleElement.style.backgroundColor = 'crimson'; 48 48 const parentElement = titleElement.closest('.kanban-item'); ... ... @@ -50,7 +50,7 @@ 50 50 parentElement.style.backgroundColor = '#808000'; 51 51 } 52 52 } 53 - if (titleElement.textContent.includes('NUCL')) { 53 + if (titleElement.textContent.includes('NUCL')) { 54 54 titleElement.style.color = 'white'; 55 55 titleElement.style.backgroundColor = '#E2725B'; 56 56 const parentElement = titleElement.closest('.kanban-item'); ... ... @@ -58,7 +58,7 @@ 58 58 parentElement.style.backgroundColor = '#708090'; 59 59 } 60 60 } 61 - if (titleElement.textContent.includes('GRWA')) { 61 + if (titleElement.textContent.includes('GRWA')) { 62 62 titleElement.style.color = 'white'; 63 63 titleElement.style.backgroundColor = '#FF00FF'; 64 64 const parentElement = titleElement.closest('.kanban-item'); ... ... @@ -97,7 +97,7 @@ 97 97 } 98 98 } 99 99 100 - for (let i = 0; i < headerElements.length; i++) { 100 + for (let i = 0; i < headerElements.length; i++) { 101 101 const element = headerElements[i]; 102 102 if (element.innerHTML.includes('o01')) { 103 103 for (let j = 0; j < element.classList.length; j++) { ... ... @@ -109,5 +109,17 @@ 109 109 } 110 110 } 111 111 } 112 -}; 113 113 113 + for (let i = 0; i < headerElements.length; i++) { 114 + const element = headerElements[i]; 115 + if (element.innerHTML.includes('o04')) { 116 + for (let j = 0; j < element.classList.length; j++) { 117 + if (/kanban-header-\w+/.test(element.classList[j])) { 118 + element.classList.remove(element.classList[j]); 119 + element.style.backgroundColor = '#65b2c1'; 120 + break; 121 + } 122 + } 123 + } 124 + } 125 +};
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -1,3 +1,3 @@ 1 1 #xwikicontent { 2 - background-color: lightBlue;2 + background-color: white; 3 3 }