Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = file.open("index", "w")
- if f then
- file.write("HTTP/1.1 200 OK\r\n")
- file.write("Content-Type: text/html; charset=utf-8\r\n\r\n")
- file.write([[<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Shiny Lights</title><style type="text/css">
- .a0:before, .a1:before {content: "]])
- file.write(string.char(0xF0) .. string.char(0x9F) .. string.char(0x94) .. string.char(0x93))
- file.write([[";color: red; .a1:before, .a2:before, .a3:before, .a4:before {content: "]])
- file.write(string.char(0xF0) .. string.char(0x9F) .. string.char(0x94) .. string.char(0x92))
- file.write([[";} .a2:before {color: orange;} .a3:before {color: yellow;} .a4:before {color: lime;}
- </style>
- </head>
- <body>
- <h1>Confiure your shiny lights</h1>
- <form action="/" method="post">]])
- file.flush()
- file.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement