<
  AI4Society Website  

The following NCEs have contributed to the development of the Forum:
GRAND, AGE-WELL, GlycoNet, CFN
Les RCE suivants ont contribué au développement du Forum : GRAND, AGE-WELL, GlycoNet, CFN

Difference between revisions of "Carousel"

From AI4Society Forum

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