How do i use this?
Download the package from github and upload it into a folder on your web server
Include jQuery 1.3.2+, the classes (still need a nice auto-loading mechanism...) and the plug-in in your source like
Fix the configuration set up in jquery.jsc64classes.js. Make sure JSC64_BASEPATH is set to folder on your web server containing the plug-in files.
Use Jquery to target something as your c64 container, like
Once booted, load a .prg file in your c64 with some javascript, like:
This can also be done automatically after booting by adding some event listeners to the jsc64 instance.
This option will be documented shortly.
Optionally scale your c64 using CSS. Just set a height and width to canvas elements in the c64 container, like
Jquery plug-in documentation
For ease of use, the C64 emulator can be loaded and used as a Jquery plug-in. The following options are available
$(selector).jsc64([event listener])
This will make a jsc64 of the selected block-level elements. If an event listener is passed as a parameter, this object will be used to listen to keystrokes. this may come in handy when working with more than one instance, and for example different inputs should control different jsc64 instances.
$(selector).loadPrg(pathToPrgFile)
this method can be called upon an instantiated jsc64 instance and will load the assigned rom into the jsc64 instance.
Please keep the browsers cross-domain policy in mind.
Source
This program is free software, released under the terms of the GNU General Public License as published by the Free Software Foundation version 2
The project main page can be found at http://www.kingsquare.nl/jsc64
Please feel free to commit your updates, improvements and bugfixes. A Github repository can be found here: http://github.com/Kingsquare/jsc64