Home
Jason S. Kivlighn :: Portfolio


Fung-Calc

Homepage: http://fung-calc.sf.net

Browse code online

This website was created for a software application I have written. The application is a 2 and 3-dimensional graphing calculator written in C++ using Qt's GUI libraries. Development occurred throughout 2002 and 2003.

Design

This site used the following setup to automatically generate the header and footer statically for each page as well generate a table of screenshots. This setup was chosen because of the absense of scripting support on the project's initial web server.

The directory structure for generating the site is as follows:

  • gen - a shell script that reads the contents of the 'pages' folder and generates a static HTML file with the contents of the 'header' and 'footer' files
  • header - the HTML contents of the header for each page
  • footer - the HTML contents of the footer for each page
  • pages - folder that contains the content of each page
  • gen_screenshots.cpp - a trivial C++ program that generates a screenshot page with descriptions of each screenshot based on an array within the program. I realize that C++ is not the most efficient method for this (a scripting language is more suitable), but it was more of an experiment at the time.

News for the site is automatically fetched from Sourceforge.net's news system and is included on the homepage via a PHP 'include()'.