Hello sitepoint community!
I am currently learning JS and am a little stuck with a jQuery Lightbox plugin called VenoBox.
I’ve followed the steps in the documentation and believe I’m probably missing something really obvious, but can’t figure it out. I’ve created a website using a ThemeForest template which I’ve edited to make it personalised. You can view the website here as a reference.
If you click on the top right hand image which, when hovered over, should display the text SCOPE, then click, you’ll see the VenoBox is present and a loading circle appears. However, the video never loads.
If I follow the documentation, I can confirm I’ve done the following:
Include venobox.css into the HTML
<link rel="stylesheet" href="stylesheets/bootstrap.css">
<link rel="stylesheet" href="stylesheets/isotope.css">
<link rel="stylesheet" href="stylesheets/venobox.css">
<link rel="stylesheet" href="stylesheets/sinister.css">
<link rel="stylesheet" href="stylesheets/slimmenu.css">
<link rel="stylesheet" href="stylesheets/main.css">
<link rel="stylesheet" href="stylesheets/main-bg.css">
<link rel="stylesheet" href="stylesheets/main-responsive.css">
<link rel="stylesheet" href="stylesheets/lightbox.css">
Include venobox.min.js into the footer, after the jQuery library
<link rel="stylesheet/less" type="text/css" href="less/color.less">
<link rel="stylesheet/less" type="text/css" href="less/fonts.less">
<script src="less/less.min.js"></script>
<script src="javascripts/libs/venobox.min.js"></script>
Insert one or more links with their custom class
<div class="works-item signature-adler ImageWrapper works-item-one-half zoom logos">
<img data-no-retina alt="" title="" class="img-responsive" src="images/works/04.jpg"/>
<a class="venobox" data-vbtype="video" data-autoplay="true" href="https://vimeo.com/221800817">
<div class="works-item-inner ImageOverlayHe">
<p class="valign text-center"><span class="white font3">SCOPE</span></p>
</div>
</a>
</div>
Initialize plugin
<script>
$(document).ready(function(){
$('.venobox').venobox();
});</script>
So, I’m really stuck as to where I have gone wrong. All of the files are uploaded in their correct places, there don’t appear to be any errors in Visual Studio Code, but the video will not load…
Any help or indication as to where I’ve gone wrong would be greatly appreciated as I’m tearing my hair out!