MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / jumpToTarget

Function jumpToTarget

examples/assets/library/iframe-content.js:408–413  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

406
407 function findTarget(location) {
408 function jumpToTarget(target) {
409 var jumpPosition = getElementPosition(target);
410
411 log('Moving to in page link (#'+hash+') at x: '+jumpPosition.x+' y: '+jumpPosition.y);
412 sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset'); // X&Y reversed at sendMsg uses height/width
413 }
414
415 var
416 hash = location.split('#')[1] || location, //Remove # if present

Callers 1

findTargetFunction · 0.70

Calls 3

sendMsgFunction · 0.85
getElementPositionFunction · 0.70
logFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…