MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / scrollToView

Function scrollToView

js/common.js:135–147  ·  view source on GitHub ↗
(id,dst)

Source from the content-addressed store, hash-verified

133 }
134}
135function scrollToView(id,dst){
136 setTimeout(
137 function(){
138 if(dst&&document.getElementById('code_con').open){
139 console.log('dst',dst)
140 document.getElementById(id).scrollIntoView()
141 window.scrollBy(0,dst)
142 }else{
143 document.getElementById(id).scrollIntoView({behavior:'smooth'})
144 }
145 },1
146 )
147}
148
149function saveScast(){
150 var q = RegExp('[?&]file=([^&]*)').exec(location.href);

Callers 2

genMermaidFunction · 0.85
genD3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected