Advertisement
Guest User

Untitled

a guest
May 25th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. f = file.open("index", "w")
  2. if f then
  3.     file.write("HTTP/1.1 200 OK\r\n")
  4.     file.write("Content-Type: text/html; charset=utf-8\r\n\r\n")
  5.     file.write([[<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Shiny Lights</title><style type="text/css">
  6. .a0:before, .a1:before {content: "]])
  7.    file.write(string.char(0xF0) .. string.char(0x9F) .. string.char(0x94) .. string.char(0x93))
  8.    file.write([[";color: red; .a1:before, .a2:before, .a3:before, .a4:before {content: "]])
  9.    file.write(string.char(0xF0) .. string.char(0x9F) .. string.char(0x94) .. string.char(0x92))
  10.    file.write([[";} .a2:before {color: orange;} .a3:before {color: yellow;} .a4:before {color: lime;}
  11. </style>
  12. </head>
  13. <body>
  14. <h1>Confiure your shiny lights</h1>
  15. <form action="/" method="post">]])
  16. file.flush()
  17. file.close()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement