klenwell information services : JavascriptuPublisher

uPublisher

uPublisher is a javascript class designed to give writers, artists, and small publishers with some experience with javascript a means for distributing their work on free websites like googlepages that enable javascript but do not allow the kind of server-side access typically necessary to build dynamic web pages.

license : GPL2
source : google code
demo : klenwell.googlepages.com

When this project reaches a stage where it is stable and ready for wider usage, it will be available on the project download page.

please report any issues or bugs on the project page issue list

Status

current release version 0.3
last stable release n/a

to do
hideable page handlers
data file production
resolve stylesheet loading issue
start over link on last page

Sample Usage

working example
the code below is the actual code from the demo listed above
<!-- Note : must be called from body; if called from head, will not autoload properly -->
<!-- google code repository : http://upublisher.googlecode.com/svn/trunk/ -->
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/intro.data.js"></script>
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/upublisher.ini.js"></script>

<!-- Test Script -->
<script type="text/javascript">
var debug = 0;
var MyPublisher = new uPublisher(debug);
var stylesheet = 'upublisher.default.css';
MyPublisher.ini();
MyPublisher.load_file();
MyPublisher.build_page();
MyPublisher.add_page_handler_img('last', MyPublisher.dirpath + 'image/dogear.back.png');
MyPublisher.add_page_handler_img('next', MyPublisher.dirpath + 'image/dogear.next.png');
MyPublisher.add_stylesheet(stylesheet);
MyPublisher.publish('uBook');
</script>



CategoryJavascript