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 |
LinkAttributesSetter.js
01 /**
02 * Set a URL or IMG tag's attributes
03 *
04 * @param {!Tag} tag URL or IMG tag
05 * @param {string} linkInfo Link's info: an URL optionally followed by spaces and a title
06 * @param {string} attrName Name of the URL attribute
07 */
08 function setLinkAttributes(tag, linkInfo, attrName)
09 {
10 var url = linkInfo.replace(/^\s*/, '').replace(/\s*$/, ''),
11 title = '',
12 pos = url.indexOf(' ');
13 if (pos !== -1)
14 {
15 title = url.substring(pos).replace(/^\s*\S/, '').replace(/\S\s*$/, '');
16 url = url.substring(0, pos);
17 }
18 if (/^<.+>$/.test(url))
19 {
20 url = url.replace(/^<(.+)>$/, '$1').replace(/\\>/g, '>');
21 }
22
23 tag.setAttribute(attrName, decode(url));
24 if (title > '')
25 {
26 tag.setAttribute('title', decode(title));
27 }
28 }