Impress.js definitions and tests added

This commit is contained in:
Boris Yankov 2012-10-19 19:51:09 +03:00
parent 8938dffa1e
commit bae2e02233
3 changed files with 24 additions and 0 deletions

13
Definitions/impress-0.5.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
// Type definitions for Impress.js 0.5
// Project: https://github.com/bartaz/impress.js
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Impress {
init(): void;
getStep(step: any): any;
goto(element: any, duration?: number): any;
prev(): any;
next(): any;
}
declare function impress(): Impress;

View File

@ -13,6 +13,7 @@ Complete
* [Fancybox](http://fancybox.net/)
* [History.js](https://github.com/balupton/History.js/)
* [Humane.js](http://wavded.github.com/humane-js/) (by [jmvrbanac](https://github.com/jmvrbanac))
* [Impress.js](https://github.com/bartaz/impress.js)
* [Jasmine](http://pivotal.github.com/jasmine/)
* [jQuery.Globalize](https://github.com/jquery/globalize)
* [jQuery](http://jquery.com/) (from TypeScript samples)

10
Tests/impress-tests.ts Normal file
View File

@ -0,0 +1,10 @@
/// <reference path="../Definitions/impress-0.5.d.ts" />
impress().init();
var api = impress();
api.next()
api.prev();
api.goto(document.getElementById('#id'));
api.goto(1, 123);