| <!doctype html> |
| <meta charset="UTF-8"> |
| <title>Screensaver</title> |
| <style> |
| html { |
| height: 100%; |
| } |
| |
| body { |
| align-items: center; |
| background: black; |
| display: flex; |
| height: 100%; |
| margin: 0; |
| width: 100%; |
| } |
| |
| #wrapper { |
| position: relative; |
| width: 100%; |
| } |
| |
| #background-video { |
| height: auto; |
| width: 100%; |
| } |
| |
| #text-layer { |
| align-items: center; |
| display: flex; |
| height: 100%; |
| justify-content: center; |
| position: absolute; |
| top: 0; |
| width: 100%; |
| } |
| |
| #text { |
| color: rgb(44, 103, 234); |
| position: relative; |
| text-align: center; |
| white-space: pre; |
| } |
| </style> |
| <script src="screen.js"></script> |
| |
| <div id="wrapper"> |
| <video id="background-video" src="background-video.webm" autoplay loop> |
| </video> |
| <div id="text-layer"><span id="text"></span></div> |
| </div> |