* 同步滚动
(textareaId, backdropId)
| 35 | * 同步滚动 |
| 36 | */ |
| 37 | function 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. 二维码放大弹窗逻辑 |