HOW TO GET YOUR OWN DRAW BOX
Originally written by someone else.
HOW TO SET UP
you need 2 things: a google account, and 2 files that i will provide you.
[[Xenon has added his own copied files in text boxes below, save the text as the indicated file name.]]
drawbox.html - this is where the actual drawbox itself is.
drawbox.js - this is the code that saves the image
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.
GOOGLE_FORM_ID
the long string of text is your google form URL. i highlighted mine in yellow. 1FAIpQLScbzFT1pxeIkp8yNB3fB7VD9V89Jbitr4h30Q3jXYjy54SlMQ
ENTRY_ID
your entry id will be formatted along the lines of this; i highlighted mine in blue entry.258336726
DISPLAY_IMAGES
simply set this to true or false depending if you wish to display your images on your page or not.
GOOGLE_SHEET_ID
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.
[[DISCLAIMER: Personal information for the original author has been removed from my page and from the shared codes. Credit is linked at the top of the page, where all original information is kept intact. I did not write this tutorial, I am only rehosting as the original has been down down for a while and the author has not responded to emails. If this is yours and you want me to remove it, please put yours back up. Thanks.]]