PageSourceSearch

https://yuhaoyun.world/static/js/aten/article.js?1790863905

js yuhaoyun.world collected 2026-10-05 23:09:39 UTC 1,204 bytes, 66 lines download raw bytes

1// 文章按讚 / 收藏:按鈕的 data-url 由後端依目前狀態給「加入」或「移除」的網址
2function article_interactive(button_id)
3{
4	var url								= $('#'+ button_id).data('url');
5	if(url==undefined || url=='')
6		return;
7
8	$.post(url, function(res)
9	{
10		if(res.status=='ok')
11		{
12			swal({
13				title:	t('Like / bookmark article'),
14				text:	res.message,
15				type:	"success",
16			}).then(function(result) {
17				location.reload();
18			});
19		}
20		else if(res.status=='no_login')
21		{
22			swal({
23				title:	t('Like / bookmark article'),
24				text:	res.message,
25				type:	"warning",
26			});
27		}
28		else
29		{
30			swal(t('Server error'));
31		}
32	}, 'json');
33}
34
35// 會員中心「我的收藏」的移除鈕
36function remove_collect_from_article(url)
37{
38	if(url==undefined || url=='')
39		return;
40
41	$.post(url, function(res)
42	{
43		if(res.status=='ok')
44		{
45			swal({
46				title:	t('Bookmarked articles'),
47				text:	res.message,
48				type:	"success",
49			}).then(function(result) {
50				location.reload();
51			});
52		}
53		else if(res.status=='no_login')
54		{
55			swal({
56				title:	t('Bookmarked articles'),
57				text:	res.message,
58				type:	"warning",
59			});
60		}
61		else
62		{
63			swal(t('Server error'));
64		}
65	}, 'json');
66}

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.