User scripts
Allows users to define scripts to be executed at load time.
jslocalStorage.setItem("onLoad", "console.log('hello')")
Users can override the behavior of the tutorial when accessing the top page.
kozaneba.after_render_toppage = () => { kozaneba.show_dialog("User") }
User can add a button to the AppBar
:localStorage.setItem("onLoad", `
kozaneba.after_render_toppage = () => { kozaneba.show_dialog("User") }
kozaneba.user_buttons.push({ label: "Add", onClick: () => { kozaneba.show_dialog("AddKozane") }
`)
Ability to add custom styles.
kozaneba.update_style("1629979178768", (s) => {s.background = "blue"; s.color = "white" });
API