Difference between revisions of "Team:Tuebingen/Art and Design"

Line 25: Line 25:
 
function createCarousel() {
 
function createCarousel() {
 
var carousel = document.getElementById('carousel');
 
var carousel = document.getElementById('carousel');
var slots = [];
+
slots = [];
 
carousel.style.cssText = 'width:100%;text-align:center;height:300px;position:relative;margin-top:40px;';
 
carousel.style.cssText = 'width:100%;text-align:center;height:300px;position:relative;margin-top:40px;';
 
for (var i=0;i<imgURLs.length;i++) {
 
for (var i=0;i<imgURLs.length;i++) {
Line 48: Line 48:
 
carousel.appendChild(right);
 
carousel.appendChild(right);
 
}
 
}
var slotPos = [315,0,45,90,135,180,225,270]
+
slotPos = [315,0,45,90,135,180,225,270]
 
/*slots[0].style.display = 'block';
 
/*slots[0].style.display = 'block';
 
slots[0].style.marginLeft = '-325px';
 
slots[0].style.marginLeft = '-325px';

Revision as of 16:41, 18 September 2015

<
>