I've installed and activated the module, entered the following code into appropriate fields on the content type, and i'm not seeing any effect. CSS effects are working fine. The problem appears to be js related. Please can you advise on tests I can perform to see what may be broken.

Edit content => vertical menus => CSS& Javascript => Javascript

===

alert('videoBG behaviour triggering');

(function ($) {
Drupal.behaviors.CpnTest = {
attach: function(context, settings) {
$('#content').css("font-size", 20);
})
}
};
})(jQuery);

===

Comments

Syntapse’s picture

Issue summary: View changes
Syntapse’s picture

more info
======

an alert on its own works....

e.g. alert('javascript executing from node');

but this jquery code doesnt...

$(document).ready(function() {
$("body").css("font-size", "20px");
});

Any advice will be very much appreciated.

Syntapse’s picture

this shows the alert but not the query effect...

alert('javascript executing from node');

(function ($) {
$("body").css("color", "green");
}(jQuery));

DamienMcKenna’s picture

Category: Bug report » Support request
Priority: Major » Normal

You probably have to wrap it in a Drupal behavior - give that a shot, let me know how it goes.

DamienMcKenna’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.