Changes for page Desk allocation

Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02

From version 252.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/21 12:26
Change comment: Kanban content updated
To version 174.1
edited by Abdullah Sharifi
on 2024/03/11 19:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.RicardoJulioRodriguezFernandez
1 +XWiki.AbdullahSharifi
Content
... ... @@ -1,3 +1,2 @@
1 -{{kanban width="250px" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/room_v02.json?rev=1.2" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
2 -[{"id":"r01f01o00s00","color":"green","item":[{"title":"person 001 - LHCB"}],"title":"r01f01o00s00"},{"id":"r02f01o00s00","color":"blue","item":[{"title":"person 002 - STRI"}],"title":"r02f01o00s00"},{"id":"r03f02o00s00","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"r03f02o00s00"},{"id":"r05f02o00s00","color":"yellow","item":[{"title":"person 003 - LHCB"},{"title":"person 004 - NUCL"}],"title":"r05f02o00s00"},{"id":"r08f01o00s00","color":"orange","item":[{"title":"person 119 - HQCD"},{"title":"person 078 - HQCD"}],"title":"r08f01o00s00"},{"id":"r16f01o00s00","color":"green","item":[{"title":"person 123 - AUGE"},{"title":"person 135 - LHCB"}],"title":"r16f01o00s00"},{"id":"r18f01o00s00","color":"green","item":[{"title":"person 256 - GRWA"}],"title":"r18f01o00s00"},{"id":"r19f01o00s00","color":"green","item":[{"title":"person 354 - LACC"}],"title":"r19f01o00s00"},{"id":"r30f01o00s00","color":"green","item":[{"title":"person 354 - NEXT"}],"title":"r30f01o00s00"}]
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}}
room_v02.json
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.RicardoJulioRodriguezFernandez
Size
... ... @@ -1,1 +1,0 @@
1 -1.7 KB
Content
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,24 +1,14 @@
1 -setTimeout(changeStyles, 500);
2 -
3 -function changeStyles() {
1 +window.onload = function() {
4 4   const titleElements = document.getElementsByClassName('kanban-item-title');
5 5   const headerElements = document.getElementsByClassName('kanban-board-header');
6 6   const titleContainers = document.getElementsByClassName('kanban-item');
7 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++) {
6 + /* 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";
20 20  
21 - if (titleElement.textContent.includes('LHCB')) {
11 + if (titleElement.textContent.includes('2')) {
22 22   titleElement.style.color = 'white';
23 23   titleElement.style.backgroundColor = 'red';
24 24   const parentElement = titleElement.closest('.kanban-item');
... ... @@ -26,67 +26,11 @@
26 26   parentElement.style.backgroundColor = 'yellow';
27 27   }
28 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 - }
19 + } */
86 86  
87 87   for (let i = 0; i < headerElements.length; i++) {
88 88   const element = headerElements[i];
89 - if (element.innerHTML.includes('f02')) {
23 + if (element.innerHTML.includes('Floor#: 2')) {
90 90   for (let j = 0; j < element.classList.length; j++) {
91 91   if (/kanban-header-\w+/.test(element.classList[j])) {
92 92   element.classList.remove(element.classList[j]);
... ... @@ -99,7 +99,7 @@
99 99  
100 100   for (let i = 0; i < headerElements.length; i++) {
101 101   const element = headerElements[i];
102 - if (element.innerHTML.includes('f01')) {
36 + if (element.innerHTML.includes('Floor#: 1')) {
103 103   for (let j = 0; j < element.classList.length; j++) {
104 104   if (/kanban-header-\w+/.test(element.classList[j])) {
105 105   element.classList.remove(element.classList[j]);
Name
... ... @@ -1,1 +1,1 @@
1 -Styling boards
1 +Change background Color
XWiki.XWikiComments[0]
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.RicardoJulioRodriguezFernandez
Comment
... ... @@ -1,1 +1,0 @@
1 -https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Date
... ... @@ -1,1 +1,0 @@
1 -2024-03-13 17:21:41.315