MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / extractGsapScript

Function extractGsapScript

packages/parsers/src/htmlParser.ts:901–914  ·  view source on GitHub ↗
(doc: Document)

Source from the content-addressed store, hash-verified

899}
900
901function extractGsapScript(doc: Document): string | null {
902 const scripts = doc.querySelectorAll("script");
903 for (const script of scripts) {
904 const content = script.textContent || "";
905 if (
906 content.includes("gsap.timeline") ||
907 content.includes(".set(") ||
908 content.includes(".to(")
909 ) {
910 return content;
911 }
912 }
913 return null;
914}

Callers 1

validateCompositionHtmlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected