MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / scrollToRound

Function scrollToRound

codeclash/viewer/static/js/app.js:257–271  ·  view source on GitHub ↗
(roundNum)

Source from the content-addressed store, hash-verified

255
256// Round navigation functionality
257function scrollToRound(roundNum) {
258 const roundAnchor = document.getElementById(`round-${roundNum}`);
259 if (roundAnchor) {
260 // Smooth scroll to the round section
261 roundAnchor.scrollIntoView({
262 behavior: "smooth",
263 block: "start",
264 });
265
266 // Close TOC menu after navigation (optional - user can keep it open)
267 // closeTocMenu();
268 } else {
269 console.warn(`Round ${roundNum} anchor not found`);
270 }
271}
272
273// Scroll to top functionality
274function scrollToTop() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected