christianhome


'; oldhtml = oldhtml.substring(0, check_index) + yt_video + oldhtml.substring(check_index + yt_link.length); check_index = oldhtml.indexOf(search_key); if (check_index == -1) { search_key = 'https://www.youtube.com/watch?v='; check_index = oldhtml.indexOf(search_key) } } } if (Replace_Image_Link) { var save_html = ''; var temp_html = oldhtml; for (var i = 0; i < Replace_Image_Ext.length; i++) { var search_key = '.' + Replace_Image_Ext[i]; var upper_html = temp_html.toUpperCase(); var check_index = upper_html.indexOf(search_key); while (check_index != -1) { img_src = temp_html.substring(0, check_index + search_key.length); upper_html = img_src.toUpperCase(); var http_search = 'HTTP://'; var find_http = upper_html.indexOf(http_search); var save_http = ''; while (find_http != -1) { save_http = http_search.toLowerCase(); img_src = img_src.substring(find_http + http_search.length); upper_html = img_src.toUpperCase(); find_http = upper_html.indexOf(http_search) } http_search = 'HTTPS://'; upper_html = img_src.toUpperCase(); find_http = upper_html.indexOf(http_search); while (find_http != -1) { save_http = http_search.toLowerCase(); img_src = img_src.substring(find_http + http_search.length); upper_html = img_src.toUpperCase(); find_http = upper_html.indexOf(http_search) } if (save_http == '' || img_src.length < 6) { break } img_src = save_http + img_src; save_html += temp_html.substring(0, check_index + search_key.length - img_src.length) + ''; temp_html = temp_html.substring(check_index + search_key.length); upper_html = temp_html.toUpperCase(); check_index = upper_html.indexOf(search_key) } } oldhtml = save_html + temp_html } if (Replace_Force_Tag) { var length = Force_Tag.length; if (length % 2 == 1) { length-- } for (var i = 0; i < length; i += 2) { while (1) { var temp_html = oldhtml.toLowerCase(); check_index = temp_html.indexOf(Force_Tag[i]); if (check_index != -1) { oldhtml = oldhtml.substring(0, check_index) + Force_Tag[i + 1] + oldhtml.substring(check_index + Force_Tag[i].length) } else { break } } } } return oldhtml }); $('.comment_wrap .comment_body p') .html(function (i, h) { temp = h.toLowerCase(); index = temp.indexOf('@' + Msgs.addComment + ''; $(Cur_Cform_Hdr) .html(reset_html) } else { $(Cur_Cform_Hdr) .html('') } Cur_Cform_Hdr = '#r_f_c' + par_id; $(Cur_Cform_Hdr) .html(html); $('#comment-editor') .attr('src', Cform_Ins_ParID(par_id)) } cur_url = window.location.href; search_formid = '#comment-form_'; search_index = cur_url.indexOf(search_formid); if (search_index != -1) { ret_id = cur_url.substring(search_index + search_formid.length); Display_Reply_Form('#rc' + ret_id) } for (var i = 0; i < Items.length; i++) { if ('parentId' in Items[i]) { var par_id = Items[i].parentId; var par_level = parseInt($('#c' + par_id + ':first') .attr('level')); $('#c' + par_id + ' .comment_child:first') .html(function (index, oldhtml) { var child_id = Items[i].id; if (par_level >= Config.maxThreadDepth) { $('#c' + child_id + ':first .comment_reply') .remove() } var child_html = $('#c' + child_id + ':first') .html(); child_html = '
' + child_html + '
'; $('#c' + child_id) .remove(); return (oldhtml + child_html) }) } } var avatar=$("#comments"); avatar.find('.comment_avatar img').each(function() { var ava = $(this).attr('src'); $(this).show().attr('src', ava.replace(/\/s[0-9]+(\-c)?\//,"/s100-c/")); }); //]]>