diff options
Diffstat (limited to 'slideshows/default/template/events.js')
-rw-r--r-- | slideshows/default/template/events.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/slideshows/default/template/events.js b/slideshows/default/template/events.js new file mode 100644 index 0000000..a6202ff --- /dev/null +++ b/slideshows/default/template/events.js @@ -0,0 +1,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);
+
+});
|