mirror of
https://github.com/ikrpg/ikrpg.github.io.git
synced 2026-05-13 14:27:22 +00:00
Tried to fix the background loading issue
This commit is contained in:
parent
d70129e0df
commit
69837fca81
1 changed files with 12 additions and 10 deletions
|
|
@ -80,16 +80,18 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
db.get("bg", function(error, bg) {
|
$(function() {
|
||||||
if(error) {
|
db.get("bg", function(error, bg) {
|
||||||
bg = {
|
if(error) {
|
||||||
_id: "bg",
|
bg = {
|
||||||
name: "/static/images/bg-FMF.jpg",
|
_id: "bg",
|
||||||
topX: -370
|
name: "/static/images/bg-FMF.jpg",
|
||||||
};
|
topX: -370
|
||||||
db.put(bg);
|
};
|
||||||
}
|
db.put(bg);
|
||||||
changeBackground(bg.name, bg.topX);
|
}
|
||||||
|
changeBackground(bg.name, bg.topX);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue