PageSourceSearch

https://jm.fccs.com/js/share.js?20160601_2

js fccs.com collected 2026-10-02 05:07:31 UTC 2,420 bytes, 110 lines download raw bytes

1
2$(function(){
3
4
5
6var imgfirst='//imgf1.fccs.com.cn/public/img/wx_app_icon.jpg';
7
8
9	//if($("img").length>0){
10		//imgfirst=$("img").eq(0).attr('src');
11	//}
12
13	//if(imgfirst.indexOf("https://v1.jiathis.com/code/images/r4.gif")>-1&&$("img").length>1){
14		//imgfirst=$("img").eq(1).attr('src');
15	//}
16	//<input type="hidden" value="images/rong01_s.jpg" id="sharepicid"/>
17
18	if($("#sharepicid")!=null){
19		imgfirst=$("#sharepicid").attr("value");
20	}
21
22
23	if(imgfirst==null){
24		if($("img").length>0){
25				$("img").each(function (i, item) {
26					  if(($(item).attr('src').indexOf('https://')>-1&&$(item).attr('src').indexOf('.fccs.')>-1)||$(item).attr('src').indexOf('https://')==-1){
27							imgfirst=$(item).attr('src');
28					  }
29				 })
30			}
31
32	}
33
34	var thisUrl = window.location.href;
35
36
37	if(imgfirst.indexOf("https://")==-1){
38		var durl=window.location.href;
39		if(durl.indexOf("?")>0){
40			durl=durl.substring(0,durl.indexOf("?"));
41		}
42		if(/^http:\/\/.*\/$/.test(durl)){
43			durl=durl+"index.html";
44		}
45		if($.trim(imgfirst).indexOf("/")==0){
46			imgfirst=window.location.protocol +window.location.host+imgfirst;
47
48		}
49		if($.trim(imgfirst).indexOf("/")!=0){
50			if($.trim(imgfirst).indexOf("../")==0){
51				imgfirst=durl.replace(/\/[^\/]+?\/[^.\/]+?.(html|jsp|do)+?/g,"/"+$.trim(imgfirst).replace("../",""));
52			}else{
53				imgfirst=durl.replace(/\/[^.\/]+?.(html|jsp|do)+?/g,"/"+$.trim(imgfirst));
54
55			}
56		}
57	}
58
59	//alert(imgfirst);
60
61
62
63	var weixin_title=document.title;
64	//var weixin_description=document.getElementsByTagName('meta')['description'];
65	var weixin_description=$('meta[name="description"]').attr('content');
66	//alert(weixin_title);
67	//alert(weixin_description);
68
69$.ajax({
70				type : "post",
71				dataType : "jsonp",
72				url : "//m.fccs.com/v10/weixing/config2.do?callback=?",
73				data: {"shareurl":thisUrl,"nd":new Date().getTime()},
74				success : function(thisConfig){
75					  wx.config(thisConfig);
76
77					 wx.ready(function() {
78						wx.onMenuShareAppMessage({
79							title : weixin_title,
80							desc : weixin_description,
81							link : thisUrl,
82							imgUrl : imgfirst,
83							success : function() {
84							},
85							cancel : function() {
86							}
87						});
88
89						wx.onMenuShareTimeline({
90							title : weixin_title,
91							link : thisUrl,
92							imgUrl : imgfirst,
93							success : function() {
94							},
95							cancel : function() {
96							}
97						});
98					});
99
100				},
101				error:function(data){
102				}
103			});
104
105
106
107});
108
109
110

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.