14 lines
5.0 KiB
JavaScript
14 lines
5.0 KiB
JavaScript
/*
|
|
Plugin : Bootstrap Carousel
|
|
Author : Michael Janea (www.michaeljanea.com)
|
|
Version : 1.9
|
|
*/
|
|
|
|
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('q B(F,11){11=11||N;c 1e={"<":"&1E;",">":"&1Y;","\'":\'t;\',"\\r\\n":\'<I />\',"\\n":\'<I />\',"\\r":\'<I />\'};c A=1D.28(\'5\');A.p=F;K(c 1=0;1<A.15(\'1a\').S;1++){A.15(\'1a\')[1].p=(A.15(\'1a\')[1].p).1c(/(\\r\\n|\\n|\\r)/1K,"<I>")}F=A.p;Q 11?F.1c(/[\']/g,q(m){Q 1e[m]}):F.1c(/[<\'>]/g,q(m){Q 1e[m]})};M.17.19(\'z\',{1C:[\'12\',\'2w\',\'2K\',\'2R\',\'2T\',\'2X\',\'1I\',\'1J\',\'1d\',\'1z-1N\',\'1z\',\'1O\',\'1P\',\'1Q\',\'1R\',\'12-1S\',\'12-1d\',\'12-1T\',\'1U\',\'1V\',\'1W\',\'1X\',\'1y\',\'1y-1d\',\'1Z\',\'20\',\'21\',\'22\',\'23\',\'24\',\'25\',\'26\',\'27\',\'1i\',\'29\',\'2a\',\'2b\',\'2c\',\'2d\',\'2g\',\'1E\',\'2h\',\'2k\',\'2n\',\'2o\',\'2p\',\'2q\',\'2s\',\'1l-I\',\'1l\',\'2u\',\'2v\',\'v\',\'v-2x\',\'2y\',\'2z\',\'2A\',\'2B\',\'2E\',\'2F\',\'2G\',\'2H\',\'2I\',\'2J\',\'32\',\'2L\'],2M:\'2N\',2O:\'z\',1v:q(d){d.2U.19(\'2V\',{C:d.1C.z.31,1H:\'<5 1i="" 3="7 h" 6-1M="7">\'+\'<H 3="7-1g">\'+\'<f 6-Z="" 6-h-Y="" 3=""></f>\'+\'<f 6-Z="" 6-h-Y=""></f>\'+\'<f 6-Z="" 6-h-Y=""></f>\'+\'</H>\'+\'<5 3="7-14" y="1u">\'+\'<5 3="">\'+\'<1k 18="">\'+\'<5 3="7-1t"></5>\'+\'</5>\'+\'</5>\'+\'<a 3="O 7-V" U="" y="C" 6-h="1s">\'+\'<9 3="k k-13-O" W-P="j"></9>\'+\'<9 3="v-R">1r</9>\'+\'</a>\'+\'<a 3="T 7-V" U="" y="C" 6-h="1q">\'+\'<9 3="k k-13-T" W-P="j"></9>\'+\'<9 3="v-R">1p</9>\'+\'</a>\'+\'</5>\',2e:\'5(*)[*];H(*)[*];f(*)[*];a(*)[*];1k(*)[*];9(*)[*];2f(*)[*]\',1o:\'1w\',2i:j,2j:q(8){Q 8.2l==\'5\'&&8.2m(\'7\')},1v:q(){c G=0;K(c 1=0;1<2.8.$.4.S;1++){10(2.8.$.4[1]){2r(2.8.$.4[1].1h){1m\'7-1g\':K(c E=0;E<2.8.$.4[1].4.S;E++){e("2.w(\'u"+E+"\', \'"+2.8.$.4[1].4[E].1h+"\')")}1n;1m\'7-14\':K(c b=0;b<2.8.$.4[1].4.S;b++){G++;e("2.w(\'s"+b+"\', \'"+2.8.$.4[1].4[b].1h+"\')");e("2.w(\'o"+b+"\', \'"+B(2.8.$.4[1].4[b].4[0].2C[\'18\'].2D,d.i.L)+"\')");10(2.8.$.4[1].4[b].X(\'16\')[0]!=t){e("2.w(\'D"+b+"\', \'"+B(2.8.$.4[1].4[b].X(\'16\')[0].p,d.i.L||d.i.1x?j:N)+"\')")}10(2.8.$.4[1].4[b].X(\'1f\')[0]!=t){e("2.w(\'l"+b+"\', \'"+B(2.8.$.4[1].4[b].X(\'1f\')[0].p,d.i.L||d.i.1A?j:N)+"\')")}}1n}}}2.w(\'G\',G)},6:q(){c 1B=2P 2Q();c J=1B.2S();c D=1j=\'\';c 1b=0;K(c 1=0;1<=2.6.G;1++){e("x = 2.6.D"+1);x=x==t?\'\':x;e("l = 2.6.l"+1);l=l==t?\'\':l;e("u = 2.6.u"+1);u=u==t?\'\':u;e("s = 2.6.s"+1);s=s==t?\'\':s;e("o = 2.6.o"+1);o=o==t?\'\':o;10(o){D+=\'<f 6-Z="#7\'+J+\'" 6-h-Y="\'+1b+\'" 3="\'+u+\'"></f>\';1j+=\' <5 3="\'+s+\'"> <1k 18="\'+o+\'" /> <5 3="7-1t"> \'+(x!=\'\'?\'<5 3="16">\'+B(x,d.i.L||d.i.1x?j:N)+\'</5>\':\'\')+\' \'+(l!=\'\'?\'<5 3="1f">\'+B(l,d.i.L||d.i.1A?j:N)+\'</5>\':\'\')+\' </5> </5> \';1b++}}2.8.2W(\'1i\',\'7\'+J);2.8.$.p=\' <H 3="7-1g"> \'+D+\' </H> <5 3="7-14" y="1u"> \'+1j+\' </5> <a 3="O 7-V" U="#7\'+J+\'" y="C" 6-h="1s"> <9 3="k k-13-O" W-P="j"></9> <9 3="v-R">1r</9> </a> <a 3="T 7-V" U="#7\'+J+\'" y="C" 6-h="1q"> <9 3="k k-13-T" W-P="j"></9> <9 3="v-R">1p</9> </a> \'}});M.1o.19(\'1w\',M.17.1F(\'z\')+\'2Y/z.2Z\');M.1D.30(M.17.1F(\'z\')+\'1G/1L.1G\')}});',62,189,'|bootstrapCarousel_i|this|class|children|div|data|carousel|element|span||bootstrapCarousel_k|var|editor|eval|li||slide|config|true|glyphicon|bootstrapCarousel_caption|||bootstrapCarousel_image|innerHTML|function||bootstrapCarousel_contentClass|undefined|bootstrapCarousel_itemClass|sr|setData|bootstrapCarousel_title|role|bootstrapCarousel|bootstrapCarousel_el|bootstrapCarousel_escapeHtml|button|bootstrapCarousel_item|bootstrapCarousel_j|bootstrapCarousel_text|bootstrapCarousel_total|ol|br|bootstrapCarousel_id|for|mj_variables_allow_html|CKEDITOR|false|left|hidden|return|only|length|right|href|control|aria|getElementsByClassName|to|target|if|bootstrapCarousel_allow_html|en|chevron|inner|getElementsByTagName|carousel_title|plugins|src|add|pre|bootstrapCarousel_target|replace|ca|map|carousel_caption|indicators|className|id|bootstrapCarousel_contents|img|pt|case|break|dialog|Next|next|Previous|prev|caption|listbox|init|bootstrapCarouselDialog|bootstrapCarousel_managePopupTitle|fr|zh|bootstrapCarousel_managePopupCaption|bootstrapCarousel_d|lang|document|lt|getPath|css|template|bs|bg|gm|style|ride|cn|hr|cs|da|nl|au|gb|eo|et|fo|fi|gt|gl|ka|de|el|gu|he|hi|hu|is|createElement|it|ja|km|ko|ku|allowedContent|h3|lv|mk|mask|upcast|ms|name|hasClass|mn|no|nb|fa|switch|pl|39|ro|ru|af|latn|si|sk|sl|es|attributes|value|sv|tt|th|tr|ug|uk|sq|cy|requires|widget|icons|new|Date|ar|getTime|eu|widgets|BootstrapCarousel|setAttribute|bn|dialogs|js|appendStyleSheet|plugin|vi'.split('|'),0,{}))
|
|
|
|
for(var i in CKEDITOR.instances){
|
|
CKEDITOR.instances[i].ui.addButton('BootstrapCarousel', {
|
|
command : 'bootstrapCarousel',
|
|
icon : this.path + 'icons/bootstrapCarousel.png',
|
|
});
|
|
} |