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

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

Удалить js код, встраивающий копирайт логотип

Тема в разделе "Услуги дизайнеров и верстальщиков", создана пользователем onealoner, 9 дек 2016.

09.12.16 в 01:59
10.12.16 в 17:10
10
1.665
0
  1. TopicStarter Overlay
    onealoner

    onealoner Бывалый

    Сообщения:
    479
    Симпатии:
    135
    Лучших ответов:
    0
    Здравствуйте. Скачать и установил шаблон и долго ломал голову, как из футера удалить логотип создателя. Оказывается он встраивается через js код. Может кто помочь удалить из js файла нужный фрагмент кода, чтобы не задеть другие элементы? Заранее благодарю.
    Вот ссылка на js файл: http://xboxplay.ucoz.com/js/main.js
    Нужно удалить все, что встраивает art-ucoz
    И раз уж они свою ссылку встроили, может заметите еще что-то подозрительное...
     
  2. Romantv

    Romantv Забанен

    Сообщения:
    6.946
    Симпатии:
    1.815
    Лучших ответов:
    6
    Ctrl-F начать поиск
    upload_2016-12-9_6-8-30.png
     
  3. TopicStarter Overlay
    onealoner

    onealoner Бывалый

    Сообщения:
    479
    Симпатии:
    135
    Лучших ответов:
    0
    Спасибо, это я и так знал. Какой участок кода удалить. чтобы не задеть другие функции
     
  4. Romantv

    Romantv Забанен

    Сообщения:
    6.946
    Симпатии:
    1.815
    Лучших ответов:
    6
    хз. удали просто ссылки анкоры
     
  5. TopicStarter Overlay
    onealoner

    onealoner Бывалый

    Сообщения:
    479
    Симпатии:
    135
    Лучших ответов:
    0
    Дружище ести ты хз, то зачем что-то советуешь....
     
  6. Romantv

    Romantv Забанен

    Сообщения:
    6.946
    Симпатии:
    1.815
    Лучших ответов:
    6
    посоветовал то что знал. думал это поможет.
     
    • Нравится Нравится x 1
  7. volkod

    volkod Кодер PRO Users

    Сообщения:
    97
    Симпатии:
    33
    Лучших ответов:
    0
    Копирайт убрал, а дальше исследователь что плохого они еще могли поставить нету времени
    Код:
    function openStaticPopup(){$.openPopupLayer({name:"loginPopup",width:377,target:"userpanel"})}function LoadFont(a){if(""!=a)try{a=a.split("'").join(""),WebFont.load({google:{families:[a+"::latin,cyrillic"]}})}catch(a){}}function EmbedFont(a){var b,c=["impact","palatino linotype","tahoma","century gothic","lucida sans unicode","times new roman","arial narrow","verdana","copperplate gothic light","lucida console","gill sans mt","trebuchet ms","courier new","arial","georgia","garamond","arial black","bookman old style","courier","helvetica"];b=a?document.getElementById(a).innerHTML:document.documentElement.innerHTML;var d=/font-family?:.+?(\;|,|")/g,e=b.match(d);if(e)for(var f=0,g=e.length;g>f;f++){var h=e[f].replace(/font-family?:/g,"").replace(/;/g,"").replace(/,/g,"").replace(/"/g,"");h=jQuery.trim(h),h=h.replace("'","").replace("'",""),-1==$.inArray(h.toLowerCase(),c)&&LoadFont(h)}}$(document).ready(function(){$(".show_auth").click(function(){$(".windows_auth").show(),$(".block_auth").show()}),$("#exit_auth").click(function(){$(".windows_auth").hide(),$(".block_auth").hide()}),$(".show_profile").click(function(){$(".windows_profile").show(),$(".block_profile").show()}),$("#exit_profile").click(function(){$(".windows_profile").hide(),$(".block_profile").hide()}),$(".top_nav > li > a").hover(function(){$(".top_nav > li > ul").hide(),$(this).parent().find("ul").fadeIn(50),$(this).addClass("hover")},function(){$(".top_nav > li > ul").hide(),$(".top_nav > li > a").removeClass("hover")}),$(".top_nav > li > ul").hover(function(){$(this).show(),$(this).parent().children("a").addClass("hover")},function(){$(".top_nav > li > ul").hide(),$(this).parent().children("a").removeClass("hover")}),$(".nav_slider_main > .warp span:first").addClass("active"),$(".nav_slider_main > .warp span").click(function(){var a=$(this).index(),b=1e3*a;$(".nav_slider_main > .warp span").removeClass("active"),$(".slider_warper > .slider").animate({left:"-"+b+"px"},500),$(this).addClass("active")}),$(".witch_movie").click(function(){$(".window_movie").fadeIn(300),$(".player_movie").fadeIn(300)}),$(".exit_movie_full").click(function(){$(".window_movie").fadeOut(200),$(".player_movie").fadeOut(200)});var a=$(".player_movie").attr("age");a>18||18==a?$(".fix_block_player").show():$(".fix_block_player").hide(),$("#fix_player_yes").click(function(){$(".fix_block_player").fadeOut(200)}),$("#fix_player_no").click(function(){$(".window_movie").fadeOut(200),$(".player_movie").fadeOut(200)});var b=$(".block_message_comments").parent().parent().attr("pl"),c=$(".block_message_comments").parent().parent().attr("rl");$(".message_comments").attr("placeholder",b),$(".rules_mess_comments").html(c);var d=$(".pm_hidden > a").attr("href");$(".function_profile_pm").attr("href",d),$(".table_pm_common .bb-editor > textarea#comments").attr("placeholder","Сообщение:"),$("#category_chzn, ul.chzn-choices > li.search-field > input").removeAttr("style"),$(".addnews_right_block tr > td").removeAttr("colspan");for(var e=$(".addnews_right_block tr").length,f=0;e>f;f++){var g=$("td.addnews").eq(f).text();$(".xfields > input").eq(f).attr("placeholder",g).addClass("xfields_input")}}),$(document).ready(function(){$("body").append('<div class="button-up" style="display: none;opacity: 0.7;width: 80px;height:100%;position: fixed;left: 0px;top: 0px;cursor: pointer;text-align: center;line-height: 30px;color: #8a8c8b;font-weight: bold;">&#8593; Наверх </div>'),$(window).scroll(function(){$(this).scrollTop()>100?$(".button-up").fadeIn():$(".button-up").fadeOut()}),$(".button-up").click(function(){return $("body,html").animate({scrollTop:0},600),!1}),$(".button-up").hover(function(){$(this).animate({opacity:"1"}).css({"background-color":"#cdcecc",color:"#fff"})},function(){$(this).animate({opacity:"0.7"}).css({background:"none",color:"#8a8c8b"})})}),$.fn.Button=function(a){var b=!0,c=this;return $(a).hide(),$(this).removeClass("selected").click(function(){return $(a).toggle("fast"),$(this).toggleClass("selected"),b=!b,!1}),$(document).click(function(d){if(!b){for(var e=d.target||d.srcElement;e;){var f=!1;if($(a).each(function(){return!(f=e==this)&&void 0}),f)return;e=e.parentNode}$(a).hide("fast"),$(c).removeClass("selected"),b=!0}}),this},$.fn.UlMenu=function(){return $.each(this,function(){$("li.submenu",this).hide(),$("li:has(.sublnk)",this).click(function(){$(this).toggleClass("selected").next("li.submenu").slideToggle(300).css("display",function(){return"list-item"==$(this).css("display")?"block":void 0})})}),this},$.setupJMPopups({screenLockerBackground:"#000",screenLockerOpacity:"0.5"}),$(function(){$(".slnews").mobilyslider({content:".slnewsContent",children:"div",transition:"fade",animationSpeed:300,autoplay:!0,autoplaySpeed:3e3,pauseOnHover:!0,bullets:!1,arrows:!0,arrowsHide:!1,prev:"snewsprev",next:"snewsnext"})}),jQuery(document).ready(function(){if(EmbedFont(),"undefined"!=typeof oUtil)for(var conditionIndex=0;conditionIndex<oUtil.arrEditor.length;conditionIndex++){var d=eval("idContent"+oUtil.arrEditor[conditionIndex]),text;text=-1!=navigator.appName.indexOf("Microsoft")?d.document.documentElement.outerHTML:getOuterHTML(d.document.documentElement),text=text.replace(/FONT-FAMILY/g,"font-family");var LINKY_URL_REGEXP=/font-family?:.+?(\;|,|")/g,number=text.match(LINKY_URL_REGEXP);if(number)for(var i=0,n=number.length;n>i;i++){var html=number[i].replace(/font-family?:/g,"").replace(/;/g,"").replace(/,/g,"").replace(/"/g,"");html=html.split("'").join(""),html=jQuery.trim(html);var verdana=html.toLowerCase();if("serif"!=verdana&&"arial"!=verdana&&"arial black"!=verdana&&"bookman old style"!=verdana&&"comic sans ms"!=verdana&&"courier"!=verdana&&"courier new"!=verdana&&"garamond"!=verdana&&"georgia"!=verdana&&"impact"!=verdana&&"lucida console"!=verdana&&"lucida sans unicode"!=verdana&&"ms sans serif"!=verdana&&"ms serif"!=verdana&&"palatino linotype"!=verdana&&"tahoma"!=verdana&&"times new roman"!=verdana&&"trebuchet ms"!=verdana&&"verdana"!=verdana){sURL="http://fonts.googleapis.com/css?family="+html+"&subset=latin,cyrillic";var link=d.document.createElement("LINK");link.href=sURL,link.rel="StyleSheet",d.document.documentElement.childNodes[0].appendChild(link)}}}}),function(a,b){function c(a){return a.call.apply(a.bind,arguments)}function d(a,b){if(!a)throw Error();if(2<arguments.length){var c=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(d,c),a.apply(b,d)}}return function(){return a.apply(b,arguments)}}function e(){return e=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?c:d,e.apply(null,arguments)}function f(a,b){this.K=a,this.w=b||a,this.G=this.w.document}function g(a,c,d){a=a.G.getElementsByTagName(c)[0],a||(a=b.documentElement),a&&a.lastChild&&a.insertBefore(d,a.lastChild)}function h(a,b){function c(){a.G.body?b():setTimeout(c,0)}c()}function i(a,b,c){b=b||[],c=c||[];for(var d=a.className.split(/\s+/),e=0;e<b.length;e+=1){for(var f=!1,g=0;g<d.length;g+=1)if(b[e]===d[g]){f=!0;break}f||d.push(b[e])}for(b=[],e=0;e<d.length;e+=1){for(f=!1,g=0;g<c.length;g+=1)if(d[e]===c[g]){f=!0;break}f||b.push(d[e])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function j(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;e>d;d++)if(c[d]==b)return!0;return!1}function k(a){if("string"==typeof a.na)return a.na;var b=a.w.location.protocol;return"about:"==b&&(b=a.K.location.protocol),"https:"==b?"https:":"http:"}function l(a,b){var c=a.createElement("link",{rel:"stylesheet",href:b,media:"all"}),d=!1;c.onload=function(){d||(d=!0)},c.onerror=function(){d||(d=!0)},g(a,"head",c)}function m(b,c,d,e){var f=b.G.getElementsByTagName("head")[0];if(f){var g=b.createElement("script",{src:c}),h=!1;return g.onload=g.onreadystatechange=function(){h||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(h=!0,d&&d(null),g.onload=g.onreadystatechange=null,"HEAD"==g.parentNode.tagName&&f.removeChild(g))},f.appendChild(g),a.setTimeout(function(){h||(h=!0,d&&d(Error("Script load timeout")))},e||5e3),g}return null}function n(a,b){this.Y=a,this.ga=b}function o(a,b,c,d){this.c=null!=a?a:null,this.g=null!=b?b:null,this.D=null!=c?c:null,this.e=null!=d?d:null}function p(a){a=Z.exec(a);var b=null,c=null,d=null,e=null;return a&&(null!==a[1]&&a[1]&&(b=parseInt(a[1],10)),null!==a[2]&&a[2]&&(c=parseInt(a[2],10)),null!==a[3]&&a[3]&&(d=parseInt(a[3],10)),null!==a[4]&&a[4]&&(e=/^[0-9]+$/.test(a[4])?parseInt(a[4],10):a[4])),new o(b,c,d,e)}function q(a,b,c,d,e,f,g,h){this.N=a,this.k=h}function r(a){this.a=a}function s(a){var b=v(a.a,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);return""!=b?(/BB\d{2}/.test(b)&&(b="BlackBerry"),b):(a=v(a.a,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation|CrKey)/,1),""!=a?("Mac_PowerPC"==a?a="Macintosh":"PlayStation"==a&&(a="Linux"),a):"Unknown")}function t(a){var b=v(a.a,/(OS X|Windows NT|Android) ([^;)]+)/,2);if(b||(b=v(a.a,/Windows Phone( OS)? ([^;)]+)/,2))||(b=v(a.a,/(iPhone )?OS ([\d_]+)/,2)))return b;if(b=v(a.a,/(?:Linux|CrOS|CrKey) ([^;)]+)/,1)){b=b.split(/\s/);for(var c=0;c<b.length;c+=1)if(/^[\d\._]+$/.test(b[c]))return b[c]}return(a=v(a.a,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))?a:"Unknown"}function u(a){var b=s(a),c=p(t(a)),d=p(v(a.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1)),e="Unknown",f=new o;f="Unknown";var g=!1;return/OPR\/[\d.]+/.test(a.a)?e="Opera":-1!=a.a.indexOf("Chrome")||-1!=a.a.indexOf("CrMo")||-1!=a.a.indexOf("CriOS")?e="Chrome":/Silk\/\d/.test(a.a)?e="Silk":"BlackBerry"==b||"Android"==b?e="BuiltinBrowser":-1!=a.a.indexOf("PhantomJS")?e="PhantomJS":-1!=a.a.indexOf("Safari")?e="Safari":-1!=a.a.indexOf("AdobeAIR")?e="AdobeAIR":-1!=a.a.indexOf("PlayStation")&&(e="BuiltinBrowser"),"BuiltinBrowser"==e?f="Unknown":"Silk"==e?f=v(a.a,/Silk\/([\d\._]+)/,1):"Chrome"==e?f=v(a.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=a.a.indexOf("Version/")?f=v(a.a,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==e?f=v(a.a,/AdobeAIR\/([\d\.]+)/,1):"Opera"==e?f=v(a.a,/OPR\/([\d.]+)/,1):"PhantomJS"==e&&(f=v(a.a,/PhantomJS\/([\d.]+)/,1)),f=p(f),g="AdobeAIR"==e?2<f.c||2==f.c&&5<=f.g:"BlackBerry"==b?10<=c.c:"Android"==b?2<c.c||2==c.c&&1<c.g:526<=d.c||525<=d.c&&13<=d.g,new q(e,0,0,0,0,0,0,new n(g,536>d.c||536==d.c&&11>d.g))}function v(a,b,c){return(a=a.match(b))&&a[c]?a[c]:""}function w(a){this.ma=a||"-"}function x(a,b){this.N=a,this.Z=4,this.O="n";var c=(b||"n4").match(/^([nio])([1-9])$/i);c&&(this.O=c[1],this.Z=parseInt(c[2],10))}function y(a){return a.O+a.Z}function z(a){var b=4,c="n",d=null;return a&&((d=a.match(/(normal|oblique|italic)/i))&&d[1]&&(c=d[1].substr(0,1).toLowerCase()),(d=a.match(/([1-9]00|normal|bold)/i))&&d[1]&&(/bold/i.test(d[1])?b=7:/[1-9]00/.test(d[1])&&(b=parseInt(d[1].substr(0,1),10)))),c+b}function A(a,b){this.d=a,this.q=a.w.document.documentElement,this.Q=b,this.j="wf",this.h=new w("-"),this.ha=!1!==b.events,this.F=!1!==b.classes}function B(a){if(a.F){var b=j(a.q,a.h.e(a.j,"active")),c=[],d=[a.h.e(a.j,"loading")];b||c.push(a.h.e(a.j,"inactive")),i(a.q,c,d)}C(a,"inactive")}function C(a,b,c){a.ha&&a.Q[b]&&(c?a.Q[b](c.getName(),y(c)):a.Q[b]())}function D(){this.C={}}function E(a,b){this.d=a,this.I=b,this.o=this.d.createElement("span",{"aria-hidden":"true"},this.I)}function F(a,b){var c,d=a.o;c=[];for(var e=b.N.split(/,\s*/),f=0;f<e.length;f++){var g=e[f].replace(/['"]/g,"");c.push(-1==g.indexOf(" ")?g:"'"+g+"'")}c=c.join(","),e="normal","o"===b.O?e="oblique":"i"===b.O&&(e="italic"),d.style.cssText="display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+c+";"+("font-style:"+e+";font-weight:"+(b.Z+"00")+";")}function G(a){g(a.d,"body",a.o)}function H(a,b,c,d,e,f,g,h){this.$=a,this.ka=b,this.d=c,this.m=d,this.k=e,this.I=h||"BESbswy",this.v={},this.X=f||3e3,this.ca=g||null,this.H=this.u=this.t=null,this.t=new E(this.d,this.I),this.u=new E(this.d,this.I),this.H=new E(this.d,this.I),F(this.t,new x("serif",y(this.m))),F(this.u,new x("sans-serif",y(this.m))),F(this.H,new x("monospace",y(this.m))),G(this.t),G(this.u),G(this.H),this.v.serif=this.t.o.offsetWidth,this.v["sans-serif"]=this.u.o.offsetWidth,this.v.monospace=this.H.o.offsetWidth}function I(a,b,c){var d;for(d in _)if(_.hasOwnProperty(d)&&b===a.v[_[d]]&&c===a.v[_[d]])return!0;return!1}function J(a){var b=a.t.o.offsetWidth,c=a.u.o.offsetWidth;b===a.v.serif&&c===a.v["sans-serif"]||a.k.ga&&I(a,b,c)?Y()-a.oa>=a.X?a.k.ga&&I(a,b,c)&&(null===a.ca||a.ca.hasOwnProperty(a.m.getName()))?L(a,a.$):L(a,a.ka):K(a):L(a,a.$)}function K(a){setTimeout(e(function(){J(this)},a),50)}function L(a,b){a.t.remove(),a.u.remove(),a.H.remove(),b(a.m)}function M(a,b,c,d){this.d=b,this.A=c,this.S=0,this.ea=this.ba=!1,this.X=d,this.k=a.k}function N(a,b,c,d,f){if(c=c||{},0===b.length&&f)B(a.A);else for(a.S+=b.length,f&&(a.ba=f),f=0;f<b.length;f++){var g=b[f],h=c[g.getName()],j=a.A,k=g;j.F&&i(j.q,[j.h.e(j.j,k.getName(),y(k).toString(),"loading")]),C(j,"fontloading",k),j=null,j=new H(e(a.ia,a),e(a.ja,a),a.d,g,a.k,a.X,d,h),j.start()}}function O(a){0==--a.S&&a.ba&&(a.ea?(a=a.A,a.F&&i(a.q,[a.h.e(a.j,"active")],[a.h.e(a.j,"loading"),a.h.e(a.j,"inactive")]),C(a,"active")):B(a.A))}function P(a){this.K=a,this.B=new D,this.pa=new r(a.navigator.userAgent),this.a=this.pa.parse(),this.U=this.V=0,this.R=this.T=!0}function Q(a,b,c,d,e){var f=0==--a.V;(a.R||a.T)&&setTimeout(function(){N(b,c,d||null,e||null,f)},0)}function R(a,b,c){this.P=a?a:b+aa,this.s=[],this.W=[],this.fa=c||""}function S(a){this.s=a,this.da=[],this.M={}}function T(a,b){this.a=new r(navigator.userAgent).parse(),this.d=a,this.f=b}function U(a,b){this.d=a,this.f=b,this.p=[]}function V(a,b){this.d=a,this.f=b,this.p=[]}function W(a,b){this.d=a,this.f=b,this.p=[]}function X(a,b){this.d=a,this.f=b}var Y=Date.now||function(){return+new Date};f.prototype.createElement=function(a,b,c){if(a=this.G.createElement(a),b){var d;for(d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.setAttribute(d,b[d]))}return c&&a.appendChild(this.G.createTextNode(c)),a};var Z=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;o.prototype.compare=function(a){return this.c>a.c||this.c===a.c&&this.g>a.g||this.c===a.c&&this.g===a.g&&this.D>a.D?1:this.c<a.c||this.c===a.c&&this.g<a.g||this.c===a.c&&this.g===a.g&&this.D<a.D?-1:0},o.prototype.toString=function(){return[this.c,this.g||"",this.D||"",this.e||""].join("")},q.prototype.getName=function(){return this.N};var $=new q("Unknown",0,0,0,0,0,0,new n(!1,!1));r.prototype.parse=function(){var a;if(-1!=this.a.indexOf("MSIE")||-1!=this.a.indexOf("Trident/")){a=s(this);var b=p(t(this)),c=null,d=v(this.a,/Trident\/([\d\w\.]+)/,1);c=p(-1!=this.a.indexOf("MSIE")?v(this.a,/MSIE ([\d\w\.]+)/,1):v(this.a,/rv:([\d\w\.]+)/,1)),""!=d&&p(d),a=new q("MSIE",0,0,0,0,0,0,new n("Windows"==a&&6<=c.c||"Windows Phone"==a&&8<=b.c,!1))}else if(-1!=this.a.indexOf("Opera"))a:if(a=p(v(this.a,/Presto\/([\d\w\.]+)/,1)),p(t(this)),null!==a.c||p(v(this.a,/rv:([^\)]+)/,1)),-1!=this.a.indexOf("Opera Mini/"))a=p(v(this.a,/Opera Mini\/([\d\.]+)/,1)),a=new q("OperaMini",0,0,0,s(this),0,0,new n(!1,!1));else{if(-1!=this.a.indexOf("Version/")&&(a=p(v(this.a,/Version\/([\d\.]+)/,1)),null!==a.c)){a=new q("Opera",0,0,0,s(this),0,0,new n(10<=a.c,!1));break a}a=p(v(this.a,/Opera[\/ ]([\d\.]+)/,1)),a=null!==a.c?new q("Opera",0,0,0,s(this),0,0,new n(10<=a.c,!1)):new q("Opera",0,0,0,s(this),0,0,new n(!1,!1))}else/OPR\/[\d.]+/.test(this.a)?a=u(this):/AppleWeb(K|k)it/.test(this.a)?a=u(this):-1!=this.a.indexOf("Gecko")?(a="Unknown",b=new o,p(t(this)),b=!1,-1!=this.a.indexOf("Firefox")?(a="Firefox",b=p(v(this.a,/Firefox\/([\d\w\.]+)/,1)),b=3<=b.c&&5<=b.g):-1!=this.a.indexOf("Mozilla")&&(a="Mozilla"),c=p(v(this.a,/rv:([^\)]+)/,1)),b||(b=1<c.c||1==c.c&&9<c.g||1==c.c&&9==c.g&&2<=c.D),a=new q(a,0,0,0,s(this),0,0,new n(b,!1))):a=$;return a},w.prototype.e=function(){for(var a=[],b=0;b<arguments.length;b++)a.push(arguments[b].replace(/[\W_]+/g,"").toLowerCase());return a.join(this.ma)},x.prototype.getName=function(){return this.N},E.prototype.remove=function(){var a=this.o;a.parentNode&&a.parentNode.removeChild(a)};var _={sa:"serif",ra:"sans-serif",qa:"monospace"};H.prototype.start=function(){this.oa=Y(),F(this.t,new x(this.m.getName()+",serif",y(this.m))),F(this.u,new x(this.m.getName()+",sans-serif",y(this.m))),J(this)},M.prototype.ia=function(a){var b=this.A;b.F&&i(b.q,[b.h.e(b.j,a.getName(),y(a).toString(),"active")],[b.h.e(b.j,a.getName(),y(a).toString(),"loading"),b.h.e(b.j,a.getName(),y(a).toString(),"inactive")]),C(b,"fontactive",a),this.ea=!0,O(this)},M.prototype.ja=function(a){var b=this.A;if(b.F){var c=j(b.q,b.h.e(b.j,a.getName(),y(a).toString(),"active")),d=[],e=[b.h.e(b.j,a.getName(),y(a).toString(),"loading")];c||d.push(b.h.e(b.j,a.getName(),y(a).toString(),"inactive")),i(b.q,d,e)}C(b,"fontinactive",a),O(this)},P.prototype.load=function(a){this.d=new f(this.K,a.context||this.K),this.T=!1!==a.events,this.R=!1!==a.classes;var b=new A(this.d,a),c=[],d=a.timeout;b.F&&i(b.q,[b.h.e(b.j,"loading")]),C(b,"loading");var g;c=this.B;var h=this.d,j=[];for(g in a)if(a.hasOwnProperty(g)){var k=c.C[g];k&&j.push(k(a[g],h))}for(c=j,this.U=this.V=c.length,a=new M(this.a,this.d,b,d),d=0,g=c.length;g>d;d++)h=c[d],h.L(this.a,e(this.la,this,h,b,a))},P.prototype.la=function(a,b,c,d){var e=this;d?a.load(function(a,b,d){Q(e,c,a,b,d)}):(a=0==--this.V,this.U--,a&&0==this.U?B(b):(this.R||this.T)&&N(c,[],{},null,a))};var aa="//fonts.googleapis.com/css";R.prototype.e=function(){if(0==this.s.length)throw Error("No fonts to load!");if(-1!=this.P.indexOf("kit="))return this.P;for(var a=this.s.length,b=[],c=0;a>c;c++)b.push(this.s[c].replace(/ /g,"+"));return a=this.P+"?family="+b.join("%7C"),0<this.W.length&&(a+="&subset="+this.W.join(",")),0<this.fa.length&&(a+="&text="+encodeURIComponent(this.fa)),a};var ba={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},ca={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},da={i:"i",italic:"i",n:"n",normal:"n"},ea=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;S.prototype.parse=function(){for(var a=this.s.length,b=0;a>b;b++){var c=this.s[b].split(":"),d=c[0].replace(/\+/g," "),e=["n4"];if(2<=c.length){var f,g=c[1];if(f=[],g){g=g.split(",");for(var h=g.length,i=0;h>i;i++){var j;if(j=g[i],j.match(/^[\w-]+$/)){j=ea.exec(j.toLowerCase());var k=void 0;if(null==j)k="";else{if(k=void 0,k=j[1],null==k||""==k)k="4";else{var l=ca[k];k=l?l:isNaN(k)?"4":k.substr(0,1)}j=j[2],k=[null==j||""==j?"n":da[j],k].join("")}j=k}else j="";j&&f.push(j)}}0<f.length&&(e=f),3==c.length&&(c=c[2],f=[],c=c?c.split(","):f,0<c.length&&(c=ba[c[0]])&&(this.M[d]=c))}for(this.M[d]||(c=ba[d])&&(this.M[d]=c),c=0;c<e.length;c+=1)this.da.push(new x(d,e[c]))}};var fa={Arimo:!0,Cousine:!0,Tinos:!0};T.prototype.L=function(a,b){b(a.k.Y)},T.prototype.load=function(a){var b=this.d;"MSIE"==this.a.getName()&&1!=this.f.blocking?h(b,e(this.aa,this,a)):this.aa(a)},T.prototype.aa=function(a){for(var b=this.d,c=new R(this.f.api,k(b),this.f.text),d=this.f.families,e=d.length,f=0;e>f;f++){var g=d[f].split(":");3==g.length&&c.W.push(g.pop());var h="";2==g.length&&""!=g[1]&&(h=":"),c.s.push(g.join(h))}d=new S(d),d.parse(),l(b,c.e()),a(d.da,d.M,fa)},U.prototype.J=function(a){var b=this.d;return k(this.d)+(this.f.api||"//f.fontdeck.com/s/css/js/")+(b.w.location.hostname||b.K.location.hostname)+"/"+a+".js"},U.prototype.L=function(a,b){var c=this.f.id,d=this.d.w,e=this;c?(d.__webfontfontdeckmodule__||(d.__webfontfontdeckmodule__={}),d.__webfontfontdeckmodule__[c]=function(a,c){for(var d=0,f=c.fonts.length;f>d;++d){var g=c.fonts[d];e.p.push(new x(g.name,z("font-weight:"+g.weight+";font-style:"+g.style)))}b(a)},m(this.d,this.J(c),function(a){a&&b(!1)})):b(!1)},U.prototype.load=function(a){a(this.p)},V.prototype.J=function(a){var b=k(this.d);return(this.f.api||b+"//use.typekit.net")+"/"+a+".js"},V.prototype.L=function(a,b){var c=this.f.id,d=this.d.w,e=this;c?m(this.d,this.J(c),function(a){if(a)b(!1);else{if(d.Typekit&&d.Typekit.config&&d.Typekit.config.fn){a=d.Typekit.config.fn;for(var c=0;c<a.length;c+=2)for(var f=a[c],g=a[c+1],h=0;h<g.length;h++)e.p.push(new x(f,g[h]));try{d.Typekit.load({events:!1,classes:!1})}catch(a){}}b(!0)}},2e3):b(!1)},V.prototype.load=function(a){a(this.p)},W.prototype.L=function(a,b){var c=this,d=c.f.projectId,e=c.f.version;if(d){var f=c.d.w;m(this.d,c.J(d,e),function(e){if(e)b(!1);else{if(f["__mti_fntLst"+d]&&(e=f["__mti_fntLst"+d]()))for(var g=0;g<e.length;g++)c.p.push(new x(e[g].fontfamily));b(a.k.Y)}}).id="__MonotypeAPIScript__"+d}else b(!1)},W.prototype.J=function(a,b){var c=k(this.d),d=(this.f.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"");return c+"//"+d+"/"+a+".js"+(b?"?v="+b:"")},W.prototype.load=function(a){a(this.p)},X.prototype.load=function(a){var b,c,d=this.f.urls||[],e=this.f.families||[],f=this.f.testStrings||{};for(b=0,c=d.length;c>b;b++)l(this.d,d[b]);for(d=[],b=0,c=e.length;c>b;b++){var g=e[b].split(":");if(g[1])for(var h=g[1].split(","),i=0;i<h.length;i+=1)d.push(new x(g[0],h[i]));else d.push(new x(g[0]))}a(d,f)},X.prototype.L=function(a,b){return b(a.k.Y)};var ga=new P(this);ga.B.C.custom=function(a,b){return new X(b,a)},ga.B.C.fontdeck=function(a,b){return new U(b,a)},ga.B.C.monotype=function(a,b){return new W(b,a)},ga.B.C.typekit=function(a,b){return new V(b,a)},ga.B.C.google=function(a,b){return new T(b,a)},this.WebFont||(this.WebFont={},this.WebFont.load=e(ga.load,ga),this.WebFontConfig&&ga.load(this.WebFontConfig))}(this,document);
     
    • Нравится Нравится x 1
  8. TopicStarter Overlay
    onealoner

    onealoner Бывалый

    Сообщения:
    479
    Симпатии:
    135
    Лучших ответов:
    0
    @volkod, мне вставить этот код вместо того, что есть?
     
  9. volkod

    volkod Кодер PRO Users

    Сообщения:
    97
    Симпатии:
    33
    Лучших ответов:
    0
    да
     
  10. TopicStarter Overlay
    onealoner

    onealoner Бывалый

    Сообщения:
    479
    Симпатии:
    135
    Лучших ответов:
    0
    Спасибо
     
  11. Ботяра

    Ботяра Забанен

    Сообщения:
    0
    Симпатии:
    0
    Лучших ответов:
    54
    @onealoner, а не проще удалить в шаблоне class="copyright" и id="footer"? Тогда не будет их выводится в шаблоне.

    PS что эта тема делает в разделе копирайт/рерайт? :eek: