Advertisement
minimite

x

Aug 10th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. local p = peripheral.wrap("bottom")
  2. local fn = "file.css"
  3.  
  4.  
  5. local open = fs.open(fn, "r")
  6. local str = open.readAll()
  7. open.close()
  8.  
  9. p.runJS('var style = document.createElement("style");\nstyle.type = "text/css";\nstyle.innerHTML = "' .. str .. '";\ndocument.getElementsByTagName(\'head\')[0].appendChild(style);')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement