Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31
From version 169.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/11 19:05
on 2024/03/11 19:05
Change comment:
Uploaded new attachment "room.json", version 1.2
To version 175.1
edited by Abdullah Sharifi
on 2024/03/11 19:31
on 2024/03/11 19:31
Change comment:
There is no comment for this version
Summary
-
Page properties (2 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 - Content
-
... ... @@ -1,3 +1,2 @@ 1 -{{kanban width="29%" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/jsonformatter.txt?rev=1.1" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}} 2 -[{"id":"board2","title":"Working","color":"green","item":[{"title":"Item 121"},{"title":"Item 4"}]},{"id":"board3","title":"Done","color":"yellow","item":[{"title":"Item 2"},{"title":"Item 7"}]},{"id":"board1","title":"To Do","color":"red","item":[{"title":"Item 5"},{"title":"Item 1"}]},{"id":"board4","title":"New Board 01","color":"blue","item":[{"title":"Item 1"}]},{"id":"board5","title":"New Board 02","color":"orange","item":[{"title":"Item 3"}]},{"id":"board6","title":"New Board 03","color":"yellow","item":[{"title":"Item 1"},{"title":"Item 1"}]}] 1 +{{kanban width="29%" source="https://portal.igfae.usc.es/xwiki/bin/downloadrev/Kanban%20playground%20for%20Ricardo/WebHome/room.json?rev=1.2" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}} 3 3 {{/kanban}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,0 +1,55 @@ 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('LHCB')) { 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 + 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 + } 28 + 29 + for (let i = 0; i < headerElements.length; i++) { 30 + const element = headerElements[i]; 31 + if (element.innerHTML.includes('Floor#: 2')) { 32 + for (let j = 0; j < element.classList.length; j++) { 33 + if (/kanban-header-\w+/.test(element.classList[j])) { 34 + element.classList.remove(element.classList[j]); 35 + element.style.backgroundColor = '#98FF98'; 36 + break; 37 + } 38 + } 39 + } 40 + } 41 + 42 + for (let i = 0; i < headerElements.length; i++) { 43 + const element = headerElements[i]; 44 + if (element.innerHTML.includes('Floor#: 1')) { 45 + for (let j = 0; j < element.classList.length; j++) { 46 + if (/kanban-header-\w+/.test(element.classList[j])) { 47 + element.classList.remove(element.classList[j]); 48 + element.style.backgroundColor = '#FF7F50'; 49 + break; 50 + } 51 + } 52 + } 53 + } 54 +}; 55 + - 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