| <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.0.2/purify.min.js"></script> | <script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.0.2/purify.min.js"></script> | ||||
| <script src="/pico.js" defer></script> | <script src="/pico.js" defer></script> | ||||
| <link rel="stylesheet" href="/pico.css" /> | <link rel="stylesheet" href="/pico.css" /> | ||||
| <link rel="icon" href="/pico.svg" /> | |||||
| <body>PicoChat requires JS</body> | <body>PicoChat requires JS</body> | ||||
| </html> | </html> |
| content_type = 'application/javascript; charset=utf-8' | content_type = 'application/javascript; charset=utf-8' | ||||
| elif path.endswith('.css'): | elif path.endswith('.css'): | ||||
| content_type = 'text/css; charset=utf-8' | content_type = 'text/css; charset=utf-8' | ||||
| elif path.endswith('.svg'): | |||||
| content_type = 'image/svg+xml; charset=utf-8' | |||||
| else: | else: | ||||
| content_type = 'text/plain; charset=utf-8' | content_type = 'text/plain; charset=utf-8' | ||||
| return ( | return ( |
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 10 10"> | |||||
| <rect x="-5" y="-5" width="10" height="10" fill="royalblue" /> | |||||
| <polygon points="3,-3 -1,1.3 -1,3" fill="white"/> | |||||
| <polygon points="3,-3 -1,1.3 1,2" fill="white"/> | |||||
| <polygon points="3,-3 -3,0 -1.5,1" fill="white"/> | |||||
| </svg> |