Скрыть объявление
ВАШИ ПРАВА ОГРАНИЧЕНЫ!

Зарегистрируйтесь на форуме, чтобы стать полноценным участником сообщества!

Шаблон terraserial. помогите найти

Тема в разделе "Вопросы- ответы", создана пользователем Winston?!, 15 июн 2017.

15.06.17 в 08:42
26.10.17 в 10:50
36
6.183
0
  1. LisER07

    VIP Кинотрафик v2 Кодер

    Регистрация:
    4 окт 2015
    Сообщения:
    630
    Лучших ответов:
    2
    Рейтинги:
    +116 / 3 / -0
    Что текстом выводит ? Так если закрывающий не поставит то конечно текстом покажет
     
  2. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    Стоит закрывающий!
     
  3. redissx

    redissx Бывалый

    Регистрация:
    23 сен 2015
    Сообщения:
    892
    Лучших ответов:
    8
    Рейтинги:
    +1.078 / 176 / -0
    работает только в фуллстори.тпл.
     
  4. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    Подключил в фулстори, только почему криво так? Стили прописал и js вставил
    После того как вставил js код в консоле пишет ошибку... Помогите решить проблему(
     
  5. Ботяра

    Забанен

    Регистрация:
    10 окт 2015
    Сообщения:
    0
    Лучших ответов:
    54
    Рейтинги:
    +711 / 74 / -0
    Попробуй код:
    Код:
    function doRateLD(a,b){ShowLoading(""),$.get(dle_root+"engine/ajax/rating.php",{go_rate:a,news_id:b,skin:dle_skin},function(a){if(HideLoading(""),a.success){var c=a.rating;c=c.replace(/&lt;/g,"<"),c=c.replace(/&gt;/g,">"),c=c.replace(/&amp;/g,"&"),$("#ratig-layer-"+b).html(c),$("#vote-num-id-"+b).html(a.votenum);var d=parseInt($(c).text()),e=(a.votenum-d)/2,f=a.votenum-e,g=Math.round((a.votenum-(a.votenum-d)/2)/a.votenum*100)/10;$("#ps-"+b).children(".psc").text(f),$("#ms-"+b).children(".msc").text(e),$(".fr-count > div").html(g+"<div>"+titlesArr[2]+"</div>"),$(".fr-count").circleProgress({value:g/10})}else a.error&&DLEalert(a.errorinfo,dle_info)},"json")}$(document).ready(function(){if($("[data-date]").length>0){var a=$("[data-date]"),b={};a.each(function(){b[$(this).data("date")]=""});for(date in b)a.filter("[data-date="+date+"]").wrapAll('<div class="group"></div>').eq(0).before('<div class="group-name icon-l"><div><span class="fa fa-calendar"></span>'+titlesArr[0]+date+"</div></div>")}$(".fr-count").each(function(){var a=$(this),b=a.next(),c=parseInt(b.find(".ratingtypeplusminus").text()),d=parseInt(b.find("span[id]:last").text());if(d>=c&&d>0)var e=Math.round((d-(d-c)/2)/d*100)/10;else var e=0;a.append("<div>"+e+"<div>"+titlesArr[2]+"</div></div>"),setTimeout(function(){a.circleProgress({size:60,startAngle:-1.5,lineCap:"round",value:e/10,emptyFill:"#f5f5f5",fill:{gradient:["#53baee","#2995cd"]}})},400)}),$(".fr-likes").each(function(){var a=$(this),b=a.next().next(),c=parseInt(b.find(".ratingtypeplusminus").text()),d=parseInt(b.find("span[id]:last").text());if(d>=c){var e=(d-c)/2,f=d-e;a.find(".ps").append('<span class="psc">'+f+"</span>"),a.find(".ms").append('<span class="msc">'+e+"</span>")}}),$("#cols").before('<div class="show-menu icon-l"><span class="fa fa-bars"></span>'+titlesArr[1]+"</div>"),$(".show-menu").click(function(){$("#cols").toggleClass("viss"),$(this).find(".fa").toggleClass("fa-bars fa-times")}),$(window).width()<1220&&($("#side-nav").prepend('<ul class="side-menu flex-row nav-cloned"></ul>'),$(".h-menu li").each(function(){var a=$(this);a.clone().appendTo(".nav-cloned")})),$(".tabs-box").each(function(){$(this).find(".tabs-sel span:first").addClass("current"),$(this).find(".tabs-b:first").addClass("visible")}),$(".tabs-sel").delegate("span:not(.current)","click",function(){$(this).addClass("current").siblings().removeClass("current").parents(".tabs-box").find(".tabs-b").hide().eq($(this).index()).fadeIn(400)}),$("body").on("click",".show-trailer",function(){var a=$(this),b=a.data("source");metaT=a.attr("title"),$("body").append('<div id="trailer-box" class="video-box" title="'+metaT+'"><iframe src="https://www.youtube.com/embed/'+b+'" frameborder="0" allowfullscreen></iframe></div>'),$("#trailer-box").dialog({modal:!0,show:"fade",hide:"fade",width:800,close:function(a,b){$(this).dialog("destroy").remove()}})}),$("#login-box").dialog({autoOpen:!1,modal:!0,show:"fade",hide:"fade",width:320}),$(".show-login").click(function(){$("#login-box").dialog("open")}),$("#ac-av").html($("#lb-ava").html()),$("body").on("click",".ac-textarea textarea, .fr-wrapper",function(){$(".add-comm-form").addClass("active").find(".ac-protect").slideDown(400)}),$(".ac-soc a, .lb-soc a").on("click",function(){var a=$(this).attr("href"),b=820,c=420,d=(screen.width-b)/2,e=(screen.height-c)/2-100;return auth_window=window.open(a,"auth_window","width="+b+",height="+c+",top="+e+",left="+d+"menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no"),!1}),$("#dle-content > #dle-ajax-comments").appendTo($("#full-comms")),$("body").append('<div id="gotop"><span class="fa fa-chevron-up"></span></div>');var c=$("#gotop");if($(window).scroll(function(){$(this).scrollTop()>300?c.fadeIn(200):c.fadeOut(200)}),c.click(function(){$("html, body").animate({scrollTop:0},"slow")}),$(window).width()>950){var d=$(document).attr("title"),e=window.location.href;d=encodeURIComponent(d),e=encodeURIComponent(e);var f=(screen.width-600)/2,g=(screen.height-400)/2,h=["http://vkontakte.ru/share.php?url="+e+"\" onClick=\"popupWin = window.open(this.href, 'contacts', 'location,width=600,height=400,left="+f+",top="+g+"'); popupWin.focus(); return false;\"","http://twitter.com/share?text="+d+"&url="+e+"\" onClick=\"popupWin = window.open(this.href, 'contacts', 'location,width=600,height=400,left="+f+",top="+g+"'); popupWin.focus(); return false;\"","http://www.facebook.com/sharer.php?u="+e+"&t="+d+"\" onClick=\"popupWin = window.open(this.href, 'contacts', 'location,width=600,height=400,left="+f+",top="+g+"'); popupWin.focus(); return false;\"","https://plus.google.com/share?url="+e+"\" onClick=\"popupWin = window.open(this.href, 'contacts', 'location,width=600,height=400,left="+f+",top="+g+"'); popupWin.focus(); return false;\"","http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl="+e+"&title="+d+"\" onClick=\"popupWin = window.open(this.href, 'contacts', 'location,width=600,height=400,left="+f+",top="+g+"'); popupWin.focus(); return false;\""];$("body").append('<div class="share-big"></div>'),$(".share-big").each(function(){var a=$(this);for(i=0;i<h.length;i++){var b=$('<a href="'+h[i]+' target="_blank"></a>');b.appendTo(a)}})}});
    
    /**
     * jquery-circle-progress - jQuery Plugin to draw animated circular progress bars:
     * {@link http://kottenator.github.io/jquery-circle-progress/}
     *
     * @author Rostyslav Bryzgunov <[email protected]>
     * @version 1.2.0
     * @licence MIT
     * @preserve
     */
    !function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var o=a.gradientAngle||0,l=a.gradientDirection||[r/2*(1-Math.cos(o)),r/2*(1+Math.sin(o)),r/2*(1+Math.cos(o)),r/2*(1-Math.sin(o))],h=n.createLinearGradient.apply(n,l),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),h.addColorStop(u,d)}this.arcFill=h}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){if(0!==i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()}},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;i<1&&(t.save(),t.beginPath(),i<=0?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i,t,e,a,n){return(t/=n/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var o=i.extend({},a.data());"string"==typeof o.fill&&(o.fill=JSON.parse(o.fill)),"string"==typeof o.animation&&(o.animation=JSON.parse(o.animation)),s=i.extend(o,s),s.el=a,r=new t(s),a.data(n,r)}})}});
    
    Его можно немного подчистить потом, т.к. в этом коде помимо рейтинга и другой код присутствует, который скорее всего будет лишним или дублирующим.
     
    • Нравится Нравится x 1
  6. redissx

    redissx Бывалый

    Регистрация:
    23 сен 2015
    Сообщения:
    892
    Лучших ответов:
    8
    Рейтинги:
    +1.078 / 176 / -0
    в либс.жс тут лишняя запятая
    }),
    в тпл вместо
    <div class="frate">должно быть <div class="frate flex-row">
     
    • Нравится Нравится x 3
  7. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    @byroot поставил код который ты скинул и сделал как сказал @redissx вроде теперь выровнялось, но нету цифр (кол-ва голосов) и кружок с средней оценкой пустой :(
    Нажимаю на кнопку лайк или дезлайк выводится модальное окно с таким содержанием
    В консоле пишет
    Код:
    Uncaught ReferenceError: titlesArr is not defined
        at HTMLDocument.<anonymous> (libs.js:106)
        at i (index.php?charset=utf-8&g=general&21:2)
        at Object.fireWith [as resolveWith] (index.php?charset=utf-8&g=general&21:2)
        at Function.ready (index.php?charset=utf-8&g=general&21:2)
        at HTMLDocument.J (index.php?charset=utf-8&g=general&21:2)
     
    #27 Winston?!, 21 июн 2017
    Последнее редактирование: 21 июн 2017
  8. Ботяра

    Забанен

    Регистрация:
    10 окт 2015
    Сообщения:
    0
    Лучших ответов:
    54
    Рейтинги:
    +711 / 74 / -0
    http://webrambo.ru/89-fiks-problemy-s-nestandartnymi-reytingami-v-113-i-vyshe-v-moih-shablonah.html
     
    • Нравится Нравится x 1
  9. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    Сделал, результат тот же остался((( Ааааааааа, ну что не так............
    Только в скрипте стоит не function(data) а function(a). Пробовал и так и так, нефига не работает )
    Нажимаю на кнопки, тупо загрузка идет и все

    Блииин, в чем может быть проблема?
     
    #29 Winston?!, 21 июн 2017
    Последнее редактирование модератором: 22 июн 2017
  10. Dezorientare

    Команда форума VIP Кинотрафик v2

    Регистрация:
    4 ноя 2016
    Сообщения:
    1.471
    Лучших ответов:
    0
    Рейтинги:
    +335 / 41 / -0
    блин заплатил бы уже кому, сотню другую, починили уже бы давно:)
     
  11. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    Убрал запятую как сказал @redissx вроде все отображается, но вместо "Оценка" пишет "undefined"
    При нажатии опять пишет, что сессия завершена... Кэш очищал...
    @byroot не подскажешь, как исправить?(
    Снимок7.jpg
     
  12. Ботяра

    Забанен

    Регистрация:
    10 окт 2015
    Сообщения:
    0
    Лучших ответов:
    54
    Рейтинги:
    +711 / 74 / -0
    Winston?! версия ДЛЕ какая?
     
  13. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    byroot 11,3. В js ошибки есть, вечером скину рабочий js в отдельной теме
     
    • Нравится Нравится x 1
  14. uskino

    PRO Users

    Регистрация:
    20 окт 2015
    Сообщения:
    762
    Лучших ответов:
    1
    Рейтинги:
    +174 / 23 / -0
    Так и не скинул) Скинь пожалуйста, если есть возможность. Очень нужен рейтинг этот, парюсь с этим "undefined" 3 часа уже.
     
  15. TopicStarter Overlay
    Winston?!

    VIP Кинотрафик v2

    Регистрация:
    31 дек 2016
    Сообщения:
    1.252
    Лучших ответов:
    2
    Рейтинги:
    +105 / 11 / -0
    Я извиняюсь, совсем забыл про это...
    /* html код */
    Код:
    
    [rating-type-3]
        <div class="frate flex-row">
            <div class="fr-likes icon-l">
                <div class="rate-plus ps" id="ps-{news-id}" onclick="doRateLD('plus', '{news-id}');"><span class="fa fa-thumbs-up"></span></div>
                <div class="rate-minus ms" id="ms-{news-id}" onclick="doRateLD('minus', '{news-id}');"><span class="fa fa-thumbs-down"></span></div>
            </div>
            <div class="fr-count"></div>
            <div class="fr-votes">
                {rating}
                {vote-num}
            </div>
        </div>
    [/rating-type-3]
    
    /* js код */
    Код:
    /* Rating */
    function doRateLD(rate, id) {
        ShowLoading("");
        $.get(dle_root + "engine/ajax/rating.php", {go_rate: rate, news_id: id, skin: dle_skin, user_hash: dle_login_hash}, function(data) {
            HideLoading("");
            if( data.success ) {
                var c = data.rating;
                c = c.replace(/&lt;/g, "<"), c = c.replace(/&gt;/g, ">"), c = c.replace(/&amp;/g, "&");
                $('#ratig-layer-' + id).html(c);
                $('#vote-num-id-' + id).html(data.votenum);
                var d = parseInt($(c).text()),
                    e = (data.votenum - d) / 2,
                    f = data.votenum - e,
                    g = Math.round((data.votenum - (data.votenum - d) / 2) / data.votenum * 100) / 10;
                $('#ps-' + id).children('.psc').text(f);
                $('#ms-' + id).children('.msc').text(e);
                $('.fr-count > div').html(g + "<div>" + titlesArr[0] + "</div>");
                //$('.fr-count > div').html(g + "<div>" + titlesArr[(rate == 'plus' ? 1 : 2)] + "</div>");
                $('.fr-count').circleProgress({
                    value: g / 10
                });
            } else data.error && DLEalert(data.errorinfo, dle_info);
        }, 'json');
    }
    
    $(document).ready(function() {
        titlesArr = ['оценка', 'хорошо', 'плохо'];
        $('.fr-count').each(function() {
            var a = $(this),
                b = a.next(),
                c = parseInt(b.find('.ratingtypeplusminus').text()),
                d = parseInt(b.find('span[id]:last').text());
            if( d >= c && d > 0 ) var e = Math.round((d - (d - c) / 2) / d * 100) / 10;
            else var e = 0;
          
            a.append("<div>" + e + "<div>" + titlesArr[0] + "</div></div>");
            setTimeout(function() {
                a.circleProgress({
                    size: 60,
                    startAngle: -1.5,
                    lineCap: 'round',
                    value: e / 10,
                    emptyFill: '#f5f5f5',
                    fill: {
                        gradient: ['#53baee', '#2995cd']
                    }
                });
            }, 400);
        });
    
        $('.fr-likes').each(function() {
            var a = $(this),
                b = a.next().next(),
                c = parseInt(b.find('.ratingtypeplusminus').text()),
                d = parseInt(b.find('span[id]:last').text());
            if( d >= c ) {
                var e = (d - c) / 2,
                    f = d - e;
                a.find('.ps').append('<span class="psc">' + f + "</span>");
                a.find('.ms').append('<span class="msc">' + e + "</span>");
            }
        });
    });
    
    /*
    * jquery-circle-progress - jQuery Plugin to draw animated circular progress bars:
    * http://kottenator.github.io/jquery-circle-progress/
    */
    !function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var o=a.gradientAngle||0,l=a.gradientDirection||[r/2*(1-Math.cos(o)),r/2*(1+Math.sin(o)),r/2*(1+Math.cos(o)),r/2*(1-Math.sin(o))],h=n.createLinearGradient.apply(n,l),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),h.addColorStop(u,d)}this.arcFill=h}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){if(0!==i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore()}},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;i<1&&(t.save(),t.beginPath(),i<=0?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i,t,e,a,n){return(t/=n/2)<1?a/2*t*t*t+e:a/2*((t-=2)*t*t+2)+e},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var o=i.extend({},a.data());"string"==typeof o.fill&&(o.fill=JSON.parse(o.fill)),"string"==typeof o.animation&&(o.animation=JSON.parse(o.animation)),s=i.extend(o,s),s.el=a,r=new t(s),a.data(n,r)}})}});

    /* css код */
    Код:
    .frate {
        margin-bottom: 10px;
        padding: 10px;
        background-color: #f7f7f7;
        height: 80px;
    }
    .fr-likes {
        width: 100px;
    }
    .fr-count {
        position: relative;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #f7f7f7;
        box-shadow: inset 0 0 0 5px #ccc;
    }
    .fr-count>div {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        color: #1172a6;
        display: block;
        text-align: center;
        font-size: 18px;
        padding-top: 10px;
        font-weight: 700;
    }
    .fr-count>div div {
        font: 11px Arial, Helvetica, sans-serif;
        color: #888;
        margin-top: 0px;
        font-weight: 400;
    }
    .fr-votes {
        display: none;
    }
    .rate-plus,
    .rate-minus {
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        color: #888;
        text-align: left;
    }
    .rate-plus .fa {
        color: #33a42d;
    }
    .rate-minus .fa {
        color: #dd4d1b;
    }
    byroot добавь в старт пост
     
    • Лучший Лучший x 1
  16. uskino

    PRO Users

    Регистрация:
    20 окт 2015
    Сообщения:
    762
    Лучших ответов:
    1
    Рейтинги:
    +174 / 23 / -0
    Только что на DLE-faq нашел решение, скорей всего твой вопрос и был там) Спасибо большое!!!
     
  17. Ботяра

    Забанен

    Регистрация:
    10 окт 2015
    Сообщения:
    0
    Лучших ответов:
    54
    Рейтинги:
    +711 / 74 / -0
    Winston?! это лучше отдельной темой в разделе хаков создать
     
Похожие темы
  1. igrovik
    Ответов:
    0
    Просмотров:
    2.061
  2. rreaktivv
    Ответов:
    3
    Просмотров:
    1.323
  3. nikosteel
    Ответов:
    10
    Просмотров:
    1.364
  4. aleksndr
    Ответов:
    3
    Просмотров:
    1.701
Загрузка...
Яндекс.Метрика