This commit is contained in:
Felix Roos 2022-03-16 23:13:33 +01:00
parent 305b4e1258
commit fe604ca2b1
4 changed files with 6 additions and 5 deletions

2
docs/dist/ui.js vendored
View File

@ -13,7 +13,7 @@ function frame(callback) {
}; };
requestAnimationFrame(animate); requestAnimationFrame(animate);
} }
export const backgroundImage = function(src, animateOptions) { export const backgroundImage = function(src, animateOptions = {}) {
const container = document.getElementById("code"); const container = document.getElementById("code");
const bg = "background-image:url(" + src + ");background-size:contain;"; const bg = "background-image:url(" + src + ");background-size:contain;";
container.style = bg; container.style = bg;

View File

@ -136297,7 +136297,8 @@ function frame(callback) {
}; };
requestAnimationFrame(animate); requestAnimationFrame(animate);
} }
const backgroundImage = function(src, animateOptions) { const backgroundImage = function(src, animateOptions = {
}) {
const container = document.getElementById('code'); const container = document.getElementById('code');
const bg = 'background-image:url(' + src + ');background-size:contain;'; const bg = 'background-image:url(' + src + ');background-size:contain;';
container.style = bg; container.style = bg;
@ -183163,4 +183164,4 @@ exports.default = cx;
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}]},["3uVTb"], "3uVTb", "parcelRequire94c2") },{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}]},["3uVTb"], "3uVTb", "parcelRequire94c2")
//# sourceMappingURL=index.790bf3f2.js.map //# sourceMappingURL=index.b40b1a4b.js.map

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,6 @@
<body> <body>
<div id="root"></div> <div id="root"></div>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<script src="/tutorial/index.790bf3f2.js" defer=""></script> <script src="/tutorial/index.b40b1a4b.js" defer=""></script>
</body> </body>
</html> </html>