var mayak_arrows_my=300;
var mayak_tytime_arrows=5;
var post_mayak_go,stopwatch;
function mayak_lop_arrows(){
stopwatch=setInterval("mayak_scroll()",120)
}
function mayakhendr(){
clearInterval(stopwatch)
}
function mayak_scroll(){
post_mayak_go=document.documentElement.scrollTop||document.body.scrollTop;
window.scrollTo(0,++post_mayak_go)
}
function mayak_the_highest_point(){
try{
if(window.pageYOffset!=undefined){
return window.pageYOffset
}
return window.document.body.scrollTop
}
catch(b){
try{
return window.document.body.scrollTop
}
catch(a){
return 0
}
}
}
function mayak_scroll_to_top(){
var b=window.document.body;
var c=mayak_the_highest_point();
window.scrollBy(0,-mayak_arrows_my);
var a=mayak_the_highest_point();
if(c>a){
setTimeout("mayak_scroll_to_top()",mayak_tytime_arrows)
}
else{
document.getElementById("mayak_down_img").style.display="block"
}
return false
}
function mayak_down_arrow(){
var b=window.document.body;
var c=mayak_the_highest_point();
window.scrollBy(0,mayak_arrows_my);
var a=mayak_the_highest_point();
if(c<a){
setTimeout("mayak_down_arrow()",mayak_tytime_arrows)
}
else{
document.getElementById("mayak_down_img").style.display="none"
}
return false
}
function slow_mayak_scroll(){
var a=window.document.body;
var c=a.scrollHeight;
var b=mayak_the_highest_point();
if(b==0){
document.getElementById("mayak_up_img").style.display="none"
}
else{
document.getElementById("mayak_up_img").style.display="block"
}
return false
}
setInterval("slow_mayak_scroll()",100);
'<div class="arrow"> <a href="#" onclick="return mayak_scroll_to_top()"><img border="0" id="mayak_up_img" width="40px" src="/wp-content/themes/wp-themes-blogger/images/strelka-vverh.png" title="Наверх" width="40" height="40" /></a><br /> <a href="#" onclick="mayakhendr();
return false;
"><img border="0" id="mayak_up_img" width="40px" src="/wp-content/themes/wp-themes-blogger/images/pauza.png" title="Пауза" width="40" height="40" /></a><br /><a href="#" onclick="clearInterval(stopwatch);
mayak_lop_arrows();
return false;
"><img border="0" id="mayak_up_img" width="40px" src="/wp-content/themes/wp-themes-blogger/images/chitat.png" title="Читать" width="40" height="40" /></a><br /> <a href="#" onclick="return mayak_down_arrow()"><img border="0" width="40px" id="mayak_down_img" src="/wp-content/themes/wp-themes-blogger/images/strelka-vniz.png" title="Вниз" width="40" height="40" /></a></div></div>');
var addComment={
moveForm:function(d,f,i,c){
var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");
if(!h||!b||!l||!j){
return
}
m.respondId=i;
c=c||false;
if(!m.I("wp-temp-form-div")){
a=document.createElement("div");
a.id="wp-temp-form-div";
a.style.display="none";
b.parentNode.insertBefore(a,b)
}
h.parentNode.insertBefore(b,h.nextSibling);
if(k&&c){
k.value=c
}
j.value=f;
l.style.display="";
l.onclick=function(){
var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);
if(!e||!o){
return
}
n.I("comment_parent").value="0";
e.parentNode.insertBefore(o,e);
e.parentNode.removeChild(e);
this.style.display="none";
this.onclick=null;
return false
};
try{
m.I("comment").focus()
}
catch(g){
}
return false
}
,I:function(a){
return document.getElementById(a)
}
};
jQuery(document).ready(function($){
var active=$('.gravatar_cache_form input[type=checkbox]');
var input=$('.gravatar_cache_form input[type=text]');
if(active.prop('checked')!=true){
input.each(function(){
$(this).attr('readonly','readonly').addClass('disabled-input');
}
)
}
active.click(function(){
if($(this).prop('checked')!= true){
input.each(function(){
$(this).attr('readonly','readonly').addClass('disabled-input');
}
)
}
else{
input.each(function(){
$(this).removeAttr('readonly').removeClass('disabled-input');
}
)
}
}
)
}
© 2023 Quttera Ltd. All rights reserved.