HTML5 Sample codes

Learning By Doing

Here we try to provide some sample codes and links to external resources. There is a lot of HTML5 materials.

Let us know more samples or links contact @zetakey.com





NPAPI for barcode scanner in native C

Example showing the use of NPAPI to run a background thread that invokes HTML5 browser Javascript code. In this code a hardware barcode scanner is used to read barcodes and invokes Javascript code on a windows mobile device running ZetaKey or Intermec HTML5 browser

A NPAPI sample showing how to access a barcode scanner in native C




Capture Signature

This is a javascript sample to capture a signature in a canvas area. And then you can save the image as required format. There are javascript functions handle the event in the canvas area. Then it uses todataurl() in canvas html5.

Capture Signature




Offline Database

This is HTML5, javascript sample to implement DoTo list. The javascript portion created a databased by openDatabase() and then execute the query by executeSql().

Offline database