Update auf neues format
This commit is contained in:
@@ -21,12 +21,12 @@ function handleImage() {
|
|||||||
if (screenState === 'lock') {
|
if (screenState === 'lock') {
|
||||||
const apiParams = {
|
const apiParams = {
|
||||||
// default galery; spring awakens
|
// default galery; spring awakens
|
||||||
uuid: '01919dec-b2cd-7adc-8ca2-a071d1169cbc;01953de0-3aa7-71f1-bfff-cbf9488efa64',
|
galleries: '01JYA3PW2VVV8XGQC9B69T184X;01K4Q6GN2DFZK74VW49G28KNEY',
|
||||||
unsplash: true,
|
unsplash: true,
|
||||||
orientation: 'landscape',
|
orientation: 'landscape',
|
||||||
height: window.screen.availHeight,
|
height: window.screen.availHeight,
|
||||||
width: window.screen.availWidth,
|
width: window.screen.availWidth,
|
||||||
cropCenteringMode: 'sm',
|
center_mode: 'sm',
|
||||||
apikey: apiKey
|
apikey: apiKey
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ function handleImage() {
|
|||||||
currentImageHandle.style.left = '0';
|
currentImageHandle.style.left = '0';
|
||||||
currentImageHandle.style.width = '100%';
|
currentImageHandle.style.width = '100%';
|
||||||
currentImageHandle.style.height = '100%';
|
currentImageHandle.style.height = '100%';
|
||||||
currentImageHandle.style.backgroundImage = `url(${data.urls.regular})`;
|
currentImageHandle.style.backgroundImage = `url(${data.url})`;
|
||||||
currentImageHandle.style.backgroundSize = 'cover';
|
currentImageHandle.style.backgroundSize = 'cover';
|
||||||
currentImageHandle.style.opacity = 1;
|
currentImageHandle.style.opacity = 1;
|
||||||
} else {
|
} else {
|
||||||
@@ -65,7 +65,7 @@ function handleImage() {
|
|||||||
newImageHandle.style.left = '0';
|
newImageHandle.style.left = '0';
|
||||||
newImageHandle.style.width = '100%';
|
newImageHandle.style.width = '100%';
|
||||||
newImageHandle.style.height = '100%';
|
newImageHandle.style.height = '100%';
|
||||||
newImageHandle.style.backgroundImage = `url(${data.urls.regular})`;
|
newImageHandle.style.backgroundImage = `url(${data.url})`;
|
||||||
newImageHandle.style.backgroundSize = 'cover';
|
newImageHandle.style.backgroundSize = 'cover';
|
||||||
newImageHandle.style.opacity = 1;
|
newImageHandle.style.opacity = 1;
|
||||||
newImageHandle.style.transition = '1s';
|
newImageHandle.style.transition = '1s';
|
||||||
@@ -80,7 +80,7 @@ function handleImage() {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
// Set the credits
|
// 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;
|
credits.style.zIndex = 300000;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user