Embed in HTML 5?

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

Moderators: chris, MtnViewMark, MtnViewJohn

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

Embed in HTML 5?

Post by MRIO » Wed Sep 06, 2017 3:39 am

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.

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

Re: Embed in HTML 5?

Post by MtnViewJohn » Thu Sep 07, 2017 8:53 am

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

Who is online

Users browsing this forum: No registered users and 1 guest