about a year ago i was inspired by strawpage's "oekaki" draw box where you could draw and submit an anonymous image so i decided to create my own because i had access to a server and could use backend scripting languages. it was a success and people generally enjoyed sending me little images however i would often get messages in my guestbook asking how i did it and if they could implement one too. so, i have decided that i would create a drawbox that was nekoweb/neocities friendly and worked on static sites.
for questions, help, or suggestions please email me at drawbox@jhorn.net or message me on discord @MONKEYBATION
you need 2 things: a google account, and 2 files that i will provide you.
in the drawbox.js
file you need to provide 4 variables.
create a google forms. you can call it whatever you like. add a "short answer" question. i called mine "imgur link". press the 3 dots up next to your pfp. press "pre-fill form". it will open a new tab in which your blank google form will be presented to you. input something into the form and tap "get link". copy the link and open it up in a notes app, this is mine:
https://docs.google.com/forms/d/e/1FAIpQLScbzFT1pxeIkp8yNB3fB7VD9V89Jbitr4h30Q3jXYjy54SlMQ/viewform?usp=pp_url&entry.258336726=imgur
you then want to go back to the edit page of your form and click "responses". click "link to sheets" and create a sheet.
the long string of text is your google form URL. i highlighted mine in yellow. 1FAIpQLScbzFT1pxeIkp8yNB3fB7VD9V89Jbitr4h30Q3jXYjy54SlMQ
your entry id will be formatted along the lines of this; i highlighted mine in blue entry.258336726
simply set this to true or false depending if you wish to display your images on your page or not.
navigate to your responses on your google form and press "view in sheets". once on your sheet, press "share" and change General access to "anyone with link", and copy you should get something similar to the below:
https://docs.google.com/spreadsheets/d/16jUCXXinqztl3sFdtpWur9yFCAiASDsvmIsF3xHv-BU/edit?usp=sharing
copy your ID (my one is highlighted in green) and paste it into the GOOGLE_SHEET_ID variable
thats it! if youve set up everything correctly, it should work.