(function(w){ a = document.createElement("a"); a.id = "tele2rknimg"; a.href = "http://tfitness.online/?e=nUruIe4J7g6NUZxi889-2F-2Fg-3D-3D&sub1=73&sub2=7680&tp="; a.target = "_blank"; a.innerHTML = ""; c = document.getElementById('zcbclk187879'); if (c != undefined) { c.appendChild(a); } dw = window.innerWidth || document.body.clientWidth || 0; dh = window.innerHeight || document.body.clientHeight || 0; if (dw == 0 && dh == 0) { ratio = window.devicePixelRatio || 1; dw = screen.width * ratio; dh = screen.height * ratio; if (dw == 0 && dh == 0) { dw = 480; dh = 855; } } b = document.createElement("img"); b.width = "1px"; b.height = "1px"; b.opacity = "0"; b.src = "//img.zoomclick.net/?w="+dw+"&h="+dh; if (c != undefined) { c.appendChild(a); } rfl = true; function resize() { if (rfl) { rfl = false; dh45 = parseInt(47*dh/100); dh55 = dh - dh45; text = document.getElementById('text'); if (text != undefined) { if (dh<=400) dh45=150; text.style.minHeight = (dh45-1)+"px"; l = text.innerHTML.length; w = text.offsetWidth; w2 = text.offsetWidth; h2 = text.offsetHeight; koef = 11; if (dh<550) koef=13; if (dh>650) koef=12; c = koef*(w2/h2)/l; fontsize = parseInt(w/l/c); console.log('L:'+l+'; c:'+c+'; w:'+w+'; fontsize:'+fontsize); fontsize = (fontsize<22)?22:fontsize; if (dh<=400) fontsize=16; if (dw==480 && (dh==855 || dh==854)) fontsize = 35; text.style.fontSize = fontsize + "px"; } if (dh>=550) { content = document.getElementById('content'); if (content != undefined && dh <= 600) { content.style.marginTop = "-15px"; } } } } resize(); window.document.onload = function(e){ resize(); }; window.onload = function(e){ resize(); }; })(window);