function run1() {
$('head').append( $('').attr('href', 'https://i.novgorod.ru/caq/styles.css') );
$('head').append( $('').attr('href', 'https://forum.novgorod.ru/novgorod/comments.css') );
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
options.crossDomain ={
crossDomain: true
};
options.xhrFields = {
withCredentials: true
};
});
$(caq_comment_options.element).load('https://forum.novgorod.ru/novgorod/ajax-data.php?key='+caq_comment_options.key+'&id='+caq_comment_options.id+'&referer='+caq_comment_options.referer,function() {
if (typeof NovgorodRuCommentsOnLoad === 'function') NovgorodRuCommentsOnLoad();
if (window.location.hash) {
var hash=window.location.hash;
if (m=hash.match(/^#(post|answer)_(\d+)$/)) {
if ($('#post_'+m[2]).length!=0) {
$('html, body').animate({ scrollTop: $('#post_'+m[2]).offset().top }, 100);
}
}
}
});
}
function run(cnt) {
if (cnt<4) return;
$.getScript( "//i.novgorod.ru/caq/js/caq.js", function( data, textStatus, jqxhr ) {
run1();
});
}
$('head').append( $(''));
$(caq_comment_options.element).html('