Page 1 of 1

Embed in HTML 5?

Posted: Wed Sep 06, 2017 3:39 am
by MRIO
Greetings!
I've tried to find in the forums, but failed. Excuse me if this is a duplicate!
Been meaning to embed context free in a HTML page -- so that visitors have a different banner every time. Has anyone considered this? What would be the best way to proceed?
Cheers to the community,
M.

Re: Embed in HTML 5?

Posted: Thu Sep 07, 2017 8:53 am
by MtnViewJohn
There is a version of Context Free for javascript at this site: http://www.azarask.in/blog/post/context ... avascript/

I haven't played with it, but maybe you could use it to generate unique banner images for each page load. It has the advantage of doing all of the computation in the users browser instead of your server.

Otherwise, you would have to run cfdg (the Unix command-line version of Context Free) on your server for each page load, which could get expensive. You could serve the image statically but have a cron job generate a new banner every few minutes.