Post by thefacebiters » Mon Mar 02, 2015 12:18 pm

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.

Newbie

Posts

Joined
Mon Mar 02, 2015 9:14 am

Post by viethemes » Wed Mar 04, 2015 9:19 pm

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


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by noactr » Thu Mar 05, 2015 3:02 pm


Newbie

Posts

Joined
Thu Mar 05, 2015 2:55 pm
Who is online

Users browsing this forum: No registered users and 5 guests