<

Carousel: Difference between revisions

From AI4Society Forum

No edit summary
No edit summary
Line 18: Line 18:
     var people = new People();
     var people = new People();
     people.roles = [CI,AR];
     people.roles = [CI,AR];
     $.when(people.fetch()).then(function(){
     people.on("sync", function(){
         people.each(function(person){
         people.each(function(person){
             person.set('url', person.get('url').replace("?embed", ""));
             person.set('url', person.get('url').replace("?embed", ""));
             console.log(person.get('url'));
             console.log(person.get('url'));
         });
         });
        var view = new CarouselView({el: "#carousel", model: people});
    });
 
    var view = new CarouselView({el: "#carousel", model: people});
         _.defer(function(){
         _.defer(function(){
             $(".carouselPrev,.carouselNext").addClass("highlights-background-hover");
             $(".carouselPrev,.carouselNext").addClass("highlights-background-hover");
         });
         });
    });
});
});
</script>
</script>

Revision as of 19:22, 21 July 2020