mirror of
https://github.com/torappinfo/uweb.git
synced 2025-01-16 00:50:58 +01:00
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
|
{let d=document;
|
||
|
let ea=d.querySelectorAll('input:checked');
|
||
|
let s="";
|
||
|
for(let i=0;i<ea.length;i++){
|
||
|
let sibling = ea[i].nextElementSibling;
|
||
|
if(sibling==null) sibling=ea[i].previousElementSibling;
|
||
|
let str = sibling.alt;
|
||
|
if(null==str) str=sibling.src;
|
||
|
if(null==str) str=sibling.href;
|
||
|
s = s+str+"\n";
|
||
|
}
|
||
|
}
|