No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$('#bodyContent > h1').hide(); | $('#bodyContent > h1').hide(); | ||
$(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", "")); | ||