[et_pb_section admin_label=“section“]
[et_pb_row admin_label=“row“]
[et_pb_column type=“4_4″][et_pb_text admin_label=“Text“]
jQuery(document).bind('keyup', function(e) {
if (e.keyCode == 39) { jQuery('a.carousel-control.right').trigger('click'); }
else if (e.keyCode == 37) { jQuery('a.carousel-control.left').trigger('click'); }
});
// All images need to be loaded for this plugin to work so // we end up waiting for the whole window to load in this example $(window).load(function() { $(document).ready(function() { collage(); $('.Collage').collageCaption(); }); });
// Here we apply the actual CollagePlus plugin function collage() { $('.Collage').removeWhitespace().collagePlus( { 'fadeSpeed': 2000, 'targetHeight': 300, 'allowPartialLastRow': true
} ); } ;
// This is just for the case that the browser window is resized var resizeTimer = null; $(window).bind('resize', function() { // hide all the images until we resize them $('.Collage .Image_Wrapper').css("opacity", 0); // set a timer to re-apply the plugin if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(collage, 300); });
WordPress Cookie Hinweis von Real Cookie Banner
[/et_pb_text][/et_pb_column]
[/et_pb_row]
[/et_pb_section]