1function docready() { 2 3 if ($(window).width() > 760) { 4 $('.js-cols').each(function(){ 5 var t = $(this).find('.track-item'), q = t.length; 6 if ( q > 4 ) { 7 qhalf = (Math.round(q/2)); 8 var arr = t; 9 for(i = 0; i < q; i += qhalf){ 10 $(arr.slice(i,i+qhalf)).wrapAll('<div class="sect-col"></div>'); 11 }; 12 if ( $(this).hasClass('infull') ) { $(this).addClass('fx-row') }; 13 }; 14 }); 15 }; 16 17 $('.comm-author').each(function(){ 18 var a = $(this), b = a.closest('.comm-item'), c = a.text().substr(0,1), 19 d = ["#c57c3b","#753bc5","#79c53b","#eb3b5a","#45aaf2","#2bcbba","#778ca3"], rand = Math.floor(Math.random() * d.length); 20 b.prepend('<div class="comm-letter" style="background-color:'+d[rand]+'">'+c+'</div>'); 21 }); 22 23 $('.fcomms-list').each(function(){ 24 var quantity = $('.comm-item').length; 25 if (quantity > 2) { 26 $('.comm-item:gt(1)').hide(); 27 $('.fcomms-list').append('<div class="show-comms">ÐÑкÑÑÑÑ Ð²Ñе комменÑÑ ('+quantity+')</div>'); 28 }; 29 }); 30 $(".show-comms").click(function(){ 31 $(".comm-item").show(); 32 $(this).remove(); 33 }); 34 35 $('#dle-content > #dle-ajax-comments').appendTo($('#full-comms')); 36}; 37 38$(document).ready(function(){ 39 40 docready(); 41 42 var vol = localStorage.getItem('vol'); 43 if ( vol == undefined ) { localStorage.setItem('vol', 1); }; 44 45 $('body').on('click', '.js-play', function() { 46 var vol = localStorage.getItem('vol'); 47 $('.js-ctrl').removeClass('js-stop').addClass('js-play').find('.fa').removeClass('fa-stop').addClass('fa-play'); 48 $('.js-item').removeClass('show-player'); 49 $('.item-player').remove(); 50 $(this).removeClass('js-play').addClass('js-stop').find('.fa').removeClass('fa-play').addClass('fa-stop'); 51 var current = $(this).closest('.js-item'), 52 data = current.data(), 53 src = data.track, artist = data.artist, title = data.title, img = data.img; 54 current.addClass('show-player'); 55 $('body').append('<div class="item-player"><audio preload="auto" controls><source src="'+src+'" /></audio></div>'); 56 $('body').find('.item-player audio').audioPlayer(); 57 $('body').find('.item-player audio').get(0).volume=vol; 58 $('body').find('.item-player audio').get(0).play(); 59 $('.audioplayer').removeClass('audioplayer-stopped').addClass('audioplayer-playing fx-row fx-middle').find('.audioplayer-playpause').wrap('<div class="ap-left fx-row fx-middle fx-1"></div>'); 60 $('.audioplayer').find('.ap-left').append('<div class="ap-next"><span class="fa fa-fast-forward"></span></div><div class="ap-desc fx-row fx-middle fx-1"><div class="ap-img"><img src="'+img+'"></div><div class="ap-info fx-1"><div class="ap-artist nowrap">'+artist+'</div><div class="ap-title nowrap">'+title+'</div></div></div><a class="ap-dl" download target="_blank" href="'+src+'"><span class="fa fa-download"></span></a>'); 61 $('.audioplayer').find('.ap-left').prepend('<div class="ap-prev"><span class="fa fa-fast-backward"></span></div>'); 62 }); 63 $('body').on('click', '.js-stop', function() { 64 $('.js-ctrl').removeClass('js-stop').addClass('js-play').find('.fa').removeClass('fa-stop').addClass('fa-play'); 65 $('.js-item').removeClass('show-player'); 66 $('.item-player').remove(); 67 }); 68 $('body').on('click', '.ap-next', function() { 69 apNext(); 70 }); 71 $('body').on('click', '.ap-prev', function() { 72 apPrev(); 73 }); 74 75 76 $('body').append('<div class="close-overlay" id="close-overlay"></div><div class="side-panel" id="side-panel"></div><div class="btn-close"><span class="fa fa-times"></span></div>'); 77 $('.to-mob').each(function() { 78 $(this).clone().appendTo('#side-panel'); 79 }); 80 $(".btn-menu").click(function(){ 81 $('#side-panel, .btn-close').addClass('active'); 82 $("#close-overlay").fadeIn(200); 83 $('body').addClass('opened-menu'); 84 }); 85 $(".close-overlay, .btn-close").click(function(){ 86 $('#side-panel, .btn-close').removeClass('active'); 87 $('#close-overlay').fadeOut(200); 88 $('body').removeClass('opened-menu'); 89 }); 90 91 $(".add-comm-btn").click(function(){ 92 $("#add-comms").slideToggle(200); 93 }); 94 $(".reply").click(function(){ 95 $("#add-comms").slideDown(200); 96 }); 97 $('body').on('click','.ac-textarea textarea, .fr-wrapper',function(){ 98 $('.add-comm-form').addClass('active').find('.ac-protect').slideDown(400); 99 }); 100 $('.lb-soc a, .ac-soc a').on('click',function(){ 101 var href = $(this).attr('href'); 102 var width = 820; 103 var height = 420; 104 var left = (screen.width - width)/2; 105 var top = (screen.height - height)/2-100; 106 107 auth_window = window.open(href, 'auth_window', "width="+width+",height="+height+",top="+top+",left="+left+"menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no"); 108 return false; 109 }); 110 111}); 112 113 114 115$(document).ready(function() { 116 if ($(window).width() > 250) { 117 var LinkTitle = $(document).attr('title'); 118 var LinkUrl = window.location.href; 119 LinkTitle=encodeURIComponent(LinkTitle); 120 LinkUrl=encodeURIComponent(LinkUrl); 121 var leftvar = (screen.width-600)/2; 122 var topvar = (screen.height-400)/2; 123 124 var LinksItem = [ 125 'http://vkontakte.ru/share.php?url='+LinkUrl+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;"', 126 'http://www.facebook.com/sharer.php?u='+LinkUrl+'&t='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;"', 127 'http://twitter.com/share?text='+LinkTitle+'&url='+LinkUrl+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;"', 128 'https://connect.ok.ru/offer?url='+LinkUrl+'&title='+LinkTitle+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;"', 129 'https://plus.google.com/share?url='+LinkUrl+'" onClick="popupWin = window.open(this.href, \'contacts\', \'location,width=600,height=400,left='+leftvar+',top='+topvar+'\'); popupWin.focus(); return false;"' 130 ]; 131 132 $('.share').each(function(){ 133 var $share = $(this); 134 for (i=0; i<LinksItem.length; i++) 135 { 136 var getLinks = $('<a href="'+LinksItem[i]+' target="_blank"></a>'); 137 getLinks.appendTo($share); 138 } 139 }); 140 }; 141}); 142 143function apPrev(){$(".js-item");var a=localStorage.getItem("vol"),e=$(".show-player").index(".js-item"),t=$(".js-item").eq(e-1).length?$(".js-item").eq(e-1):$(".js-item:last");$(".js-ctrl").removeClass("js-stop").addClass("js-play").find(".fa").removeClass("fa-stop").addClass("fa-play"),$(".js-item").removeClass("show-player"),$(".item-player").remove(),t.find(".js-play").removeClass("js-play").addClass("js-stop").find(".fa").removeClass("fa-play").addClass("fa-stop");var s=t,i=s.data(),d=i.track,l=i.artist,o=i.title,n=i.img;s.addClass("show-player"),$("body").append('<div class="item-player"><audio preload="auto" controls><source src="'+d+'" /></audio></div>'),$("body").find(".item-player audio").audioPlayer(),$("body").find(".item-player audio").get(0).volume=a,$("body").find(".item-player audio").get(0).play(),$(".audioplayer").removeClass("audioplayer
143-stopped").addClass("audioplayer-playing fx-row fx-middle").find(".audioplayer-playpause").wrap('<div class="ap-left fx-row fx-middle fx-1"></div>'),$(".audioplayer").find(".ap-left").append('<div class="ap-next"><span class="fa fa-fast-forward"></span></div><div class="ap-desc fx-row fx-middle fx-1"><div class="ap-img"><img src="'+n+'"></div><div class="ap-info fx-1"><div class="ap-artist nowrap">'+l+'</div><div class="ap-title nowrap">'+o+'</div></div></div><a class="ap-dl" download target="_blank" href="'+d+'"><span class="fa fa-download"></span></a>'),$(".audioplayer").find(".ap-left").prepend('<div class="ap-prev"><span class="fa fa-fast-backward"></span></div>')}function apNext(){$(".js-item");var a=localStorage.getItem("vol"),e=$(".show-player").index(".js-item"),t=$(".js-item").eq(e+1).length?$(".js-item").eq(e+1):$(".js-item:first");$(".js-ctrl").removeClass("js-stop").addClass("js-play").find(".fa").removeClass("fa-stop").addClass("fa-play"),$(".js-item").removeClass("show-player"),$(".item-player").remove(),t.find(".js-play").removeClass("js-play").addClass("js-stop").find(".fa").removeClass("fa-play").addClass("fa-stop");var s=t,i=s.data(),d=i.track,l=i.artist,o=i.title,n=i.img;s.addClass("show-player"),$("body").append('<div class="item-player"><audio preload="auto" controls><source src="'+d+'" /></audio></div>'),$("body").find(".item-player audio").audioPlayer(),$("body").find(".item-player audio").get(0).volume=a,$("body").find(".item-player audio").get(0).play(),$(".audioplayer").removeClass("audioplayer-stopped").addClass("audioplayer-playing fx-row fx-middle").find(".audioplayer-playpause").wrap('<div class="ap-left fx-row fx-middle fx-1"></div>'),$(".audioplayer").find(".ap-left").append('<div class="ap-next"><span class="fa fa-fast-forward"></span></div><div class="ap-desc fx-row fx-middle fx-1"><div class="ap-img"><img src="'+n+'"></div><div class="ap-info fx-1"><div class="ap-artist nowrap">'+l+'</div><div class="ap-title nowrap">'+o+'</div></div></div><a class="ap-dl" download target="_blank" href="'+d+'"><span class="fa fa-download"></span></a>'),$(".audioplayer").find(".ap-left").prepend('<div class="ap-prev"><span class="fa fa-fast-backward"></span></div>')}!function(b,a,t,e){var $="ontouchstart"in a,j=$?"touchstart":"mousedown",x=$?"touchmove":"mousemove",P=$?"touchcancel":"mouseup",I=function(a){var e=a/3600,t=Math.floor(e),s=a%3600/60,i=Math.floor(s),d=Math.ceil(a%3600%60);return 59<d&&(d=0,i=Math.ceil(s)),59<i&&(i=0,t=Math.ceil(e)),(0==t?"":0<t&&t.toString().length<2?"0"+t+":":t+":")+(i.toString().length<2?"0"+i:i)+":"+(d.toString().length<2?"0"+d:d)},E=function(a){var e=t.createElement("audio");return!(!e.canPlayType||!e.canPlayType("audio/"+a.split(".").pop().toLowerCase()+";").replace(/no/,""))};b.fn.audioPlayer=function(C){C=b.extend({classPrefix:"audioplayer",strPlay:"ÐгÑаÑÑ",strPause:"ÐаÑза",strVolume:"ÐÑомкоÑÑÑ",strPlayI:'<span class="fa fa-play"></span>',strPauseI:'<span class="fa fa-pause"></span>',strVolumeI:'<span class="fa fa-volume-up"></span>'},C);var w={},a={playPause:"playpause",playing:"playing",stopped:"stopped",time:"time",timeCurrent:"time-current",timeDuration:"time-duration",bar:"bar",barLoaded:"bar-loaded",barPlayed:"bar-played",volume:"volume",volumeButton:"volume-button",volumeAdjust:"volume-adjust",noVolume:"novolume",muted:"muted",mini:"mini"};for(var e in a)w[e]=C.classPrefix+"-"+a[e];return this.each(function(){if("audio"!=b(this).prop("tagName").toLowerCase())return!1;var a=b(this),e=a.attr("src"),t=""===(t=a.get(0).getAttribute("autoplay"))||"autoplay"===t,s=""===(s=a.get(0).getAttribute("loop"))||"loop"===s,i=!1;void 0===e?a.find("source").each(function(){if(void 0!==(e=b(this).attr("src"))&&E(e))return!(i=!0)}):E(e)&&(i=!0);var d=b('<div class="'+C.classPrefix+'">'+(i?b("<div>").append(a.eq(0).clone()).html():'<embed src="'+e+'" width="0" height="0" volume="100" autostart="'+t.toString()+'" loop="'+s.toString()+'" />')+'<div class="'+w.playPause+'" title="'+C.strPlay+'"><a href="#">'+C.strPauseI+"</a></div></div>"),l=(l=i?d.find("audio"):d.find("embed")).get(0);if(i){d.find("audio").css({width:0,height:0,visibility:"hidden"}),d.append('<div class="'+w.time+" "+w.timeCurrent+'"></div><div class="'+w.bar+'"><div class="'+w.barLoaded+'"></div><div class="'+w.barPlayed+'"></div></div><div class="'+w.time+" "+w.timeDuration+'"></div><div class="'+w.volume+'"><div class="'+w.volumeButton+'" title="'+C.strVolume+'"><a href="#">'+C.strVolumeI+'</a></div><div class="'+w.volumeAdjust+'"><div><div></div></div></div></div>');var o=d.find("."+w.bar),n=d.find("."+w.barPlayed),r=d.find("."+w.barLoaded),p=d.find("."+w.timeCurrent),u=d.find("."+w.timeDuration),v=d.find("."+w.volumeButton),f=d.find("."+w.volumeAdjust+" > div"),m=0,c=function(a){theRealEvent=$?a.originalEvent.touches[0]:a,l.currentTime=Math.round(l.duration*(theRealEvent.pageX-o.offset().left)/o.width())},y=function(a){theRealEvent=$?a.originalEvent.touches[0]:a,l.volume=1-Math.abs((theRealEvent.pageX-(f.offset().left+f.width()))/f.width())},h=l.volume,g=l.volume=.111;Math.round(1e3*l.volume)/1e3==g?l.volume=h:d.addClass(w.noVolume),u.html("…"),p.html(I(0)),l.addEventListener("loadeddata",function(){var a;a=setInterval(function(){if(l.buffered.length<1)return!0;r.width(l.buffered.end(0)/l.duration*100+"%"),Math.floor(l.buffered.end(0))>=Math.floor(l.duration)&&clearInterval(a)},100),u.html(b.isNumeric(l.duration)?I(l.duration):"…"),f.find("div").height(100*l.volume+"%"),m=l.volume}),l.addEventListener("timeupdate",function(){p.html(I(l.currentTime)),n.width(l.currentTime/l.duration*100+"%")}),l.addEventListener("volumechange",function(){f.find("div").width(100*l.volume+"%"),0<l.volume&&d.hasClass(w.muted)&&d.removeClass(w.muted),l.volume<=0&&!d.hasClass(w.muted)&&d.addClass(w.muted),localStorage.setItem("vol",l.volume)}),l.addEventListener("ended",function(){d.removeClass(w.playing).addClass(w.stopped),apNext()}),o.on(j,function(a){c(a),o.on(x,function(a){c(a)})}).on(P,function(){o.unbind(x)}),v.on("click",function(){return d.hasClass(w.muted)?(d.removeClass(w.muted),l.volume=m):(d.addClass(w.muted),m=l.volume,l.volume=0),!1}),f.on(j,function(a){y(a),f.on(x,function(a){y(a)})}).on(P,function(){f.unbind(x)})}else d.addClass(w.mini);d.addClass(t?w.playing:w.stopped),d.find("."+w.playPause).on("click",function(){b(this).parent().parent().attr("class");return d.hasClass(w.playing)?(b(this).attr("title",C.strPlay).find("a").html(C.strPlayI),d.removeClass(w.playing).addClass(w.stopped),i?l.pause():l.Stop()):(b(this).attr("title",C.strPause).find("a").html(C.strPauseI),d.addClass(w.playing).removeClass(w.stopped),i?l.play():l.Play()),!1}),a.replaceWith(d)}),this}}(jQuery,window,document); 144 145 146/* end */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.