1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00
phorge-phorge/webroot/rsrc/js/application/diffusion/behavior-jump-to.js

15 lines
293 B
JavaScript
Raw Normal View History

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