$(document).ready(function() { $('#owl-gd').owlcarousel({ autoplay: 4000, items : 5, itemsdesktop : [1199,5], itemsdesktopsmall : [980,3], itemstablet: [768,3], itemstablet: [620,2], itemstabletsmall: [550,2], itemsmobile : [480,2], }); //owl carousel $('#owl-works').owlcarousel({ autoplay: 4000, items : 1, itemsdesktop : [1199,1], itemsdesktopsmall : [980,1], itemstablet: [768,1], itemstabletsmall: [550,1], itemsmobile : [480,1], }); $("#owl-demo").owlcarousel({ slidespeed : 300, paginationspeed : 400, singleitem:true, autoplay:5000, autoheight:true }); $(".owlprod").owlcarousel({ items : 4, autoplay:5000 }); if (typeof(wow) != "undefined"){ $(".indexconimg").addclass('wow fadeindown'); new wow().init(); } }); $(function() { if(typeof youku_video_margin == 'undefined') { youku_video_margin=5; } $('iframe').each(function(index,item) { if($(item).attr('src').match()) { var w=$(item).attr('width'); var h=$(item).attr('height'); var ar = h/w*100; ar=ar.tofixed(2); $(item).css('position','absolute'); $(item).css('top','0'); $(item).css('left','0'); $(item).css('width','100%'); $(item).css('height','100%'); $(item).css('max-width',w+'px'); $(item).css('max-height', h+'px'); $(item).wrap('
'); $(item).wrap('
'); } }); });