Skip to content

cometapp/comet-widgets

Repository files navigation

Comet Widgets Build Status

A set of javascript tools to interact with Comet albums

Dependencies

These widgets depend on jQuery and Bootstrap to work.

Installation

Get the libraries with bower

bower install comet-widgets

Import it in your html

<!-- include css dependencies -->
<link rel="stylesheet" href="./bower_components/bootstrap/css/bootstrap.min.css" />

<!-- include js dependencies -->
<script src="./bower_components/jquery/dist/jquery.min.js"></script>
<script src="./bower_components/bootstrap/js/bootstrap.min.js"></script>

<!-- include comet-widget -->
<script src="./bower_components/comet-widgets/dist/comet-widgets.js"></script>

Widgets list

Carousel

Automatically displays a fullscreen slideshow of the pictures existing in an album.

var carousel = new cometWidgets.carousel('ALBUM_ID');
carousel.start();
// use carousel.stop() to stop the slideshow

Thel ALBUM_ID is either a comet short_id if the album owns one, or the universal id of this album.

Examples

Cf the example folder.

Documentation

Check out the github page of the project.

Licence

MIT licence

About

Widgets to manipulate Comet albums

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors