PageSourceSearch

https://painting-portrait.com/static/blog/default/js/blog.js?v=4.0072

js painting-portrait.com collected 2026-10-06 16:28:19 UTC 7,493 bytes, 212 lines download raw bytes

1/*
2Powered by ueeshop.com		http://www.ueeshop.com
3广州联雅网络科技有限公司		020-83226791
4*/
5$(function(){
6	$('#b_header .rightbar .menu').on('touchend',function(){
7		$(this).parent().toggleClass('current');
8	});
9	if($('#blog_list').size()){
10		//列表加载
11		var page=1;
12		var loading=0;
13		var load_list=function(){
14			if(!loading){
15				loading=1;
16				$.get('?', 'do_action=action.blog_list_loading&date='+date+'&Keyword='+Keyword+'&CateId='+CateId+'&Tags='+Tags+'&page='+page, function(data){
17					if(data.ret=1){
18						var html='';
19						for(var key in data.msg[0]){
20							html+='<div class="container">';
21								html+='<div class="item">';
22									html+='<div class="para">By '+data.msg[0][key].Author+' | <span>'+data.msg[0][key].Day+'</span> '+data.msg[0][key].YearMonth+' | <span>'+data.msg[0][key].Comments+'</span> Comments</div>';
23									html+='<h2><a href="'+data.msg[0][key].Url+'" target="_blank">'+data.msg[0][key].Title+'</a></h2>';
24									html+='<div class="bg"></div>';
25									html+='<div class="con">'+data.msg[0][key].BriefDescription+'</div>';
26									if(data.msg[0][key].PicPath){
27										html+='<div class="img"><img src="'+data.msg[0][key].PicPath+'" /></div>';
28									}
29									html+='<div class="line"></div>';
30									html+='<a href="'+data.msg[0][key].Url+'" target="_blank" class="read">READ MORE</a>';
31								html+='</div>';
32							html+='</div>';
33							html+='<div class="spacing"></div>';
34						}
35						if(!data.msg[0].length && page==1){	//没有内容
36							html+='<div class="container">';
37								html+='<div class="item">';
38									html+='<div class="con">No Data!</div>';
39								html+='</div>';
40							html+='</div>';
41						}
42						$('#blog_list').append(html);
43						if(data.msg[2]==data.msg[3] || (!data.msg[0].length && page==1)) $('.blog_list_more').remove();
44						page++;
45					}
46					loading=0;
47				}, 'json');
48
49			}
50		}
51		load_list();
52		$('.blog_list_more').click(function(){load_list();});
53	}
54	//评论加载
55	if($('.review_content').size()){
56		var review_page=1;
57		var review_loading=0;
58		var load_review=function(){
59			if(!review_loading){
60				review_loading=1;
61				$.post('?', 'do_action=action.blog_review_loading&AId='+$('input[name=AId]').val()+'&page='+review_page, function(data){
62					if(data.ret==1){
63						var html='';
64						for(var key in data.msg[0]){
65							html+='<div class="name">'+data.msg[0][key].Name+'</div>';
66							html+='<div class="box">';
67								html+='<div class="txt">'+data.msg[0][key].Content+'</div>';
68								if(data.msg[0][key]['Reply']){
69									html+='<div class="blank6"></div>';
70									html+='<div class="txt"><span>Re:</span>'+data.msg[0][key]['Reply']+'</div>';
71								}
72								html+='<div class="date">'+data.msg[0][key].AccTime+'</div>';
73							html+='</div>';
74						}
75						$('.review_content').append(html);
76						if(data.msg[2]==data.msg[3]) $('.review .more').remove();
77						review_page++;
78					}
79					review_loading=0;
80				}, 'json');
81			}
82		}
83		load_review();
84		$('.review .more').click(function(){load_review();});
85	}
86	$('.form form').submit(function(){return false;});
87	$('.form input:submit').click(function(){
88		if(global_obj.check_form($('*[notnull]'), $('*[format]'))){return false;};
89		$('.form input:submit').attr('disabled', true);
90		$.post('?', $('.form form').serializeArray(), function(data){
91			if (data.ret!=1){
92				$('.form input:submit').removeAttr('disabled');
93				global_obj.new_win_alert(data.msg);
94			}else{
95				global_obj.new_win_alert(data.msg, function(){
96					window.location=window.location.href;
97				}, '', undefined, '');
98			}
99		}, 'json');
100	});
101	$('.share_toolbox .share_s_btn').on('click', function(){//分享
102		var $obj=$('.share_toolbox');
103		if(!$(this).hasClass('share_s_more')){
104			$(this).shareThis($(this).attr('data'), $obj.attr('data-title'), $obj.attr('data-url'));
105		}
106	});
107})
108
109//分享插件
110$.fn.shareThis=function(type, title, url){
111	var image=back_url=encode_url="";
112	if(url==undefined){
113		url=window.location.href;
114	}
115	if(url.indexOf("#")>0){
116		url=url.substring(0, url.indexOf("#"));
117	}
118	if(type=="pinterest"){
119		//image=window.location.protocol+'//'+window.location.host+$(".big_box .big_pic>img").attr("src");
120		//var url=$(".big_box .big_pic>img").attr("src");
121		image=$(".big_box .big_pic>img").attr("src");
122		if(image.indexOf('ueeshop.ly200-cdn.com')!=-1){
123			image=$(".big_box .big_pic>img").attr("src");
124		}else{
125			image=window.location.protocol+'//'+window.location.host+$(".big_box .big_pic>img").attr("src");
126		}
127	}
128	if(image!="" && image!=undefined){
129		image=encodeURIComponent(image);
130	}
131	e_url=encodeURIComponent(url);
132	title=encodeURIComponent(title);
133	switch(type){
134		case "delicious":
135			back_url = "https://delicious.com/post?title=" + title + "&url=" + e_url;
136			break;
137		case "digg":
138			back_url = "http://digg.com/submit?phase=2&url=" + e_url + "&title=" + title + "&bodytext=&topic=tech_deals";
139			break;
140		case "reddit":
141			back_url = "http://reddit.com/submit?url=" + e_url + "&title=" + title;
142			break;
143		case "furl":
144			back_url = "http://www.furl.net/savedialog.jsp?t=" + title + "&u=" + e_url;
145			break;
146		case "rawsugar":
147			back_url = "http://www.rawsugar.com/home/extensiontagit/?turl=" + e_url + "&tttl=" + title;
148			break;
149		case "stumbleupon":
150			back_url = "http://www.stumbleupon.com/submit?url=" + e_url + "&title=" + title;
151			break;
152		case "blogmarks":
153			break;
154		case "facebook":
155			back_url = "http://www.facebook.com/share.php?src=bm&v=4&u=" + e_url + "&t=" + title;
156			break;
157		case "technorati":
158			back_url = "http://technorati.com/faves?sub=favthis&add=" + e_url;
159			break;
160		case "spurl":
161			back_url = "http://www.spurl.net/spurl.php?v=3&title=" + title + "&url=" + e_url;
162			break;
163		case "simpy":
164			back_url = "http://www.simpy.com/simpy/LinkAdd.do?title=" + title + "&href=" + e_url;
165			break;
166		case "ask":
167			break;
168		case "google":
169			back_url = "http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=" + e_url + "&title=" + title;
170			break;
171		case "netscape":
172			back_url = "http://www.netscape.com/submit/?U=" + e_url + "&T=" + title + "&C=";
173			break;
174		case "slashdot":
175			back_url = "http://slashdot.org/bookmark.pl?url=" + url + "&title=" + title;
176			break;
177		case "backflip":
178			back_url = "http://www.backflip.com/add_page_pop.ihtml?title=" + title + "&url=" + e_url;
179			break;
180		case "bluedot":
181			back_url = "http://bluedot.us/Authoring.aspx?u=" + e_url + "&t=" + title;
182			break;
183		case "kaboodle":
184			back_url = "http://www.kaboodle.com/za/selectpage?p_pop=false&pa=url&u=" + e_url;
185			break;
186		case "squidoo":
187			back_url = "http://www.squidoo.com/lensmaster/bookmark?" + e_url;
188			break;
189		case "twitter":
190			back_url = "https://twitter.com/intent/tweet?status=" + title + ":+" + e_url;
191			break;
192		case "pinterest":
193			back_url = "http://pinterest.com/pin/create/button/?url=" + e_url + "&media=" + image 
193+ "&description=" + title;
194			break;
195		case "vk":
196			back_url = "http://vk.com/share.php?url=" + url;
197			break;
198		case "bluedot":
199			back_url = "http://blinkbits.com/bookmarklets/save.php?v=1&source_url=" + e_url + "&title=" + title;
200			break;
201		case "blinkList":
202			back_url = "http://blinkbits.com/bookmarklets/save.php?v=1&source_url=" + e_url + "&title=" + title;
203			break;
204		case "linkedin":
205			back_url = "http://www.linkedin.com/cws/share?url=" + e_url + "&title=" + title;
206			break;
207		case "googleplus":
208			back_url = "https://plus.google.com/share?url=" + e_url;
209			break;
210	}
211	window.open(back_url, "bookmarkWindow");
212}

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.