<

Carousel: Difference between revisions

From AI4Society Forum

No edit summary
No edit summary
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