mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-21 12:21:46 +02:00
ID param is not longer needed
This commit is contained in:
@@ -228,6 +228,9 @@
|
||||
|
||||
<!-- OPTIONAL - svg-icons.js (fontastic.me - Font Awesome as svg icons) -->
|
||||
<script defer src="../static/js/svg-icons.js"></script>
|
||||
<script type="text/javascript">
|
||||
var slide = jQuery('#webslides').webslides();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -13,6 +13,7 @@ https://github.com/jennschiffer/SimpleSlides
|
||||
jQuery.fn.webslides = function(options) {
|
||||
|
||||
var obj = {};
|
||||
var $this = jQuery(this);
|
||||
|
||||
// Private vars
|
||||
var easing = 'swing';
|
||||
@@ -52,7 +53,6 @@ jQuery.fn.webslides = function(options) {
|
||||
*/
|
||||
var init = function(_options) {
|
||||
obj.settings = {
|
||||
id : 'webslides',
|
||||
class : 'slide',
|
||||
counter : 'counter',
|
||||
navigation : 'navigation',
|
||||
@@ -75,7 +75,7 @@ jQuery.fn.webslides = function(options) {
|
||||
}
|
||||
|
||||
var setup = function() {
|
||||
$slideshow = jQuery('#' + obj.settings.id);
|
||||
$slideshow = $this;
|
||||
$navigation = jQuery('<div>').attr('id', obj.settings.navigation);
|
||||
$slides = $slideshow.children('section').addClass(obj.settings.class);
|
||||
$firstSlide = $slides.first();
|
||||
|
Reference in New Issue
Block a user