equal
deleted
inserted
replaced
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(); |