library
Prebuilt pebble components: drop-in custom elements, no compiler needed
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runAucun
0Étoiles
0Forks
2Issues
| 1 | <!doctype html> |
| 2 | <!-- |
| 3 | Smoke fixture for dist/lite-youtube.js on a real engine. Self-driving: |
| 4 | lite-youtube.page.ts imports the shipped bundle, checks that nothing came |
| 5 | from YouTube, clicks the poster and writes a JSON verdict into |
| 6 | <pre id="smoke">. `bun examples/page-smoke.ts lite-youtube` serves this file |
| 7 | and reads the verdict out of headless Chromium. The poster is an inline SVG |
| 8 | data URL, so the page itself needs no network. |
| 9 | --> |
| 10 | <html lang="fr-CA"> |
| 11 | <head> |
| 12 | <meta charset="utf-8" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 14 | <title>lite-youtube smoke</title> |
| 15 | <script type="module" src="./lite-youtube.page.ts"></script> |
| 16 | </head> |
| 17 | <body style="margin: 0; padding: 16px"> |
| 18 | <pebble-lite-youtube video="dQw4w9WgXcQ" title="Bande-annonce : Maman, j’ai raté l’avion"> |
| 19 | <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"> |
| 20 | <img alt="Bande-annonce : Maman, j’ai raté l’avion" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='360'%3E%3Crect width='480' height='360' fill='%23246'/%3E%3C/svg%3E" /> |
| 21 | <span class="play" aria-hidden="true">▶</span> |
| 22 | </a> |
| 23 | </pebble-lite-youtube> |
| 24 | <pre id="smoke">PENDING</pre> |
| 25 | </body> |
| 26 | </html> |