Giter Site home page Giter Site logo

af-carousel's People

Contributors

manuelwenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

af-carousel's Issues

af undefined error

I am trying to integrate this with my appframework 2.0 based code. I get an error:
Uncaught ReferenceError: af is not defined

on the last line of the af.carousel.js file leading to a

Uncaught TypeError: Object [object Object] has no method 'carousel' index.html:213
init_carousel

Any ideas on how to fix it?

e.touches undefined

Hello Ian,

I think

e.touches

should be replaced by

e.originalEvent.touches

for instance in e.originalEvent.touches[0] on line 133.

Tell me if it seems ok for you and i'll do a pull request.

Pascal

Getting the slide index on carousel change

How might I get the index of the new slide/element after the carousel has moved and relay it back to my code as an event?

By placing console.log(this.carouselIndex); at the end of the touchEnd() function I can see the correct index, but can't seem get it back to my main code.

I also see $.trigger(this,"movestop",[this.el]); in the same function, which presumably does what I'm trying to do, but listening for it with the below has no effect.

// begin ui ready -----------------
$.ui.ready(function(){
var options={
...
wrap:true //Creates a continuous carousel
}
var carousel = $("#my_div").carousel(options);

$(document).on('movestop', "#my_div", function(evt) {         
    alert(123);        
});   

});
// end ui ready -----------------

Any ideas what might be wrong? Thanks

Next/prev

Does it have next and prev buttons?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.