19 lines
519 B
Python
19 lines
519 B
Python
|
C = ['#16ff00','#72ed00','#9adb00','#b7c700','#cdb200','#e09b00','#ee8200','#f86600','#fe4400','#ff0000',]
|
||
|
print("""<html>
|
||
|
<head>
|
||
|
<style>
|
||
|
span { color:white }""")
|
||
|
for (i,c) in enumerate(C):
|
||
|
print(".c%d { background-color:%s }"%(i,c))
|
||
|
print("""</style>
|
||
|
</head>
|
||
|
<body>""")
|
||
|
import sys
|
||
|
for l in sys.stdin.read().splitlines():
|
||
|
for c in l:
|
||
|
#print('<span class="c%s"> </span>'%(c), end='')
|
||
|
print('<span class="c%s"> %s </span>'%(c,c), end='')
|
||
|
print('<br>')
|
||
|
print("""</body>
|
||
|
</html>""")
|