Skip to content
Discussion options

You must be logged in to vote

Hi @amandajemerson, there's really no one way to modify the display - you can write a plugin that changes the page content however you like! You're right that many plugins change the display using display_element.innerHTML = 'some HTML-formatted string', and there are some plugins that create HTML elements via JavaScript functions and then add those to the page with functions like append, insertBefore etc.

It sounds like your startGame function handles the display changes itself, which is totally fine! So you can just call startGame() on it's own inside your plugin.trial function, as you're doing now. If you're curious, you could look at the code for this function to see exactly how it ch…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amandajemerson
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants