Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
filterListItem.js
01 /**
02 * @param {!Tag} listItem
03 * @param {string} text
04 */
05 function (listItem, text)
06 {
07 // Test whether the list item is followed by a task checkbox
08 var pos = listItem.getPos() + listItem.getLen();
09 while (text.charAt(pos) === ' ')
10 {
11 ++pos;
12 }
13 var str = text.substring(pos, pos + 3);
14 if (!/\[[ Xx]\]/.test(str))
15 {
16 return;
17 }
18
19 // Create a tag for the task and assign it a random ID
20 var taskId = Math.random().toString(16).substring(2),
21 taskState = (str === '[ ]') ? 'unchecked' : 'checked',
22 task = addSelfClosingTag('TASK', pos, 3);
23
24 task.setAttribute('id', taskId);
25 task.setAttribute('state', taskState);
26
27 listItem.cascadeInvalidationTo(task);
28 }