preview.html 717 B

1234567891011121314151617181920
  1. {% load wagtailuserbar %}
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <style>
  7. body, html {
  8. margin: 0; padding: 0; height: 100%; overflow: hidden;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <iframe id="preview-iframe" title="Headless preview" src="{{ preview_url }}" width="100%" height="100%" style="border: none;"></iframe>
  14. {% comment %}
  15. Include the wagtail userbar so we can run Axe in the intermediate
  16. iframe, but hide it so it's invisible.
  17. {% endcomment %}
  18. <div hidden>{% wagtailuserbar %}</div>
  19. </body>
  20. </html>