Re-enabled artwork backgrounds
* Re-enabled artwork backgrounds
This commit is contained in:
@@ -713,15 +713,17 @@
|
|||||||
bg.setAttribute('style', 'background-image: url("/images/gamebg' + randomInt + '.jpg"); background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(10px); -webkit-filter: blur(10px);');
|
bg.setAttribute('style', 'background-image: url("/images/gamebg' + randomInt + '.jpg"); background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(10px); -webkit-filter: blur(10px);');
|
||||||
}
|
}
|
||||||
|
|
||||||
// // load artwork
|
// load artwork
|
||||||
// if (game.artworks) {
|
if (!artworks) {
|
||||||
// ajaxCall('/api/v1.1/games/' + gameId + '/artwork', 'GET', function (result) {
|
if (game.artworks) {
|
||||||
// artworks = result;
|
ajaxCall('/api/v1.1/games/' + gameId + '/artwork', 'GET', function (result) {
|
||||||
// var startPos = randomIntFromInterval(0, result.length);
|
artworks = result;
|
||||||
// artworksPosition = startPos;
|
var startPos = randomIntFromInterval(0, result.length);
|
||||||
// rotateBackground();
|
artworksPosition = startPos;
|
||||||
// });
|
rotateBackground();
|
||||||
// }
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function rotateBackground() {
|
function rotateBackground() {
|
||||||
|
Reference in New Issue
Block a user