build
This commit is contained in:
parent
305b4e1258
commit
fe604ca2b1
4 changed files with 6 additions and 5 deletions
2
docs/dist/ui.js
vendored
2
docs/dist/ui.js
vendored
|
|
@ -13,7 +13,7 @@ function frame(callback) {
|
|||
};
|
||||
requestAnimationFrame(animate);
|
||||
}
|
||||
export const backgroundImage = function(src, animateOptions) {
|
||||
export const backgroundImage = function(src, animateOptions = {}) {
|
||||
const container = document.getElementById("code");
|
||||
const bg = "background-image:url(" + src + ");background-size:contain;";
|
||||
container.style = bg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue