44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en-GB">
 | |
|     <head>
 | |
|         <meta charset="utf-8" />
 | |
|         <style>
 | |
|             @font-face {
 | |
|                 font-family: "Bitwise";
 | |
|                 font-style: normal;
 | |
|                 font-weight: bold;
 | |
|                 src: url("./Bitwise.woff2") format("woff2"), url("./Bitwise.ttf") format("truetype");
 | |
|             }
 | |
|             body {
 | |
|                 background: #fafafa;
 | |
|             }
 | |
|             pendor-clock::clock {
 | |
|                 font-family: Bitwise;
 | |
|             }
 | |
|             .demo {
 | |
|                 border: 1px solid DarkSlateGray;
 | |
|                 padding: 1rem;
 | |
|             }
 | |
|         </style>
 | |
|     </head>
 | |
|     <body>
 | |
|         <div id="demo"></div>
 | |
|         <script type="module">
 | |
|             import { html, render } from "lit";
 | |
|             import "../dist/src/pendor-clock.js";
 | |
|             render(
 | |
|                 html`
 | |
|                     <div class="demo">
 | |
|                         <p>Using the local font (Bitwise, in the ./demo folder)</p>
 | |
|                         <pendor-clock> </pendor-clock>
 | |
|                         <p>Using the Pendorian centaur calendar and local font (Bitwise, in the ./demo folder)</p>
 | |
|                         <pendor-clock centaurs> </pendor-clock>
 | |
|                         <p><a href="./index.html">See demo with an injected font</a></p>
 | |
|                     </div>
 | |
|                 `,
 | |
|                 document.querySelector("#demo")
 | |
|             );
 | |
|         </script>
 | |
|     </body>
 | |
| </html>
 |