Events Calendar

<< October 2017 >>
Sun Mon Tue Wed Thu Fri Sat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
 

$(window).on('load resize', function () { $('div[le_content_type="youtube"]').each(function() { var align = this.style.textAlign; if (align.indexOf("right") > -1 ) { $(this).find('iframe').css('right','0'); } else if (align.indexOf("left") > -1) { $(this).find('iframe').css('left','0'); } else if (align.indexOf("center") > -1) { var tw = parseFloat($(this).css('width')); var fw = parseFloat($(this).find('iframe').css('width')); var lv = (tw - fw) / 2; $(this).find('iframe').css('left', lv + 'px'); } }); });