Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02
From version 213.1
edited by Abdullah Sharifi
on 2024/03/12 17:00
on 2024/03/12 17:00
Change comment:
There is no comment for this version
To 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
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. AbdullahSharifi1 +XWiki.RicardoJulioRodriguezFernandez - 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":"room 02, floor 1","item":[{"title":"person002- STRI"}],"color":"blue","title":"Room#:02, Floor#: 1"},{"id":"room 03, floor2","item":[{"title":"person003 - LHCB"}],"color":"red","title":"Room#: 03, Floor#: 2"},{"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":"person135 - LHCB"},{"title":"person 078 - HQCD"}],"color":"orange","title":"Room#:08, Floor#:1"},{"id":"room 16, floor1","item":[{"title":"person123 - AUGE"}],"color":"green","title":"Room#:16, Floor#:1"},{"id":"room 30, floor1","item":[{"title":"person 354 - NEXT"}],"color":"green","title":"Room#:30, Floor#: 1"},{"id":"room 18, floor1","item":[{"title":"person256 - GRWA"}],"color":"green","title":"Room#: 18, Floor#: 1"},{"id":"room 19, floor 1","item":[{"title":"person354 - LACC"}],"color":"green","title":"Room#:19, 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":"yellow","item":[{"title":"Item 1"},{"title":"Item 1"}]}] 3 3 {{/kanban}}
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,109 +1,0 @@ 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 - const kanbanContainer = document.querySelector('.kanban-container'); 7 - kanbanContainer.style.display = "flex"; 8 - kanbanContainer.style.justifyContent = "space-between" 9 - kanbanContainer.style.alignItems = "start" 10 - kanbanContainer.style.flexWrap = "wrap" 11 - 12 - for (let i = 0; i < titleElements.length; i++) { 13 - const titleElement = titleElements[i]; 14 - titleElement.style.padding = "2px 4px"; 15 - titleElement.style.borderRadius = "4px"; 16 - 17 - if (titleElement.textContent.includes('LHCB')) { 18 - titleElement.style.color = 'white'; 19 - titleElement.style.backgroundColor = 'red'; 20 - const parentElement = titleElement.closest('.kanban-item'); 21 - if (parentElement) { 22 - parentElement.style.backgroundColor = 'yellow'; 23 - } 24 - } 25 - if (titleElement.textContent.includes('STRI')) { 26 - titleElement.style.color = 'white'; 27 - titleElement.style.backgroundColor = 'navy'; 28 - const parentElement = titleElement.closest('.kanban-item'); 29 - if (parentElement) { 30 - parentElement.style.backgroundColor = '#FFDB58'; 31 - } 32 - } 33 - if (titleElement.textContent.includes('AUGE')) { 34 - titleElement.style.color = 'white'; 35 - titleElement.style.backgroundColor = '#FF7F50'; 36 - const parentElement = titleElement.closest('.kanban-item'); 37 - if (parentElement) { 38 - parentElement.style.backgroundColor = '#008080'; 39 - } 40 - } 41 - if (titleElement.textContent.includes('HQCD')) { 42 - titleElement.style.color = 'white'; 43 - titleElement.style.backgroundColor = 'crimson'; 44 - const parentElement = titleElement.closest('.kanban-item'); 45 - if (parentElement) { 46 - parentElement.style.backgroundColor = '#808000'; 47 - } 48 - } 49 - if (titleElement.textContent.includes('NUCL')) { 50 - titleElement.style.color = 'white'; 51 - titleElement.style.backgroundColor = '#E2725B'; 52 - const parentElement = titleElement.closest('.kanban-item'); 53 - if (parentElement) { 54 - parentElement.style.backgroundColor = '#708090'; 55 - } 56 - } 57 - if (titleElement.textContent.includes('GRWA')) { 58 - titleElement.style.color = 'white'; 59 - titleElement.style.backgroundColor = '#FF00FF'; 60 - const parentElement = titleElement.closest('.kanban-item'); 61 - if (parentElement) { 62 - parentElement.style.backgroundColor = '#F4C430'; 63 - } 64 - } 65 - if (titleElement.textContent.includes('NEXT')) { 66 - titleElement.style.color = 'white'; 67 - titleElement.style.backgroundColor = '#4B0082'; 68 - const parentElement = titleElement.closest('.kanban-item'); 69 - if (parentElement) { 70 - parentElement.style.backgroundColor = '#E0115F'; 71 - } 72 - } 73 - if (titleElement.textContent.includes('LACC')) { 74 - titleElement.style.color = 'white'; 75 - titleElement.style.backgroundColor = '#87CEEB'; 76 - const parentElement = titleElement.closest('.kanban-item'); 77 - if (parentElement) { 78 - parentElement.style.backgroundColor = '#98FF98'; 79 - } 80 - } 81 - } 82 - 83 - for (let i = 0; i < headerElements.length; i++) { 84 - const element = headerElements[i]; 85 - if (element.innerHTML.includes('Floor#: 2')) { 86 - for (let j = 0; j < element.classList.length; j++) { 87 - if (/kanban-header-\w+/.test(element.classList[j])) { 88 - element.classList.remove(element.classList[j]); 89 - element.style.backgroundColor = '#98FF98'; 90 - break; 91 - } 92 - } 93 - } 94 - } 95 - 96 - for (let i = 0; i < headerElements.length; i++) { 97 - const element = headerElements[i]; 98 - if (element.innerHTML.includes('Floor#: 1')) { 99 - for (let j = 0; j < element.classList.length; j++) { 100 - if (/kanban-header-\w+/.test(element.classList[j])) { 101 - element.classList.remove(element.classList[j]); 102 - element.style.backgroundColor = '#FF7F50'; 103 - break; 104 - } 105 - } 106 - } 107 - } 108 -}; 109 - - 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