I've been trying desperately to get Vide.js working on a current OpenCart project.
I'm certain I typed the code correctly:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../libs/jquery/dist/jquery.min.js"><\/script>') </script>
<script src="src/jquery.vide.js"></script>
<script>
$(document).ready(function () {
$(document.body).vide("video/supermaxvid"); // Non declarative initialization
var instance = $(document.body).data("vide"); // Get instance
var video = instance.getVideoObject(); // Get video object
instance.destroy(); // Destroy instance
});
</script>
Full code via PasteBin http://pastebin.com/v7EBa94x : header.tpl
In all I'm hoping you might be able to point out some silly mistake I'm making.
Thank you for your time so far.
I'm certain I typed the code correctly:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../libs/jquery/dist/jquery.min.js"><\/script>') </script>
<script src="src/jquery.vide.js"></script>
<script>
$(document).ready(function () {
$(document.body).vide("video/supermaxvid"); // Non declarative initialization
var instance = $(document.body).data("vide"); // Get instance
var video = instance.getVideoObject(); // Get video object
instance.destroy(); // Destroy instance
});
</script>
Full code via PasteBin http://pastebin.com/v7EBa94x : header.tpl
In all I'm hoping you might be able to point out some silly mistake I'm making.
Thank you for your time so far.
Could you provide your site url, so we can take a look at the problem closer?
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Who is online
Users browsing this forum: No registered users and 5 guests