mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-19 19:13:33 +00:00
Clean up clean up everybody everywhere
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//
|
||||
// AppPermissionItem.js
|
||||
// altsource-viewer (https://github.com/therealFoxster/altsource-viewer)
|
||||
//
|
||||
|
||||
@@ -32,14 +32,29 @@ main((json) => {
|
||||
const versionsContainer = document.getElementById("versions");
|
||||
if (app.versions) {
|
||||
app.versions.forEach((version, i) => {
|
||||
versionsContainer.insertAdjacentHTML("beforeend", VersionHistoryItem(version.version, formatVersionDate(version.date), formatString(version.localizedDescription), version.downloadURL, i))
|
||||
versionsContainer.insertAdjacentHTML("beforeend",
|
||||
VersionHistoryItem(
|
||||
version.version,
|
||||
formatVersionDate(version.date),
|
||||
formatString(version.localizedDescription),
|
||||
version.downloadURL,
|
||||
i
|
||||
)
|
||||
);
|
||||
});
|
||||
} else {
|
||||
versionsContainer.insertAdjacentHTML("beforeend", VersionHistoryItem(app.version, formatVersionDate(app.versionDate), formatString(app.versionDescription), app.downloadURL, 0))
|
||||
versionsContainer.insertAdjacentHTML("beforeend",
|
||||
VersionHistoryItem(
|
||||
app.version,
|
||||
formatVersionDate(app.versionDate),
|
||||
formatString(app.versionDescription),
|
||||
app.downloadURL,
|
||||
0
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
document.querySelectorAll(".version-description").forEach(element => {
|
||||
console.log(MoreButton(tintColor));
|
||||
if (element.scrollHeight > element.clientHeight)
|
||||
element.insertAdjacentHTML("beforeend", MoreButton(tintColor));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user