We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all,
Complete newbie here! I started learning p5.js at the beginning of this year and would like to blog my progress.
Is it possible to make the sketches work in my blogger posts? And what if have extra multiple .js files or media files within your folder? It would be great if they could work right there instead of a link to my github.
Thanks!
Answers
Most minimum "index.html" to run a p5.js sketch called "sketch.js" is:
And if you already got "p5.min.js" in the same folder as your "sketch.js" & "index.html":
And if your program needs UTF-8 characters, place this on the very top of your "index.html":
Hi,
I don't really understand what you mean :(
At the moment I just use blogger's templates and write using their text editor/html editor window. Was wondering if there was any code I could put in there to add my javascript work.
Alternatively if there is way of embedding from github pages that could work too.
Just for reference I've found that openprocessing.org has a great sharing feature allowing you to embed into html. Hope this helps other if they want to blog with a working sketch in their post!