This PR separates out user configuration options into a sd_config function, addressing #11. It also implements a basic working version of:
The preview argument for previewing the survey without connecting to a database.
The start_page argument for starting the survey from a desired page name.
Time stamps on each page turn are now automatically detected and exported in the data.
A basic architecture for setting up the googlesheet database (code isn't written yet, just laid out with comments).
Some basic input checking in sd_config (code still needs to be filled in where commented).
Finally, it modified the sd_question function by putting each question inside its own container with the question_id embedded as an attribute to make it easier to scrape the question_ids from the rendered html page.
This PR separates out user configuration options into a
sd_config
function, addressing #11. It also implements a basic working version of:preview
argument for previewing the survey without connecting to a database.start_page
argument for starting the survey from a desired page name.sd_config
(code still needs to be filled in where commented).Finally, it modified the
sd_question
function by putting each question inside its own container with thequestion_id
embedded as an attribute to make it easier to scrape thequestion_ids
from the rendered html page.