{"conversations": [{"from": "user", "value": "Escriu un codi en javascript per crear una ruleta on es puguin pujar mitjan\u00e7ant un csv els participants, o el que s'est\u00e0 rifant"}, {"from": "assistant", "value": "HTML: <! DOCTYPE html> <html> <head> < title>Ruleta de premis </ title> <meta charet=\" UTF-8\" > <meta name=\"viewport\" content=\" width=device- width, initial- scale= 1. 0\" > </ head> <body > < http: local (\"UTF- 8\" > <meta de premis < h1> < label for=\" csv- file\" > Carrega participants: < inputth=\"file\" id=\" csv- file\" > </form> <canvas id=\"canvas\" width=\" height=\" 400\"> </canvas> < button id= \"button\">Girar la ruleta </button > <script src=\"ruleta. t=\" lle- tt( gt)"}, {"from": "user", "value": "Em resulta molt dif\u00edcil llegir aquest codi. Podries donar-li format i ressaltar la sintaxi?"}, {"from": "assistant", "value": "Per descomptat que s\u00ed i perdoneu- me! Aqu\u00ed us donar\u00e9 un nou codi. HTML: \\ html <! DOCTYPE html> <html > <head> < title>Ruleta de participants </ title> <meta charset=\" UTF- 8\" > <meta name=\"viewport\" content=\" width=device- width, initial- scale= 1. 0\" > <link rel=\" stylesheet\" href=\" style. csss\"> </ head> <bo: h1> Ruleta de participants < h1> <input type=\" file\" id=\" csv- file\" accept=. csv\"> <button id = \"spin- btn\" disabled>Girar < hutton> <input) typt; btscript: > stttch"}]}