I made a custom cPanel theme for a client that matches their wordpress/ipb/whmcs themes. The script works in all other themes, plus locally. I can't figure why it doesn't work in cpanel theme. Is there something I should know about adding javascript to a cPanel theme?
Here is an example of the scripts used:
and
Any ideas?
Here is an example of the scripts used:
Code:
<script type="text/javascript">
var LiveHelpSettings = {};
LiveHelpSettings.server = 'portal.xxxxxx.com/modules';
LiveHelpSettings.embedded = false;
LiveHelpSettings.protocol = 'https://';
(function(d, $, undefined) {
$(window).ready(function() {
var LiveHelp = d.createElement('script'); LiveHelp.type = 'text/javascript'; LiveHelp.async = true;
LiveHelp.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + LiveHelpSettings.server + '/livehelp/scripts/jquery.livehelp.js';
var s = d.getElementsByTagName('script')[0];
s.parentNode.insertBefore(LiveHelp, s);
});
})(document, jQuery);
</script>
Code:
<script type="text/javascript">
$(function() {
$(".h-plan-t-style3 a[title]").tooltips();
});
</script>