Where exactly would I add something like this below:
$('a').click(function() { $('html, body').animate({ scrollTop: $($.attr(this, 'href')).offset().top }, 500); return false; });
I'm also working in the Rails environment then Ember frontend inside the Rails app. I tried it in the Ember vendor's folder and called the import in ember-cli-build.js, and when I go to test it, nothing works. Am I missing a step?
Aucun commentaire:
Enregistrer un commentaire