Download index.html from AIPairProgrammingForAzure/CardFonts: direct link, hf CLI and curl.
- Browser
- Download file 3.13 kB
-
https://huggingface.co/spaces/AIPairProgrammingForAzure/CardFonts/resolve/main/index.html
- Command line
-
hf download hf://spaces/AIPairProgrammingForAzure/CardFonts/index.html
-
curl -L -o index.html https://huggingface.co/spaces/AIPairProgrammingForAzure/CardFonts/resolve/main/index.html
3.13 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Card Font Display</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| line-height: 1.6; | |
| margin: 0; | |
| padding: 20px; | |
| background-color: #f0f0f0; | |
| } | |
| .card { | |
| background-color: white; | |
| border-radius: 10px; | |
| box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |
| margin-bottom: 20px; | |
| padding: 20px; | |
| width: 300px; | |
| } | |
| .title { | |
| font-size: 18px; | |
| font-weight: bold; | |
| margin-bottom: 10px; | |
| } | |
| .body-text { | |
| font-size: 12px; | |
| margin-bottom: 10px; | |
| } | |
| .text-box { | |
| background-color: #f9f9f9; | |
| border: 1px solid #ddd; | |
| font-size: 10px; | |
| padding: 5px; | |
| } | |
| #fontControls { | |
| margin-bottom: 20px; | |
| } | |
| select { | |
| margin-right: 10px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="fontControls"> | |
| <select id="titleFont"> | |
| <option value="Futura, sans-serif">Futura</option> | |
| <option value="Helvetica, sans-serif">Helvetica</option> | |
| <option value="'Trajan Pro', serif">Trajan Pro</option> | |
| <option value="Garamond, serif">Garamond</option> | |
| </select> | |
| <select id="bodyFont"> | |
| <option value="'Minion Pro', serif">Minion Pro</option> | |
| <option value="Palatino, serif">Palatino</option> | |
| <option value="'Times New Roman', serif">Times New Roman</option> | |
| <option value="'Myriad Pro', sans-serif">Myriad Pro</option> | |
| </select> | |
| <select id="textBoxFont"> | |
| <option value="Verdana, sans-serif">Verdana</option> | |
| <option value="Tahoma, sans-serif">Tahoma</option> | |
| </select> | |
| </div> | |
| <div id="cardContainer" class="card"> | |
| <div id="cardTitle" class="title">Card Title</div> | |
| <div id="cardBody" class="body-text">This is the main text of the card. It contains important information about the card's effects or abilities.</div> | |
| <div id="cardTextBox" class="text-box">Flavor text or additional information goes here. It might be slightly condensed to fit more text.</div> | |
| </div> | |
| <script> | |
| function updateFonts() { | |
| document.getElementById('cardTitle').style.fontFamily = document.getElementById('titleFont').value; | |
| document.getElementById('cardBody').style.fontFamily = document.getElementById('bodyFont').value; | |
| document.getElementById('cardTextBox').style.fontFamily = document.getElementById('textBoxFont').value; | |
| } | |
| document.getElementById('titleFont').addEventListener('change', updateFonts); | |
| document.getElementById('bodyFont').addEventListener('change', updateFonts); | |
| document.getElementById('textBoxFont').addEventListener('change', updateFonts); | |
| updateFonts(); | |
| </script> | |
| </body> | |
| </html> |