PageSourceSearch

https://cwo.cc/wp-content/themes/onenav/js/comments-ajax.js?ver=4.1810

js cwo.cc collected 2026-10-06 13:16:07 UTC 1,553 bytes, 52 lines download raw bytes

1/*
2 * @Author: iowen
3 * @Author URI: https://www.iowen.cn/
4 * @Date: 2021-06-03 08:55:59
5 * @LastEditors: iowen
6 * @LastEditTime: 2023-02-03 00:17:23
7 * @FilePath: \onenav\js\comments-ajax.js
8 * @Description: 
9 */
10
11var _list = 'comment-list'; 
12var cancel = $('#cancel-comment-reply-link');
13
14//提交评论
15$(document).on('click', "#commentform #submit", function () {
16	var _this = $(this);
17	var _form = _this.closest('form'); 
18	captcha_ajax(_this, '', function (n) {
19		var data = n.html;
20		if (n.status && data) {
21			var parent = $('#comment_parent').val();
22                $text = $(data);
23			if (parent != '0') {
24                $children = $('<ul class="children"></ul>');
25                $('#respond').before($children);
26                $children.html($text);
27			} else if (!$('.' + _list ).length) {
28                $children = $('<ul class="' + _list + '"></ul>');
29				if (theme.formpostion == 'bottom') {
30					$('#respond').before($children);
31				} else {
32					$('#respond').after($children);
33				}
34                $children.html($text);
35			} else {
36				if (theme.order == 'asc') {
37					$('.' + _list ).append($text); 
38				} else {
39					$('.' + _list ).prepend($text); 
40				}
41            }
42            $text.children(".new-comment").animate({opacity : 0},2000);
43			showAlert(JSON.parse('{"status":1,"msg":"提交成功!"}'));
44			$('#comment').val(''); 
45			cancel[0].click();
46			_form.find('[name="image_captcha"]').val('');
47			_form.find('.image-captcha').click();
48		}
49	});
50	return false;
51});
52

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.