Skip to content

Javascript wrapper for the the Concord Consortium's applet interface to Vernier sensors.

License

Notifications You must be signed in to change notification settings

wday/lab-sensor-applet-interface

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab Sensor Applet Interface

This repository contains a Javascript wrapper for the the Concord Consortium's applet interface to Vernier sensors. It should be compatible with the latest (November 2013) security restrictions on Java applets in the browser. It was extracted from the Lab project.

Using the interface

  1. Include this project as a submodule or add it as a Bower dependency.
  2. Build the project (see below)
  3. Use the built file dist/sensor-applet-interface.js in your project.
  4. In an AMD environment, require(<path-to-sensor-applet-interface.js>, function(sensorAppletInterface) { ... }); (or simply add the path to the appropriate config file if using the RequireJS optimizer with the Simplified CommonJS wrapper, as in Lab.)
  5. Or simply use the sensorAppletInterface global.
  6. Make sure your project exposes jQuery as the global $. This project depends on jQuery but does not attempt to include it as an explicit dependency.

You can skip building by using the distribution repository instead.

Building the Project

  1. install the dependencies: npm install
  2. build it: npm run build

Running the examples and changing the code

  1. build project (see above)
  2. run a dev server and open browser: grunt connect
  3. make a change to a js file
  4. rebuild built project: npm run build
  5. reload the page in the browser

Deploy dist repository

One time setup

rm dist
git clone git@github.com:concord-consortium/lab-sensor-applet-interface-dist.git dist

Each deploy

npm run build
cd dist
git add -A
git commit -m "some interesting message about the deploy"
git push origin master
git push origin master:gh-pages

About

Javascript wrapper for the the Concord Consortium's applet interface to Vernier sensors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.6%
  • Ruby 33.8%
  • CSS 2.6%