Remove @ from list
This commit is contained in:
parent
6eefd14cc8
commit
0ece0ac28c
1 changed files with 5 additions and 1 deletions
|
|
@ -17,7 +17,11 @@
|
||||||
for(let i = 0; i < p_frags.length; i++){
|
for(let i = 0; i < p_frags.length; i++){
|
||||||
let item = document.createElement("a");
|
let item = document.createElement("a");
|
||||||
item.setAttribute("href", `#${convertIndexToString(p_frags[i].index)}`);
|
item.setAttribute("href", `#${convertIndexToString(p_frags[i].index)}`);
|
||||||
item.innerHTML = (p_frags[i].file);
|
let _fullName = p_frags[i].file;
|
||||||
|
let _name = _fullName.split('.')[0]
|
||||||
|
let _format = _fullName.split('.')[1]
|
||||||
|
let _partName = _name.split('@')[0]
|
||||||
|
item.innerHTML = (`${_partName}.${_format}`);
|
||||||
document.getElementById("archive_list").appendChild(item)
|
document.getElementById("archive_list").appendChild(item)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue