<
  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 10: Line 10:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
$('#bodyContent > h1').hide();
 
$('#bodyContent > h1').hide();
createCarousel("#carousel", [CI,AR]);
+
 
 +
$(document).ready(function(){
 +
    var people = new People();
 +
    people.roles = [CI,AR];
 +
    $.when(people.fetch()).then(function(){
 +
        people.each(function(person){
 +
            person.set('url', person.get('url').replace("?embed", ""));
 +
        });
 +
        var view = new CarouselView({el: "#carousel", model: people});
 +
    });
 +
});
 +
 
 
setInterval(function(){
 
setInterval(function(){
 
     $("a.carouselUrl").attr("href", $("a.carouselUrl").attr("href").replace("?embed", ""));
 
     $("a.carouselUrl").attr("href", $("a.carouselUrl").attr("href").replace("?embed", ""));

Revision as of 19:05, 21 July 2020