Replies: 0
The HTML of my page has <p> in the middle of the script. How could I fix this?
<p><script>
/* The Owl Initialization Script
/* The first lines conditionally show the slide animation */
jQuery(window).on("load", function(){
var $galleryContainer = jQuery( '#foogallery-gallery-1785' );
var $containerID = '#foogallery-gallery-1785';</p>
<p> jQuery(document).on('keydown', function( event ) { //attach event listener
if (event.keyCode == 37) {
$galleryContainer.trigger('prev.owl')
}
if (event.keyCode == 39) {
$galleryContainer.trigger('next.owl')
}
});</p>
<p> $galleryContainer.owlCarousel({
animateOut: false,
animateIn: false,
items: 1,
nav: false,
margin: 0,
loop:true,
autoplay: true,
autoplaySpeed: 2000,
smartSpeed:250,
navSpeed: 1250,
navText: ['prev', 'next'],
autoplayHoverPause: true,
lazyLoad: 1,
autoWidth: 1,
});
});
</script></p>