Embed in HTML 5?

Here you can discuss and share functionality improvements and helper programs to make Context Free better.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Posts: 1
Joined: Wed Sep 06, 2017 3:37 am

Embed in HTML 5?

Post by MRIO »

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,

User avatar
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California

Re: Embed in HTML 5?

Post 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.

Post Reply