Function
compositionWithBodyPrefix
(prefixContent: string, rootContent = "")
Source from the content-addressed store, hash-verified
| 31 | } |
| 32 | |
| 33 | function compositionWithBodyPrefix(prefixContent: string, rootContent = ""): string { |
| 34 | return ` |
| 35 | <html> |
| 36 | <head> |
| 37 | <style> |
| 38 | body { margin: 0; } |
| 39 | </style> |
| 40 | </head> |
| 41 | <body> |
| 42 | ${prefixContent} |
| 43 | <div data-composition-id="c1" data-width="1920" data-height="1080"> |
| 44 | ${rootContent} |
| 45 | </div> |
| 46 | <script>window.__timelines = {};</script> |
| 47 | </body> |
| 48 | </html>`; |
| 49 | } |
| 50 | |
| 51 | function compositionWithImplicitBodyPrefix(prefixContent: string): string { |
| 52 | return ` |
Tested by
no test coverage detected