Close

Account

Documentation

Forum

Menu

Reply To: Execute custom Javascript?

Post count: 9
SupaRub
February 17, 2015 at 5:07 pm #9418

Hi Dek Ery;

So I tried as you told me, modifying both:

/jkreativ-child/public/js/internal/jquery.jlanding.js
/jkreativ-child/public/js/internalmin/jquery.jlanding.js

& adding just before line 559, without modifying the quotes the following code:

$(‘#booking’).waypoint(function(direction) {
alert(‘Top of notify element hit top of viewport.’);
});

I also tried with this one:

var waypoint = new Waypoint({
element: document.getElementById(‘#booking’),
handler: function(direction) {
console.log(‘Scrolled to waypoint!’)
}
})

but nothing works, any clues?