This commit is contained in:
@@ -58,19 +58,13 @@ else {
|
||||
randomText = `<a href='javascript:void(0)' onclick='randomSite()'>random</a> | `;
|
||||
}
|
||||
|
||||
tag.classList = "webring";
|
||||
|
||||
//this is the code that displays the widget - EDIT THIS if you want to change the structure
|
||||
tag.insertAdjacentHTML('afterbegin', `
|
||||
<table>
|
||||
<tr>
|
||||
<td class='webring-prev'><a href='${sites[previousIndex]}'>prev</a></td>
|
||||
<td class='webring-info'>This site is part of the ${ringName} webring 😸</br>
|
||||
<span class='webring-links'>
|
||||
${randomText}
|
||||
${indexText}
|
||||
<a href='https://garlic.garden/onionring/'>onionring</a></span></td>
|
||||
<td class='webring-next'><a href='${sites[nextIndex]}'>next</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<a href='${indexPage}'>${ringName}</a><br>
|
||||
<a href='${sites[previousIndex]}'><--</a>
|
||||
<a href='${sites[nextIndex]}'>--></a>
|
||||
`);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user