Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02
From version 165.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/09 21:28
on 2024/03/09 21:28
Change comment:
Kanban content updated
To version 259.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/21 13:39
on 2024/04/21 13:39
Change comment:
Uploaded new attachment "room.json", version 1.6
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
-
Objects (1 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,3 @@ 1 -{{kanban width="2 9%" 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":"Item121"},{"title":"Item4"}]},{"id":"board3","title":"Done","color":"yellow","item":[{"title":"Item2"},{"title":"Item7"}]},{"id":"board1","title":"ToDo","color":"red","item":[{"title":"Item5"},{"title":"Item1"}]},{"id":"board4","title":"New Boardblue","item":[{"title":"Item1"}]},{"id":"board5","title":"New Board2","color":"orange","item":[{"title":"Item3"}]},{"id":"board6","title":"New Board03","color":"red","item":[{"title":"Item1"},{"title":"Item1"}]}]1 +{{kanban width="250px" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/room.json?rev=1.2" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}} 2 +[{"id":"rDI01f01o00s00","color":"green","item":[],"title":"rDI01f01o00s00"},{"id":"rDI02f01o00s00","color":"blue","item":[{"title":"person 002 - STRI"},{"title":"person 001 - LHCB"}],"title":"rDI02f01o00s00"},{"id":"rDI03f01o00s00","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"rDI03f01o00s00"},{"id":"rDI05f01o00s00","color":"yellow","item":[{"title":"person 003 - LHCB"},{"title":"person 004 - NUCL"}],"title":"rDI05f01o00s00"},{"id":"rDI08f01o00s00","color":"orange","item":[{"title":"person 119 - HQCD"},{"title":"person 135 - LHCB"},{"title":"person 078 - HQCD"}],"title":"rDI08f01o00s00"},{"id":"rDI09f01o00s00","color":"green","item":[{"title":"person 123 - AUGE"}],"title":"rDI09f01o00s00"},{"id":"rDI10f01o00s00","color":"green","item":[{"title":"person 256 - GRWA"}],"title":"rDI10f01o00s00"},{"id":"rDI11f01o00s00","color":"green","item":[{"title":"person 354 - LACC"}],"title":"rDI11f01o00s00"},{"id":"rDI12f01o00s00","color":"green","item":[{"title":"person 354 - NEXT"}],"title":"rDI12f01o00s00"}] 3 3 {{/kanban}}
- room.json
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.RicardoJulioRodriguezFernandez - Size
-
... ... @@ -1,0 +1,1 @@ 1 +2.7 KB - Content
-
... ... @@ -1,0 +1,162 @@ 1 +[ 2 + { 3 + "id": "rDI01f01o00s00", 4 + "color": "green", 5 + "item": [ 6 + { 7 + "title": "person 001 - LHCB" 8 + } 9 + ], 10 + "title": "rDI01f01o00s00" 11 + }, 12 + { 13 + "id": "rDI02f01o00s00", 14 + "color": "blue", 15 + "item": [ 16 + { 17 + "title": "person 002 - STRI" 18 + } 19 + ], 20 + "title": "rDI02f01o00s00" 21 + }, 22 + { 23 + "id": "rDI03f01o00s00", 24 + "color": "red", 25 + "item": [ 26 + { 27 + "title": "person 003 - LHCB" 28 + } 29 + ], 30 + "title": "rDI03f01o00s00" 31 + }, 32 + { 33 + "id": "rDI04f01o00s00", 34 + "color": "red", 35 + "item": [ 36 + { 37 + "title": "person 003 - LHCB" 38 + } 39 + ], 40 + "title": "rDI04f01o00s00" 41 + }, 42 + { 43 + "id": "rDI05f01o00s00", 44 + "color": "red", 45 + "item": [ 46 + { 47 + "title": "person 003 - LHCB" 48 + } 49 + ], 50 + "title": "rDI05f01o00s00" 51 + }, 52 + { 53 + "id": "rDI06f01o00s00", 54 + "color": "yellow", 55 + "item": [ 56 + { 57 + "title": "person 003 - LHCB" 58 + }, 59 + { 60 + "title": "person 004 - NUCL" 61 + } 62 + ], 63 + "title": "rDI06f01o00s00" 64 + }, 65 + { 66 + "id": "rDI07f01o00s00", 67 + "color": "red", 68 + "item": [ 69 + { 70 + "title": "person 003 - LHCB" 71 + } 72 + ], 73 + "title": "rDI07f01o00s00" 74 + }, 75 + { 76 + "id": "rDI08f01o00s00", 77 + "color": "orange", 78 + "item": [ 79 + { 80 + "title": "person 119 - HQCD" 81 + }, 82 + { 83 + "title": "person 135 - LHCB" 84 + }, 85 + { 86 + "title": "person 078 - HQCD" 87 + } 88 + ], 89 + "title": "rDI08f01o00s00" 90 + }, 91 + { 92 + "id": "rDI09f01o00s00", 93 + "color": "green", 94 + "item": [ 95 + { 96 + "title": "person 123 - AUGE" 97 + } 98 + ], 99 + "title": "rDI09f01o00s00" 100 + }, 101 + { 102 + "id": "rDI10f01o00s00", 103 + "color": "green", 104 + "item": [ 105 + { 106 + "title": "person 256 - GRWA" 107 + } 108 + ], 109 + "title": "rDI10f01o00s00" 110 + }, 111 + { 112 + "id": "rDI11f01o00s00", 113 + "color": "green", 114 + "item": [ 115 + { 116 + "title": "person 354 - LACC" 117 + } 118 + ], 119 + "title": "rDI11f01o00s00" 120 + }, 121 + { 122 + "id": "rDI12f01o00s00", 123 + "color": "green", 124 + "item": [ 125 + { 126 + "title": "person 354 - NEXT" 127 + } 128 + ], 129 + "title": "rDI12f01o00s00" 130 + } 131 + { 132 + "id": "rDI13f01o00s00", 133 + "color": "red", 134 + "item": [ 135 + { 136 + "title": "person 003 - LHCB" 137 + } 138 + ], 139 + "title": "rDI13f01o00s00" 140 + }, 141 + { 142 + "id": "rDI14f01o00s00", 143 + "color": "red", 144 + "item": [ 145 + { 146 + "title": "person 003 - LHCB" 147 + } 148 + ], 149 + "title": "rDI14f01o00s00" 150 + }, 151 + { 152 + "id": "rDT07f01o00s00", 153 + "color": "red", 154 + "item": [ 155 + { 156 + "title": "person 003 - LHCB" 157 + } 158 + ], 159 + "title": "rDT07f01o00s00" 160 + }, 161 + 162 +]
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,0 +1,113 @@ 1 +setTimeout(changeStyles, 500); 2 + 3 +function changeStyles() { 4 + const titleElements = document.getElementsByClassName('kanban-item-title'); 5 + const headerElements = document.getElementsByClassName('kanban-board-header'); 6 + const titleContainers = document.getElementsByClassName('kanban-item'); 7 + 8 + const kanbanContainer = document.querySelector('.kanban-container'); 9 + if (kanbanContainer) { 10 + kanbanContainer.style.display = "flex"; 11 + kanbanContainer.style.justifyContent = "left" 12 + kanbanContainer.style.alignItems = "start" 13 + kanbanContainer.style.flexWrap = "wrap" 14 + } 15 + 16 + for (let i = 0; i < titleElements.length; i++) { 17 + const titleElement = titleElements[i]; 18 + titleElement.style.padding = "2px 4px"; 19 + titleElement.style.borderRadius = "4px"; 20 + 21 + if (titleElement.textContent.includes('LHCB')) { 22 + titleElement.style.color = 'white'; 23 + titleElement.style.backgroundColor = 'red'; 24 + const parentElement = titleElement.closest('.kanban-item'); 25 + if (parentElement) { 26 + parentElement.style.backgroundColor = 'yellow'; 27 + } 28 + } 29 + if (titleElement.textContent.includes('STRI')) { 30 + titleElement.style.color = 'white'; 31 + titleElement.style.backgroundColor = 'navy'; 32 + const parentElement = titleElement.closest('.kanban-item'); 33 + if (parentElement) { 34 + parentElement.style.backgroundColor = '#FFDB58'; 35 + } 36 + } 37 + if (titleElement.textContent.includes('AUGE')) { 38 + titleElement.style.color = 'white'; 39 + titleElement.style.backgroundColor = '#FF7F50'; 40 + const parentElement = titleElement.closest('.kanban-item'); 41 + if (parentElement) { 42 + parentElement.style.backgroundColor = '#008080'; 43 + } 44 + } 45 + if (titleElement.textContent.includes('HQCD')) { 46 + titleElement.style.color = 'white'; 47 + titleElement.style.backgroundColor = 'crimson'; 48 + const parentElement = titleElement.closest('.kanban-item'); 49 + if (parentElement) { 50 + parentElement.style.backgroundColor = '#808000'; 51 + } 52 + } 53 + if (titleElement.textContent.includes('NUCL')) { 54 + titleElement.style.color = 'white'; 55 + titleElement.style.backgroundColor = '#E2725B'; 56 + const parentElement = titleElement.closest('.kanban-item'); 57 + if (parentElement) { 58 + parentElement.style.backgroundColor = '#708090'; 59 + } 60 + } 61 + if (titleElement.textContent.includes('GRWA')) { 62 + titleElement.style.color = 'white'; 63 + titleElement.style.backgroundColor = '#FF00FF'; 64 + const parentElement = titleElement.closest('.kanban-item'); 65 + if (parentElement) { 66 + parentElement.style.backgroundColor = '#F4C430'; 67 + } 68 + } 69 + if (titleElement.textContent.includes('NEXT')) { 70 + titleElement.style.color = 'white'; 71 + titleElement.style.backgroundColor = '#4B0082'; 72 + const parentElement = titleElement.closest('.kanban-item'); 73 + if (parentElement) { 74 + parentElement.style.backgroundColor = '#E0115F'; 75 + } 76 + } 77 + if (titleElement.textContent.includes('LACC')) { 78 + titleElement.style.color = 'white'; 79 + titleElement.style.backgroundColor = '#87CEEB'; 80 + const parentElement = titleElement.closest('.kanban-item'); 81 + if (parentElement) { 82 + parentElement.style.backgroundColor = '#98FF98'; 83 + } 84 + } 85 + } 86 + 87 + for (let i = 0; i < headerElements.length; i++) { 88 + const element = headerElements[i]; 89 + if (element.innerHTML.includes('f02')) { 90 + for (let j = 0; j < element.classList.length; j++) { 91 + if (/kanban-header-\w+/.test(element.classList[j])) { 92 + element.classList.remove(element.classList[j]); 93 + element.style.backgroundColor = '#98FF98'; 94 + break; 95 + } 96 + } 97 + } 98 + } 99 + 100 + for (let i = 0; i < headerElements.length; i++) { 101 + const element = headerElements[i]; 102 + if (element.innerHTML.includes('f01')) { 103 + for (let j = 0; j < element.classList.length; j++) { 104 + if (/kanban-header-\w+/.test(element.classList[j])) { 105 + element.classList.remove(element.classList[j]); 106 + element.style.backgroundColor = '#FF7F50'; 107 + break; 108 + } 109 + } 110 + } 111 + } 112 +}; 113 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Styling boards - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage
- XWiki.XWikiComments[0]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.RicardoJulioRodriguezFernandez - Comment
-
... ... @@ -1,0 +1,1 @@ 1 +https://css-tricks.com/snippets/css/a-guide-to-flexbox/ - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2024-03-13 17:21:41.315