Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02
From version 236.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/13 16:36
on 2024/03/13 16:36
Change comment:
Kanban content updated
To 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
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Objects (1 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,3 @@ 1 -{{kanban width="2 35px" source="https://portal.igfae.usc.es/xwiki/bin/view/Towards%20JSON/Rooms/?outputSyntax=plain&xpage=plain" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}2 -[{"id":" room 01, floor1","item":[{"title":"person001 - LHCB"}],"color":"green","title":"Room#: 01, Floor#: 1"},{"id":"room02, floor1","item":[{"title":"person002 - STRI"}],"color":"blue","title":"Room#: 02,Floor#: 1"},{"id":"room 03, floor 2","item":[{"title":"person003 - LHCB"}],"color":"red","title":"Room#:03, Floor#: 2"},{"id":"room 19, flooritem":[{"title":"person354 - LACC"}],"color":"green","title":"Room#: 19, Floor#: 1"},{"id":"room 05,floor 2","item":[{"title":"person003 - LHCB"},{"title":"person004 - NUCL"}],"color":"yellow","title":"Room#:05, Floor#:2"},{"id":"room 08, floor1","item":[{"title":"person119 - HQCD"},{"title":"person 135- LHCB"},{"title":"person078 - HQCD"}],"color":"orange","title":"Room#: 08, Floor#: 1"},{"id":"room 16, floor 1","item":[{"title":"person123- AUGE"}],"color":"green","title":"Room#: 16, Floor#: 1"},{"id":"room 18, floor1","item":[{"title":"person256 - GRWA"}],"color":"green","title":"Room#: 18, Floor#: 1"},{"id":"room 30,floor 1","item":[{"title":"person354 - NEXT"}],"color":"green","title":"Room#:30, Floor#:1"}]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":"red","item":[{"title":"Item 1"},{"title":"Item 1"}]}] 3 3 {{/kanban}}
- room.json
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.RicardoJulioRodriguezFernandez - Size
-
... ... @@ -1,1 +1,0 @@ 1 -1.8 KB - Content
-
... ... @@ -1,101 +1,0 @@ 1 -[ 2 - { 3 - "id": "room 01, floor 1", 4 - "color": "green", 5 - "item": [ 6 - { 7 - "title": "person 001 - LHCB" 8 - } 9 - ], 10 - "title": "Room#: 01, Floor#: 1" 11 - }, 12 - { 13 - "id": "room 02, floor 1", 14 - "color": "blue", 15 - "item": [ 16 - { 17 - "title": "person 002 - STRI" 18 - } 19 - ], 20 - "title": "Room#: 02, Floor#: 1" 21 - }, 22 - { 23 - "id": "room 03, floor 2", 24 - "color": "red", 25 - "item": [ 26 - { 27 - "title": "person 003 - LHCB" 28 - } 29 - ], 30 - "title": "Room#: 03, Floor#: 2" 31 - }, 32 - { 33 - "id": "room 05, floor 2", 34 - "color": "yellow", 35 - "item": [ 36 - { 37 - "title": "person 003 - LHCB" 38 - }, 39 - { 40 - "title": "person 004 - NUCL" 41 - } 42 - ], 43 - "title": "Room#: 05, Floor#: 2" 44 - }, 45 - { 46 - "id": "room 08, floor 1", 47 - "color": "orange", 48 - "item": [ 49 - { 50 - "title": "person 119 - HQCD" 51 - }, 52 - { 53 - "title": "person 135 - LHCB" 54 - }, 55 - { 56 - "title": "person 078 - HQCD" 57 - } 58 - ], 59 - "title": "Room#: 08, Floor#: 1" 60 - }, 61 - { 62 - "id": "room 16, floor 1", 63 - "color": "green", 64 - "item": [ 65 - { 66 - "title": "person 123 - AUGE" 67 - } 68 - ], 69 - "title": "Room#: 16, Floor#: 1" 70 - }, 71 - { 72 - "id": "room 18, floor 1", 73 - "color": "green", 74 - "item": [ 75 - { 76 - "title": "person 256 - GRWA" 77 - } 78 - ], 79 - "title": "Room#: 18, Floor#: 1" 80 - }, 81 - { 82 - "id": "room 19, floor 1", 83 - "color": "green", 84 - "item": [ 85 - { 86 - "title": "person 354 - LACC" 87 - } 88 - ], 89 - "title": "Room#: 19, Floor#: 1" 90 - }, 91 - { 92 - "id": "room 30, floor 1", 93 - "color": "green", 94 - "item": [ 95 - { 96 - "title": "person 354 - NEXT" 97 - } 98 - ], 99 - "title": "Room#: 30, Floor#: 1" 100 - } 101 -]
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,114 +1,0 @@ 1 - 2 -const myTimeout = setTimeout(changeStyles, 500); 3 - 4 -function changeStyles() { 5 - const titleElements = document.getElementsByClassName('kanban-item-title'); 6 - const headerElements = document.getElementsByClassName('kanban-board-header'); 7 - const titleContainers = document.getElementsByClassName('kanban-item'); 8 - 9 - const kanbanContainer = document.querySelector('.kanban-container'); 10 - if (kanbanContainer) { 11 - kanbanContainer.style.display = "flex"; 12 - kanbanContainer.style.justifyContent = "space-around" 13 - kanbanContainer.style.alignItems = "start" 14 - kanbanContainer.style.flexWrap = "wrap" 15 - } 16 - 17 - for (let i = 0; i < titleElements.length; i++) { 18 - const titleElement = titleElements[i]; 19 - titleElement.style.padding = "2px 4px"; 20 - titleElement.style.borderRadius = "4px"; 21 - 22 - if (titleElement.textContent.includes('LHCB')) { 23 - titleElement.style.color = 'white'; 24 - titleElement.style.backgroundColor = 'red'; 25 - const parentElement = titleElement.closest('.kanban-item'); 26 - if (parentElement) { 27 - parentElement.style.backgroundColor = 'yellow'; 28 - } 29 - } 30 - if (titleElement.textContent.includes('STRI')) { 31 - titleElement.style.color = 'white'; 32 - titleElement.style.backgroundColor = 'navy'; 33 - const parentElement = titleElement.closest('.kanban-item'); 34 - if (parentElement) { 35 - parentElement.style.backgroundColor = '#FFDB58'; 36 - } 37 - } 38 - if (titleElement.textContent.includes('AUGE')) { 39 - titleElement.style.color = 'white'; 40 - titleElement.style.backgroundColor = '#FF7F50'; 41 - const parentElement = titleElement.closest('.kanban-item'); 42 - if (parentElement) { 43 - parentElement.style.backgroundColor = '#008080'; 44 - } 45 - } 46 - if (titleElement.textContent.includes('HQCD')) { 47 - titleElement.style.color = 'white'; 48 - titleElement.style.backgroundColor = 'crimson'; 49 - const parentElement = titleElement.closest('.kanban-item'); 50 - if (parentElement) { 51 - parentElement.style.backgroundColor = '#808000'; 52 - } 53 - } 54 - if (titleElement.textContent.includes('NUCL')) { 55 - titleElement.style.color = 'white'; 56 - titleElement.style.backgroundColor = '#E2725B'; 57 - const parentElement = titleElement.closest('.kanban-item'); 58 - if (parentElement) { 59 - parentElement.style.backgroundColor = '#708090'; 60 - } 61 - } 62 - if (titleElement.textContent.includes('GRWA')) { 63 - titleElement.style.color = 'white'; 64 - titleElement.style.backgroundColor = '#FF00FF'; 65 - const parentElement = titleElement.closest('.kanban-item'); 66 - if (parentElement) { 67 - parentElement.style.backgroundColor = '#F4C430'; 68 - } 69 - } 70 - if (titleElement.textContent.includes('NEXT')) { 71 - titleElement.style.color = 'white'; 72 - titleElement.style.backgroundColor = '#4B0082'; 73 - const parentElement = titleElement.closest('.kanban-item'); 74 - if (parentElement) { 75 - parentElement.style.backgroundColor = '#E0115F'; 76 - } 77 - } 78 - if (titleElement.textContent.includes('LACC')) { 79 - titleElement.style.color = 'white'; 80 - titleElement.style.backgroundColor = '#87CEEB'; 81 - const parentElement = titleElement.closest('.kanban-item'); 82 - if (parentElement) { 83 - parentElement.style.backgroundColor = '#98FF98'; 84 - } 85 - } 86 - } 87 - 88 - for (let i = 0; i < headerElements.length; i++) { 89 - const element = headerElements[i]; 90 - if (element.innerHTML.includes('Floor#: 2')) { 91 - for (let j = 0; j < element.classList.length; j++) { 92 - if (/kanban-header-\w+/.test(element.classList[j])) { 93 - element.classList.remove(element.classList[j]); 94 - element.style.backgroundColor = '#98FF98'; 95 - break; 96 - } 97 - } 98 - } 99 - } 100 - 101 - for (let i = 0; i < headerElements.length; i++) { 102 - const element = headerElements[i]; 103 - if (element.innerHTML.includes('Floor#: 1')) { 104 - for (let j = 0; j < element.classList.length; j++) { 105 - if (/kanban-header-\w+/.test(element.classList[j])) { 106 - element.classList.remove(element.classList[j]); 107 - element.style.backgroundColor = '#FF7F50'; 108 - break; 109 - } 110 - } 111 - } 112 - } 113 -}; 114 - - Name
-
... ... @@ -1,1 +1,0 @@ 1 -Styling boards - Parse content
-
... ... @@ -1,1 +1,0 @@ 1 -No - Use this extension
-
... ... @@ -1,1 +1,0 @@ 1 -currentPage
- XWiki.XWikiRights[1]
-
- Allow/Deny
-
... ... @@ -1,1 +1,0 @@ 1 -Allow - Levels
-
... ... @@ -1,1 +1,0 @@ 1 -view - Users
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest