// Question keeper var originalWidth = 140; var animeSpeed = 35; var first = 0; var openqk = 0; function hideQ() { if(openqk==1) { var root2=document.getElementById('questionSlider'); if(root2) { while(root2.hasChildNodes()) { root2.removeChild(root2.childNodes[0]) } } var root=document.getElementById('mainQuestion'); var root3=document.getElementById('tempQuestion'); root.removeChild(root3); animateHideQ(); openqk = 0; } } function animateHideQ() { var slider = document.getElementById('questionSlider'); var curWidth = slider.offsetWidth; if(curWidth>(animeSpeed-1)) { slider.style.width= (curWidth - animeSpeed)+"px"; setTimeout(animateHideQ,1); } } function animateShowQ() { var slider = document.getElementById('questionSlider'); var curWidth = slider.offsetWidth; if(curWidth"+erase.substring(x+1,erase.length); return s; } return erase; } /* *Used file: questions.html *Desc: Removes the given string from the cookie * Then fills the listall list with the elements in the cookie */ function deleteFromCookie(erase) { var x = readCookie('micardisqkcookie'); while(isCommaSign(erase)==true) { erase = addCommaSign(erase); } var y = '~'; if(x!='~') { var mySplitResult = x.split("~"); var root=document.getElementById('listall'); var li; for(var i=0; i0 ;i--) { if(mySplitResult[i]!="") { var temp2 = removeComma((mySplitResult[i])); while(isComma(temp2)==true) { temp2 = removeComma(temp2); } addRemoveProperty(temp2); } } } } /* *Used file: All the files with question keeper box *Desc: Fill the given list