Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
No EOL
285 B
Text
12 lines
No EOL
285 B
Text
export default function collectElements(node, direction) {
|
|
var nextNode = null;
|
|
var nodes = [];
|
|
nextNode = node ? node[direction] : null;
|
|
|
|
while (nextNode && nextNode.nodeType !== 9) {
|
|
nodes.push(nextNode);
|
|
nextNode = nextNode[direction] || null;
|
|
}
|
|
|
|
return nodes;
|
|
} |