Open therealadityashankar opened 4 years ago
Holy crap!, I'm amazed by how much code you managed to figure out despite the lack of documentation (I'm so sorry, I was quite naive when I created this library).
I will look into this issue, I think this code would also be benefited if there was an on-load event that would be triggered when the code is run (https://github.com/vanillawc/wc-code/issues/18#issue-965545987)
PRs would be appreciated, I will try to get to this when I find the time
also heads-up this entire codebase needs a massive rewrite, and move to the shadow dom (which I should have done to begin with), (and needs to get rid of the "constructor" completely)
Also about jquery, wc-code utilizes the iodide project for python underneath, the last example at https://alpha.iodide.io/tryit/ is how you may import javascript libraries in python
This would be quite useful. I've been messing around to accomplish a few things:
pre
tag (spacing matters)Few hurdles I had to cross:
In case you'd like to have a look:
I'll be using this common pattern -- one boilerplate chunk of code (here,
wff.py
) and one user-facing code that students can play around with. With bootstrap touching things up a bit (you can see the card HTML used in the example above), I think this should do nicely embedded in our school's learning management system.Thanks for the great project!