js/main.js
// check if the question is complete @param - question number

check if the question is complete @param - question number
check if the question is complete @param - question number
function isCompleted(question) {
    var QuestionProgress = (typeof Cookies.get('QuestionProgress') !== 'undefined') ? JSON.parse(Base64.decode(Cookies.get('QuestionProgress'))) : []
    if (QuestionProgress.indexOf(parseInt(question)) > -1) {
        return true
    }
    return false
}
function isCompleted ( question ) { var QuestionProgress = ( typeof Cookies . get ( 'QuestionProgress' ) !== 'undefined' ) ? JSON . parse ( Base64 . decode ( Cookies . get ( 'QuestionProgress' ) ) ) : [ ] if ( QuestionProgress . indexOf ( parseInt ( question ) ) > - 1 ) { return true } return false }
check if the question is complete @param - question number
check if the question is complete @param - question number
// progress
 // if it exists in the array it's done!
