This commit is contained in:
Aevann1 2022-04-17 20:01:18 +02:00
parent b345e87db1
commit ea63796fac
2 changed files with 16 additions and 3 deletions

View file

@ -77,7 +77,7 @@ function updatebgselection(){
let bgsDir = backgrounds[bgselector.selectedIndex].folder;
for (i=0; i < bgsToDisplay.length; i++) {
let onclickPost = bgsDir + "/" + bgsToDisplay[i];
str += `<button class="btn btn-secondary m-1 p-0" style="width:15rem; overflow: hidden;"><img style="padding:0.25rem; width: 15rem" src="/assets/images/backgrounds/${bgsDir}/${bgsToDisplay[i]}?v=3" alt="${bgsToDisplay[i]}-background" onclick="post('/settings/profile?background=${onclickPost}')"></button>`;
str += `<button class="btn btn-secondary bg-button"><img class='bg-image' src="/assets/images/backgrounds/${bgsDir}/${bgsToDisplay[i]}?v=3" alt="${bgsToDisplay[i]}-background" onclick="post('/settings/profile?background=${onclickPost}')"></button>`;
}
bgContainer.innerHTML = str;
}