To simply use the default transformations that the toolkit provides, use the following steps:
<link rel="stylesheet" type="text/css" href="TouchscreenToolkit.css" /> <script type="text/javascript" src="TouchscreenToolkit.js"></script> <script type="text/javascript">tsTouchscreen.tsInit(null);</script>
The first line loads the toolkit's CSS file, the second line loads the toolkit's JavaScripts, and the thrid line tells the toolkit to load the default toolkit. Optionally, you may put the CSS and JavaScript files into a separate directory, just be sure to update the href and src parameters above accordingly.
The following is a simple example of how to load the toolkit in an HTML page with only two text inputs:
<html> <head> <link rel="stylesheet" type="text/css" href="TouchscreenToolkit.css" /> <script type="text/javascript" src="TouchscreenToolkit.js"></script> <script type="text/javascript">tsTouchscreen.tsInit(null);</script> </head> <body> <br /> <input type="text" /> <input type="text" /> </body> </html>
To download the complete working code for this example, click here.
If you would like to extend the toolkit's functionality as well as use its default functionality, see the Extended Use page.