Changes for page Desk allocation

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

From version 199.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/12 16:12
Change comment: There is no comment for this version
To version 254.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/21 12:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,2 +1,2 @@
1 -{{kanban width="235px" source="https://portal.igfae.usc.es/xwiki/bin/view/Towards%20JSON/Rooms/?outputSyntax=plain&xpage=plain" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
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 2  {{/kanban}}
room_v02.json
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.RicardoJulioRodriguezFernandez
Size
... ... @@ -1,0 +1,1 @@
1 +1.7 KB
Content
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,8 +1,18 @@
1 -window.onload = function() {
1 +setTimeout(changeStyles, 500);
2 +
3 +function changeStyles() {
2 2   const titleElements = document.getElementsByClassName('kanban-item-title');
3 3   const headerElements = document.getElementsByClassName('kanban-board-header');
4 4   const titleContainers = document.getElementsByClassName('kanban-item');
5 5  
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 +
6 6   for (let i = 0; i < titleElements.length; i++) {
7 7   const titleElement = titleElements[i];
8 8   titleElement.style.padding = "2px 4px";
... ... @@ -76,7 +76,7 @@
76 76  
77 77   for (let i = 0; i < headerElements.length; i++) {
78 78   const element = headerElements[i];
79 - if (element.innerHTML.includes('Floor#: 2')) {
89 + if (element.innerHTML.includes('f02')) {
80 80   for (let j = 0; j < element.classList.length; j++) {
81 81   if (/kanban-header-\w+/.test(element.classList[j])) {
82 82   element.classList.remove(element.classList[j]);
... ... @@ -89,7 +89,7 @@
89 89  
90 90   for (let i = 0; i < headerElements.length; i++) {
91 91   const element = headerElements[i];
92 - if (element.innerHTML.includes('Floor#: 1')) {
102 + if (element.innerHTML.includes('f01')) {
93 93   for (let j = 0; j < element.classList.length; j++) {
94 94   if (/kanban-header-\w+/.test(element.classList[j])) {
95 95   element.classList.remove(element.classList[j]);
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
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