summaryrefslogtreecommitdiff
path: root/slideshows/default/template/events.js
diff options
context:
space:
mode:
authorBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-10 02:27:48 +0100
committerBenjamin Kiessling <mittagessen@l.unchti.me>2012-01-10 02:27:48 +0100
commit86ce3642059788803fa4cb941492a27bebccba63 (patch)
treed1bc15244f421ada4eabbfbae9d1f259de8297f8 /slideshows/default/template/events.js
parent0bdcf40892ba346c68ed23e9fa0af695223340d4 (diff)
Update examples
Diffstat (limited to 'slideshows/default/template/events.js')
-rw-r--r--slideshows/default/template/events.js12
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);
+
+});