Roderic Day 5 vuotta sitten
vanhempi
commit
95dfd7e642
3 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. +1
    -0
      pico.html
  2. +2
    -0
      pico.py
  3. +6
    -0
      pico.svg

+ 1
- 0
pico.html Näytä tiedosto

@@ -6,5 +6,6 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.0.2/purify.min.js"></script>
<script src="/pico.js" defer></script>
<link rel="stylesheet" href="/pico.css" />
<link rel="icon" href="/pico.svg" />
<body>PicoChat requires JS</body>
</html>

+ 2
- 0
pico.py Näytä tiedosto

@@ -23,6 +23,8 @@ class PicoProtocol(websockets.WebSocketServerProtocol):
content_type = 'application/javascript; charset=utf-8'
elif path.endswith('.css'):
content_type = 'text/css; charset=utf-8'
elif path.endswith('.svg'):
content_type = 'image/svg+xml; charset=utf-8'
else:
content_type = 'text/plain; charset=utf-8'
return (

+ 6
- 0
pico.svg Näytä tiedosto

@@ -0,0 +1,6 @@
<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>

Loading…
Peruuta
Tallenna