ucsb-cs148-s21 / 1pm-t6-ucsb-poll

Allows anyone with a UCSB email to vote on virtually anything.
MIT License
2 stars 4 forks source link

unique poll page and only vote once #64

Closed zhengyingl closed 3 years ago

zhengyingl commented 3 years ago

1.fixed “clicking logo brings a blank page ” problem

all the following changes are all only for "on the poll’s unique page", not change homepage yet : action:need to log in! in popular poll/recent poll part, click on the question name, then you can go to this poll's unique page 2.make the unique poll page with /poll/pollid left: vote options&vote action right: click “result” then see the result (Note: sorry for the strange looking I try but really don’t know how to edit the css format for newpollresult.js, really need help to change the css of these two part. Thanks!) 3.update database(addnewvote in server.js) when user votes : in data base, append array to “users->voted” format:”vote option number”+”question” “Polls”->”person attend” format:”vote option number”+”email” 4:then now each user who login can only vote once