User scripts
Allows users to define scripts to be executed at load time.
code:js
localStorage.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
code::
localStorage.setItem("onLoad", `
kozaneba.after_render_toppage = () => { kozaneba.show_dialog("User") }
kozaneba.user_buttons.push({ label: "Add", onClick: () => { kozaneba.show_dialog("AddKozane") }
`)
https://scrapbox.io/files/61237d14cc0eb2001df080d5.png
Ability to add custom styles.
https://gyazo.com/b202a0b941bbc79c1a9ef348b654a89e
kozaneba.update_style("1629979178768", (s) => {s.background = "blue"; s.color = "white" });
API