summaryrefslogtreecommitdiff
path: root/slideshows/default/template/events.js
blob: a6202ffcb1cdf84188bd0fa922e10a14cc4acd6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function(){

	var tot=$('.event').length;
	
	var screenWidth = $('.events').width();

	var bord = $('.event').outerWidth() - $('.event').innerWidth();
	var padd = $('.event').innerWidth() - $('.event').width();
	var marg = $('.event').outerWidth(true) - $('.event').outerWidth();
	$('.event').width((screenWidth-(tot * (bord+padd+marg)))/tot);

});