mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
swap home path representation for md editor
This commit is contained in:
parent
3070f2e373
commit
97a8d8e833
|
|
@ -41,7 +41,7 @@ var dbg = function () { };
|
||||||
link += parts[a] + (a < aa ? '/' : '');
|
link += parts[a] + (a < aa ? '/' : '');
|
||||||
o = mknod('a');
|
o = mknod('a');
|
||||||
o.setAttribute('href', link);
|
o.setAttribute('href', link);
|
||||||
o.textContent = uricom_dec(parts[a].split('?')[0]) || 'top';
|
o.textContent = uricom_dec(parts[a].split('?')[0]) || '🏠';
|
||||||
dom_nav.appendChild(o);
|
dom_nav.appendChild(o);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ var dom_md = ebi('mt');
|
||||||
(function () {
|
(function () {
|
||||||
var n = location + '';
|
var n = location + '';
|
||||||
n = (n.slice(n.indexOf('//') + 2).split('?')[0] + '?v').split('/');
|
n = (n.slice(n.indexOf('//') + 2).split('?')[0] + '?v').split('/');
|
||||||
n[0] = 'top';
|
n[0] = '🏠';
|
||||||
var loc = [];
|
var loc = [];
|
||||||
var nav = [];
|
var nav = [];
|
||||||
for (var a = 0; a < n.length; a++) {
|
for (var a = 0; a < n.length; a++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue