src/cm/media/js/client/c_toc.js
changeset 425 d70552fc1a66
parent 424 2f9108930e47
child 440 0d2d10bc47bd
equal deleted inserted replaced
424:2f9108930e47 425:d70552fc1a66
    69         easing: CY.Easing.easeOut
    69         easing: CY.Easing.easeOut
    70     });   
    70     });   
    71   gToc['animationShow'] = animationShow ; 
    71   gToc['animationShow'] = animationShow ; 
    72   animationShow.set('to', { opacity: 1});
    72   animationShow.set('to', { opacity: 1});
    73   gToc['animationShow-handle'] = animationShow.on('end', onTocShowAnimEnd, gToc);
    73   gToc['animationShow-handle'] = animationShow.on('end', onTocShowAnimEnd, gToc);
    74   document.getElementsByClassName('c-toc')[0].style.width = width + 'px';
    74   if (typeof document.getElementsByClassName!='function') {
       
    75     document.querySelectorAll('.c-toc')[0].style.width = width + 'px';
       
    76   }
       
    77   else {
       
    78     document.getElementsByClassName('c-toc')[0].style.width = width + 'px';
       
    79   }
    75 }
    80 }
    76 
    81 
    77 toggleTocFn = function() {
    82 toggleTocFn = function() {
    78   if (isTocVisible())
    83   if (isTocVisible())
    79     hideToc();
    84     hideToc();