js/main.js
// mark question as completed @param question number

mark question as completed @param question number
mark question as completed @param question number
function markComplete(question) {
    var QuestionProgress = (typeof Cookies.get('QuestionProgress') !== 'undefined') ? JSON.parse(Base64.decode(Cookies.get('QuestionProgress'))) : []
    if (!isCompleted(question)) {
        QuestionProgress.push(parseInt(question))
        Cookies.set('QuestionProgress', Base64.encode(JSON.stringify(QuestionProgress)))
    }
    return true
}
function markComplete ( question ) { var QuestionProgress = ( typeof Cookies . get ( 'QuestionProgress' ) !== 'undefined' ) ? JSON . parse ( Base64 . decode ( Cookies . get ( 'QuestionProgress' ) ) ) : [ ] if ( ! isCompleted ( question ) ) { QuestionProgress . push ( parseInt ( question ) ) Cookies . set ( 'QuestionProgress' , Base64 . encode ( JSON . stringify ( QuestionProgress ) ) ) } return true }
mark question as completed @param question number
mark question as completed @param question number
// get the current progress
 // then set the new cookie!
