Team:Toulouse/template/slider
From 2014.igem.org
(Difference between revisions)
Line 101: | Line 101: | ||
<!-- jQuery Tools (slider) --> | <!-- jQuery Tools (slider) --> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | ||
- | + | ||
+ | <script type="text/javascript"> | ||
+ | $( function() { | ||
+ | /* | ||
+ | - how to call the plugin: | ||
+ | $( selector ).cbpFWSlider( [options] ); | ||
+ | - options: | ||
+ | { | ||
+ | // default transition speed (ms) | ||
+ | speed : 500, | ||
+ | // default transition easing | ||
+ | easing : 'ease' | ||
+ | } | ||
+ | - destroy: | ||
+ | $( selector ).cbpFWSlider( 'destroy' ); | ||
+ | */ | ||
+ | |||
+ | $( '#cbp-fwslider' ).cbpFWSlider(); | ||
+ | |||
+ | } ); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
;( function( $, window, undefined ) { | ;( function( $, window, undefined ) { | ||
Revision as of 11:21, 8 October 2014