1function docready() {
2 $('.ftext').each(function(){
3 var h = $(this).outerHeight();
4 if (h > 230) {
5 $(this).css({'overflow':'hidden','height':'223px'});
6 $(this).after('<div class="show-text">Показать весь текст</div>');
7 };
8 });
9 $('body').on('click','.show-text',function(){$('.ftext').removeAttr('style'); $(this).remove();});
10 $('#dle-content > #dle-ajax-comments').appendTo($('#full-comms'));
11
12};
13
14$(document).ready(function(){
15
16 $('.js-side-title').each(function(){
17 var a = $(this), b = a.closest('.js-side-item'), c = a.text().substr(0,1), f = b.find('.js-side-img'),
18 d = ["#2a56bd","#2a56bd","#2a56bd","#2a56bd","#2a56bd","#2a56bd"],
19 rand = Math.floor(Math.random() * d.length);
20 f.html('<div class="side-letter fx-col fx-center" style="background-color:'+d[rand]+'">'+c+'</div>');
21 });
22
23 docready();
24
25 $('body').on('click', '.js-play', function() {
26 var currentPlayBtn = $(this), currentPlay = currentPlayBtn.closest('.js-item');
27 if ( currentPlay.hasClass('js-item-current') ) {
28 $('.wplayer').remove();
29 $('.js-item').removeClass('js-item-played js-item-stopped js-item-current');
30 } else {
31 apBuilding(currentPlay);
32 $('.audioplayer-playpause a').trigger( "click" );
33 };
34 });
35
36 $('body').on('click', '.ap-next', function() {
37 apNext();
38 });
39 $('body').on('click', '.ap-prev', function() {
40 apPrev();
...
</html>