Update auf neues format

This commit is contained in:
2025-09-30 14:45:09 +02:00
parent 2eb80e0da9
commit a90800acc8

View File

@@ -21,12 +21,12 @@ function handleImage() {
if (screenState === 'lock') {
const apiParams = {
// default galery; spring awakens
uuid: '01919dec-b2cd-7adc-8ca2-a071d1169cbc;01953de0-3aa7-71f1-bfff-cbf9488efa64',
galleries: '01JYA3PW2VVV8XGQC9B69T184X;01K4Q6GN2DFZK74VW49G28KNEY',
unsplash: true,
orientation: 'landscape',
height: window.screen.availHeight,
width: window.screen.availWidth,
cropCenteringMode: 'sm',
center_mode: 'sm',
apikey: apiKey
};
@@ -54,7 +54,7 @@ function handleImage() {
currentImageHandle.style.left = '0';
currentImageHandle.style.width = '100%';
currentImageHandle.style.height = '100%';
currentImageHandle.style.backgroundImage = `url(${data.urls.regular})`;
currentImageHandle.style.backgroundImage = `url(${data.url})`;
currentImageHandle.style.backgroundSize = 'cover';
currentImageHandle.style.opacity = 1;
} else {
@@ -65,7 +65,7 @@ function handleImage() {
newImageHandle.style.left = '0';
newImageHandle.style.width = '100%';
newImageHandle.style.height = '100%';
newImageHandle.style.backgroundImage = `url(${data.urls.regular})`;
newImageHandle.style.backgroundImage = `url(${data.url})`;
newImageHandle.style.backgroundSize = 'cover';
newImageHandle.style.opacity = 1;
newImageHandle.style.transition = '1s';
@@ -80,7 +80,7 @@ function handleImage() {
}, 1000);
// Set the credits
credits.innerHTML = `"${data.title}" by <a href="${data.user.links.html}" class="external-link" target="_blank">${data.user.name}</a>`;
credits.innerHTML = `"${data.title}" by <a href="https://photo.thegreydiamond.de" class="external-link" target="_blank">TheGreydiamond</a>`;
credits.style.zIndex = 300000;
}
})