The Slider-Crank Application or SCApp
is a digital modeler of the geometry and kinematics
of the slider-crank mechanism.
SCApp is a set of three files, sc-funcs.js, sc-calcs.php and sc-styles.css working together.
The demo presented here enables you to see all the functions offered by the application. For the entire set of files to install in your server please visit codester webstore.
How to install it? Download the *.zip file from Codester, unzip it, and then:
- Copy the files sc-funcs.js, sc-calcs.php and sc-styles.css on your server. The files sc-funcs.js and sc-calcs.php must be in the same directory.
- Insert in the "head" section of the site's main file (*.html or *.php) the links to "js" and "css" files, as exemple:
<script type='text/javascript' src='sc-funcs.js'></script>
<link rel='stylesheet' type='text/css' href='sc-styles.css' />
- In the same file, insert at the point you want the application to appear, the four-line code:
<script type='text/javascript'>
document.write('<div></div>');
loadSCAPP(document.body.lastChild);
</script>
Now, the application is ready to use.