MCPcopy
hub / github.com/sansan0/TrendRadar / syncScroll

Function syncScroll

docs/assets/script.js:37–44  ·  view source on GitHub ↗

* 同步滚动

(textareaId, backdropId)

Source from the content-addressed store, hash-verified

35 * 同步滚动
36 */
37function syncScroll(textareaId, backdropId) {
38 const ta = document.getElementById(textareaId);
39 const bd = document.getElementById(backdropId);
40 if (ta && bd) {
41 bd.scrollTop = ta.scrollTop;
42 bd.scrollLeft = ta.scrollLeft;
43 }
44}
45
46// ==========================================
47// 12. 二维码放大弹窗逻辑

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected