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) {
|
||||
if(error) {
|
||||
bg = {
|
||||
_id: "bg",
|
||||
name: "/static/images/bg-FMF.jpg",
|
||||
topX: -370
|
||||
};
|
||||
db.put(bg);
|
||||
}
|
||||
changeBackground(bg.name, bg.topX);
|
||||
$(function() {
|
||||
db.get("bg", function(error, bg) {
|
||||
if(error) {
|
||||
bg = {
|
||||
_id: "bg",
|
||||
name: "/static/images/bg-FMF.jpg",
|
||||
topX: -370
|
||||
};
|
||||
db.put(bg);
|
||||
}
|
||||
changeBackground(bg.name, bg.topX);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue