(element: Element)
| 124 | } |
| 125 | |
| 126 | export function getClasses(element: Element): Set<string> { |
| 127 | const list = new Set<string>(); |
| 128 | for (const cls of element.classList) { |
| 129 | if (!cls.startsWith('rgh-')) { |
| 130 | list.add(cls); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | return list; |
| 135 | } |
| 136 | |
| 137 | const _isSmallDevice = screen.width < 500; |
| 138 | export function isSmallDevice(): boolean { |