1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 02:42:40 +01:00
phorge-phorge/webroot/rsrc/js/application/diffusion/behavior-jump-to.js

16 lines
319 B
JavaScript
Raw Normal View History

/**
* @provides javelin-behavior-diffusion-jump-to
* @requires javelin-behavior
* javelin-util
* javelin-vector
* javelin-dom
*/
JX.behavior('diffusion-jump-to', function(config) {
setTimeout(function() {
window.scrollTo(0, JX.$V(JX.$(config.target)).y - 100);
}, 0);
});