sf-8b0 / main.js
SuperScoobyDoo's picture
Add 4 files
49cc1fb
raw
history blame contribute delete
420 Bytes
document.addEventListener("DOMContentLoaded", () => {
const app = alpinejs();
const scooby = {
title: "Scooby-Doo",
image: "../assets/scooby.jpg",
};
app.init({
state: {
scooby,
},
func: {
onSubmit(key) {
// Code to create the image goes here
console.log("Submitted!");
},
},
});
});