PageSourceSearch

https://nextlevelworkplace.com/wp-content/plugins/super-socializer/js/front/sharing/sharing.js?ver=7.8.20

js nextlevelworkplace.com collected 2026-10-09 18:06:57 UTC 31,008 bytes, 776 lines download raw bytes

1/**
2 * Show more sharing services popup
3 */
4function theChampMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){
5	concate = '</ul></div><div class="footer-panel"><p></p></div></div>';
6	var theChampMoreSharingServices = {
7	  facebook: {
8		title: "Facebook",
9		locale: "en-US",
10		redirect_url: "http://www.facebook.com/sharer.php?u=" + postUrl + "&t=" + postTitle + "&v=3",
11	  },
12	  twitter: {
13		title: "Twitter",
14		locale: "en-US",
15		redirect_url: "http://twitter.com/intent/tweet?text=" + (twitterTitle ? twitterTitle : postTitle) + " " + postUrl,
16	  },
17	  google: {
18		title: "Google plus",
19		locale: "en-US",
20		redirect_url: "https://plus.google.com/share?url=" + postUrl,
21	  },
22	  linkedin: {
23		title: "Linkedin",
24		locale: "en-US",
25		redirect_url: "http://www.linkedin.com/shareArticle?mini=true&url=" + postUrl + "&title=" + postTitle,
26	  },
27	  pinterest: {
28		title: "Pinterest",
29		locale: "en-US",
30		redirect_url: "https://pinterest.com/pin/create/button/?url=" + postUrl + "&media=${media_link}&description=" + postTitle,
31		bookmarklet_url: "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());"
32	  },
33	  yahoo_bookmarks: {
34		title: "Yahoo",
35		locale: "en-US",
36		redirect_url: "http://bookmarks.yahoo.com/toolbar/savebm?u=" + postUrl + "&t=" + postTitle,
37	  },
38	  email: {
39		title: "Email",
40		locale: "en-US",
41		redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl,
42	  },
43	  delicious: {
44		title: "Delicious",
45		locale: "en-US",
46		redirect_url: "http://delicious.com/save?url=" + postUrl + "&title=" + postTitle,
47	  },
48	  reddit: {
49		title: "Reddit",
50		locale: "en-US",
51		redirect_url: "http://reddit.com/submit?url=" + postUrl + "&title=" + postTitle,
52	  },
53	  float_it: {
54		title: "Float it",
55		locale: "en-US",
56		redirect_url: "http://www.designfloat.com/submit.php?url=" + postUrl + "&title=" + postTitle,
57	  },
58	  google_mail: {
59		title: "Google Gmail",
60		locale: "en-US",
61		redirect_url: "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su=" + postTitle + "&body=Link: " + postUrl,
62	  },
63	  google_bookmarks: {
64		title: "Google Bookmarks",
65		locale: "en-US",
66		redirect_url: "http://www.google.com/bookmarks/mark?op=edit&bkmk=" + postUrl + "&title=" + postTitle,
67	  },
68	  digg: {
69		title: "Digg",
70		locale: "en-US",
71		redirect_url: "http://digg.com/submit?phase=2&url=" + postUrl + "&title=" + postTitle,
72	  },
73	  stumbleupon: {
74		title: "Stumbleupon",
75		locale: "en-US",
76		redirect_url: "http://www.stumbleupon.com/submit?url=" + postUrl + "&title=" + postTitle,
77	  },
78	  printfriendly: {
79		title: "PrintFriendly",
80		locale: "en-US",
81		redirect_url: "http://www.printfriendly.com/print?url=" + postUrl,
82	  },
83	  print: {
84		title: "Print",
85		locale: "en-US",
86		redirect_url: "http://www.printfriendly.com/print?url=" + postUrl,
87	  },
88	  tumblr: {
89		title: "Tumblr",
90		locale: "en-US",
91		redirect_url: "http://www.tumblr.com/share?v=3&u=" + postUrl + "&t=" + postTitle,
92		bookmarklet_url: "javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.tumblr.com/share',l=d.location,e=encodeURIComponent,p='?v=3&u='+e(l.href) +'&t='+e(d.title) +'&s='+e(s),u=f+p;try{if(!/^(.*\\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0);"
93	  },
94	  vk: {
95		title: "Vkontakte",
96		locale: "ru",
97		redirect_url: "https://vk.com/share.php?url=" + postUrl + "&title=" + postTitle,
98	  },
99	  evernote: {
100		title: "Evernote",
101		locale: "en-US",
102		redirect_url: "https://www.evernote.com/clip.action?url=" + postUrl + "&title=" + postTitle,
103		bookmarklet_url: "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();"
104	  },
105	  amazon_us_wish_list: {
106		title: "Amazon Wish List",
107		locale: "en-US",
108		redirect_url: "http://www.amazon.com/wishlist/add?u=" + postUrl + "&t=" + postTitle,
109		bookmarklet_url: "javascript:(function(){var w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,x='undefined',u='http://www.amazon.com/gp/wishlist/add';if(typeof s!='object')l.href=u+'?u='+e(l)+'&t='+e(d.title);function g(){if(d.readyState&&d.readyState!='complete'){setTimeout(g,200);}else{if(typeof AUWLBook==x)s.setAttribute('src',u+'.js?loc='+e(l)),d.body.appendChild(s);function f(){(typeof AUWLBook==x)?setTimeout(f,200):AUWLBook.showPopover();}f();}}g();}())"
110	  },
111	  wordpress_blog: {
112		title: "WordPress",
113		locale: "en-US",
114		redirect_url: "http://www.addtoany.com/ext/wordpress/press_this?linkurl=" + postUrl + "&linkname=" + postTitle,
115	  },
116	  whatsapp: {
117		title: "Whatsapp",
118		locale: "en-US",
119		redirect_url: "whatsapp://send?text=" + postTitle + " " + postUrl,
120	  },
121	  diigo: {
122		title: "Diigo",
123		locale: "en-US",
124		redirect_url: "http://www.diigo.com/post?url=" + postUrl + "&title=" + postTitle,
125	  },
126	  yc_hacker_news: {
127		title: "Hacker News",
128		locale: "en-US",
129		redirect_url: "http://news.ycombinator.com/submitlink?u=" + postUrl + "&t=" + postTitle,
130	  },
131	  box_net: {
132		title: "Box.net",
133		locale: "en-US",
134		redirect_url: "https://www.box.net/api/1.0/import?url=" + postUrl + "&name=" + postTitle + "&import_as=link",
135	  },
136	  aol_mail: {
137		title: "AOL Mail",
138		locale: "en-US",
139		redirect_url: "http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject=" + postTitle + "&body=" + postUrl,
140	  },
141	  yahoo_mail: {
142		title: "Yahoo Mail",
143		locale: "en-US",
144		redirect_url: "http://compose.mail.yahoo.com/?Subject=" + postTitle + "&body=Link: " + postUrl,
145	  },
146	  instapaper: {
147		title: "Instapaper",
148		locale: "en-US",
149		redirect_url: "http://www.instapaper.com/edit?url=" + postUrl + "&title=" + postTitle,
150	  },
151	  plurk: {
152		title: "Plurk",
153		locale: "en-US",
154		redirect_url: "http://www.plurk.com/m?content=" + postUrl + "&qualifier=shares",
155	  },
156	  wanelo: {
157		title: "Wanelo",
158		locale: "en-US",
159		redirect_url: "http://wanelo.com/p/post?bookmarklet=&images%5B%5D=&url=" + postUrl + "&title=" + postTitle + "&price=&shop=",
160		bookmarklet_url: "javascript:void ((function(url){if(!window.waneloBookmarklet){var productURL=encodeURIComponent(url),cacheBuster=Math.floor(Math.random()*1e3),element=document.createElement('script');element.setAttribute('src','//wanelo.com/bookmarklet/3/setup?*='+cacheBuster+'&url='+productURL),element.onload=init,element.setAttribute('type','text/javascript'),document.getElementsByTagName('head')[0].appendChild(element)}else init();function init(){window.waneloBookmarklet()}})(window.location.href))"
161	  },
162	  aim: {
163		title: "AIM",
164		locale: "en-US",
165		redirect_url: "http://share.aim.com/share/?url=" + postUrl + "&title=" + postTitle,
166	  },
167	  stumpedia: {
168		title: "Stumpedia",
169		locale: "en-US",
170		redirect_url: "http://www.stumpedia.com/submit?url=" + postUrl + "&title=" + postTitle,
171	  },
172	  viadeo: {
173		title: "Viadeo",
174		locale: "en-US",
175		redirect_url: "http://www.viadeo.com/shareit/share/?url=" + postUrl + "&title=" + postTitle,
176	  },
177	  yahoo_messenger: {
178		title: "Yahoo Messenger",
179		locale: "en-US",
180		redirect_url: "ymsgr:sendim?m=" + postUrl,
181	  },
182	  pinboard_in: {
183		title: "Pinboard",
184		locale: "en-US",
185		redirect_url: "http://pinboard.in/add?url=" + postUrl + "&title=" + postTitle,
186	  },
187	  blogger_post: {
188		title: "Blogger Post",
189		locale: "en-US",
190		redirect_url: "http://www.blogger.com/blog_this.pyra?t=&u=" + postUrl + "&l&n=" + postTitle,
191	  },
192	  typepad_post: {
193		title: "TypePad Post",
194		locale: "en-US",
195		redirect_url: "http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title=" + postTitle + "&qp_href=" + postUrl + "&qp_text=" + postTitle,
196	  },
197	  buffer: {
198		title: "Buffer",
199		locale: "en-US",
200		redirect_url: "http://bufferapp.com/add?url=" + postUrl + "&text=" + postTitle,
201	  },
202	  flipboard: {
203		title: "Flipboard",
204		locale: "en-US",
205		redirect_url: "https://share.flipboard.com/bookmarklet/popout?v=2&url=" + postUrl + "&title=" + postTitle,
206	  },
207	  mail: {
208		title: "Email",
209		locale: "en-US",
210		redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl,
211	  },
212	  pocket: {
213		title: "Pocket",
214		locale: "en-US",
215		redirect_url: "https://readitlaterlist.com/save?url=" + postUrl + "&title=" + postTitle,
216	  },
217	  fark: {
218		title: "Fark",
219		locale: "en-US",
220		redirect_url: "http://cgi.fark.com/cgi/fark/submit.pl?new_url=" + postUrl,
221	  },
222	  yummly: {
223		title: "Yummly",
224		locale: "en-US",
225		redirect_url: "http://www.yummly.com/urb/verify?url=" + postUrl + "&title=" + postTitle,
226	  },
227	  app_net: {
228		title: "App.net",
229		locale: "en-US",
230		redirect_url: "https://account.app.net/login/",
231	  },
232	  baidu: {
233		title: "Baidu",
234		locale: "en-US",
235		redirect_url: "http://cang.baidu.com/do/add?it=" + postTitle + "&iu=" + postUrl,
236	  },
237	  balatarin: {
238		title: "Balatarin",
239		locale: "en-US",
240		redirect_url: "https://www.balatarin.com/login",
241	  },
242	  bibSonomy: {
243		title: "BibSonomy",
244		locale: "en-US",
245		redirect_url: "http://www.bibsonomy.org/login",
246	  },
247	  Bitty_Browser: {
248		title: "Bitty Browser",
249		locale: "en-US",
250		redirect_url: "http://www.bitty.com/manual/?contenttype=&contentvalue=" + postUrl,
251	  },
252	  Blinklist: {
253		title: "Blinklist",
254		locale: "en-US",
255		redirect_url: "http://blinklist.com/blink?t=" + postTitle + "&d=&u=" + postUrl,
256	  },
257	  BlogMarks: {
258		title: "BlogMarks",
259		locale: "en-US",
260		redirect_url: "http://blogmarks.net/my/new.php?mini=1&simple=1&title=" + postTitle + "&url=" + postUrl,
261	  },
262	  Bookmarks_fr: {
263		title: "Bookmarks.fr",
264		locale: "en-US",
265		redirect_url: "http://www.bookmarks.fr/Connexion/?action=add&address=" + postUrl + "&title=" + postTitle,
266	  },
267	  BuddyMarks: {
268		title: "BuddyMarks",
269		locale: "en-US",
270		redirect_url: "http://buddymarks.com/login.php?bookmark_title=" + postTitle + "&bookmark_url=" + postUrl + "&bookmark_desc=&bookmark_tags=",
271	  },
272	  Care2_news: {
273		title: "Care2 News",
274		locale: "en-US",
275		redirect_url: "http://www.care2.com/passport/login.html?promoID=10&pg=http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]=" + postTitle + "&share[link_url]=" + postUrl + "&share[content]=",
276	  },
277	  CiteULike: {
278		title: "Cite U Like",
279		locale: "en-US",
280		redirect_url: "http://www.citeulike.org/posturl?url=" + postUrl + "&title=" + postTitle,
281	  },
282	  Diary_Ru: {
283		title: "Diary.Ru",
284		locale: "en-US",
285		redirect_url: "http://www.diary.ru/?newpost&title=" + postTitle + "&text=" + postUrl,
286	  },
287	  diHITT: {
288		title: "diHITT",
289		locale: "en-US",
290		redirect_url: "http://www.dihitt.com/submit?url=" + postUrl + "&title=" + postTitle,
291	  },
292	  dzone: {
293		title: "DZone",
294		locale: "en-US",
295		redirect_url: "http://www.dzone.com/links/add.html?url=" + postUrl + "&title=" + postTitle,
296	  },
297	  Folkd: {
298		title: "Folkd",
299		locale: "en-US",
300		redirect_url: "http://www.folkd.com/page/social-bookmarking.html?addurl=" + postUrl,
301	  },
302	  Hatena: {
303		title: "Hatena",
304		locale: "en-US",
305		redirect_url: "http://b.hatena.ne.jp/bookmarklet?url=" + postUrl + "&btitle=" + postTitle,
306	  },
307	  Jamespot: {
308		title: "Jamespot",
309		locale: "en-US",
310		redirect_url: "//my.jamespot.com/",
311	  },
312	  Kakao: {
313		title: "Kakao",
314		locale: "en-US",
315		redirect_url: "https://story.kakao.com/share?url=" + postUrl,
316	  },
317	  Kindle_It: {
318		title: "Kindle_It",
319		locale: "en-US",
320		redirect_url: "//fivefilters.org/kindle-it/send.php?url=" + postUrl,
321	  },
322	  Known: {
323		title: "Known",
324		locale: "en-US",
325		redirect_url: "https://withknown.com/share/?url=" + postUrl + "&title=" + postTitle,
326	  },
327	  Line: {
328		title: "Line",
329		locale: "en-US",
330		redirect_url: "line://msg/text/" + postTitle + "! " + postUrl,
331	  },
332	  LiveJournal: {
333		title: "LiveJournal",
334		locale: "en-US",
335		redirect_url: "http://www.livejournal.com/update.bml?subject=" + postTitle + "&event=" + postUrl,
336	  },
337	  Mail_Ru: {
338		title: "Mail.Ru",
339		locale: "en-US",
340		redirect_url: "http://connect.mail.ru/share?share_url=" + postUrl,
341	  },
342	  Mendeley: {
343		title: "Mendeley",
344		locale: "en-US",
345		redirect_url: "https://www.mendeley.com/sign-in/",
346	  },
347	  Meneame: {
348		title: "Meneame",
349		locale: "en-US",
350		redirect_url: "https://www.meneame.net/submit.php?url=" + postUrl,
351	  },
352	  Mixi: {
353		title: "Mixi",
354		locale: "en-US",
355		redirect_url: "https://mixi.jp/share.pl?mode=login&u=" + postUrl,
356	  },
357	  MySpace: {
358		title: "MySpace",
359		locale: "en-US",
360		redirect_url: "https://myspace.com/post?u=" + encodeURIComponent(postUrl) + "&t=" + postTitle + "&l=3&c=" + postTitle,
361	  },
362	  Netlog: {
363		title: "Netlog",
364		locale: "en-US",
365		redirect_url: "http://www.netlog.com/go/manage/links/view=save&origin=external&url=" + postUrl + "&title=" + postTitle + "&description=",
366	  },
367	  Netvouz: {
368		title: "Netvouz",
369		locale: "en-US",
370		redirect_url: "http://www.netvouz.com/action/submitBookmark?url=" + postUrl + "&title=" + postTitle + "&popup=no&description=",
371	  },
372	  NewsVine: {
373		title: "NewsVine",
374		locale: "en-US",
375		redirect_url: "http://www.newsvine.com/_tools/seed?popoff=0&u=" + postUrl + "&h=" + postTitle,
376	  },
377	  NUjij: {
378		title: "NUjij",
379		locale: "en-US",
380		redirect_url: "http://www.nujij.nl/nieuw-bericht.2051051.lynkx?title=" + postTitle + "&url=" + postUrl + "&bericht=&topic=",
381	  },
382	  Odnoklassniki: {
383		title: "Odnoklassniki",
384		locale: "en-US",
385		redirect_url: "https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl=" + postUrl + "&st.client_id=-1",
386	  },
387	  Oknotizie: {
388		title: "Oknotizie",
389		locale: "en-US",
390		redirect_url: "//oknotizie.virgilio.it/post?url=" + postUrl + "&title=" + postTitle,
391	  },
392	  Outlook_com: {
393		title: "Outlook.com",
394		locale: "en-US",
395		redirect_url: "https://mail.live.com/default.aspx?rru=compose?subject=" + postTitle + "&body=" + postUrl + "&lc=1033&id=64855&mkt=en-us&cbcxt=mai",
396	  },
397	  Protopage_Bookmarks: {
398		title: "Protopage_Bookmarks",
399		locale: "en-US",
400		redirect_url: "http://www.protopage.com/add-button-site?url=" + postUrl + "&label=&type=page",
401	  },
402	  Pusha: {
403		title: "Pusha",
404		locale: "en-US",
405		redirect_url: "//www.pusha.se/posta?url=" + postUrl,
406	  },
407	  Qzone: {
408		title: "Qzone",
409		locale: "en-US",
410		redirect_url: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + postUrl,
411	  },
412	  Rediff_MyPage: {
413		title: "Rediff MyPage",
414		locale: "en-US",
415		redirect_url: "//share.rediff.com/bookmark/addbookmark?bookmarkurl=" + postUrl + "&title=" + postTitle,
416	  },
417	  Renren: {
418		title: "Renren",
419		locale: "en-US",
420		redirect_url: "//www.connect.renren.com/share/sharer?url=" + postUrl + "&title=" + postTitle,
421	  },
422	  Segnalo: {
423		title: "Segnalo",
424		locale: "en-US",
425		redirect_url: "http://segnalo.virgilio.it/post.html.php?url=" + postUrl + "&title=" + postTitle,
426	  },
427	  Sina_Weibo: {
428		title: "Sina Weibo",
429		locale: "en-US",
430		redirect_url: "//service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle,
431	  },
432	  SiteJot: {
433		title: "SiteJot",
434		locale: "en-US",
435		redirect_url: "http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=",
436	  },
437	  Slashdot: {
438		title: "Slashdot",
439		locale: "en-US",
440		redirect_url: "//slashdot.org/submission?url=" + postUrl,
441	  },
442	  Svejo: {
443		title: "Svejo",
444		locale: "en-US",
445		redirect_url: "https://svejo.net/story/submit_by_url?url=" + postUrl + "&title=" + postTitle + "&summary=",
446	  },
447	  Symbaloo_Feeds: {
448		title: "Symbaloo_Feeds",
449		locale: "en-US",
450		redirect_url: "//www.symbaloo.com/",
451	  },
452	  Tuenti: {
453		title: "Tuenti",
454		locale: "en-US",
455		redirect_url: "https://www.tuenti.com/share?p=b5dd6602&url=" + postUrl,
456	  },
457	  Twiddla: {
458		title: "Twiddla",
459		locale: "en-US",
460		redirect_url: "//www.twiddla.com/New.aspx?url=" + postUrl + "&title=" + postTitle,
461	  },
462	  Webnews: {
463		title: "Webnews",
464		locale: "en-US",
465		redirect_url: "//www.webnews.de/login",
466	  },
467	  Wykop: {
468		title: "Wykop",
469		locale: "en-US",
470		redirect_url: "//www.wykop.pl/dodaj?url=" + postUrl + "&title=" + postTitle,
471	  },
472	  Yoolink: {
473		title: "Yoolink",
474		locale: "en-US",
475		redirect_url: "//yoolink.to/addorshare?url_value=" + postUrl + "&title=" + postTitle,
476	  },
477	  YouMob: {
478		title: "YouMob",
479		locale: "en-US",
480		redirect_url: "//youmob.com/startmob.aspx?cookietest=true&mob=" + postUrl,
481	  }
482	}
483	var theChampMoreSharingServicesHtml = '<button id="the_champ_sharing_popup_close" class="close-button separated"><img src="'+ theChampCloseIconPath +'" /></button><div id="the_champ_sharing_more_content"><div class="filter"><input type="text" onkeyup="theChampFilterSharing(this.value.trim())" placeholder="Search" class="search"></div><div class="all-services"><ul class="mini">';
484	for(var i in theChampMoreSharingServices){
485		var tempTitle = theChampCapitaliseFirstLetter(theChampMoreSharingServices[i].title.replace(/[_. ]/g, ""));
486		theChampMoreSharingServicesHtml += '<li><a rel="nofollow" title="'+ theChampMoreSharingServices[i].title +'" alt="'+ theChampMoreSharingServices[i].title +'" ';
487		if(theChampMoreSharingServices[i].bookmarklet_url){
488			theChampMoreSharingServicesHtml += 'href="' + theChampMoreSharingServices[i].bookmarklet_url + '" ';
489		}else{
490			theChampMoreSharingServicesHtml += 'onclick="theChampPopup(\'' + theChampMoreSharingServices[i].redirect_url + '\')" href="javascript:void(0)" ';
491		}
492		theChampMoreSharingServicesHtml += '"><i style="width:22px;height:22px" title="'+ theChampMoreSharingServices[i].title +'" class="theChampSharing theChamp' + tempTitle + 'Background"><ss style="display:block;width:100%;height:100%;" class="theChampSharingSvg theChamp' + tempTitle + 'Svg"></ss></i>' + theChampMoreSharingServices[i].title + '</a></li>';
493	}
494	theChampMoreSharingServicesHtml += concate;
495	
496	var mainDiv = document.createElement('div');
497	mainDiv.innerHTML = theChampMoreSharingServicesHtml;
498	mainDiv.setAttribute('id', 'the_champ_sharing_more_providers');
499	var bgDiv = document.createElement('div');
500	bgDiv.setAttribute('id', 'the_champ_popup_bg');
501	jQuery('body').append(mainDiv).append(bgDiv);
502	document.getElementById('the_champ_popup_bg').onclick = document.getElementById('the_champ_sharing_popup_close').onclick = function(){
503		mainDiv.parentNode.removeChild(mainDiv);
504		bgDiv.parentNode.removeChild(bgDiv);
505	}
506}
507
508if(typeof theChampHorizontalSharingCountEnable == 'undefined'){
509	var theChampHorizontalSharingCountEnable = 0;
510}
511if(typeof theChampVerticalSharingCountEnable == 'undefined'){
512	var theChampVerticalSharingCountEnable = 0;
513}
514if(theChampHorizontalSharingCountEnable || theChampVerticalSharingCountEnable){
515	// get sharing counts on window load
516	theChampLoadEvent(
517		function(){
518			// sharing counts
519			theChampCallAjax(function(){
520				theChampGetSharingCounts();
521			});
522		}
523	);
524}
525	
526/**
527 * Search sharing services
528 */
529function theChampFilterSharing(val) {
530	jQuery('ul.mini li a').each(function(){
531		if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) {
532			jQuery(this).parent().css('display', 'block');
533		} else {
534			jQuery(this).parent().css('display', 'none');
535		}
536	});
537};
538
539var heateorSsFacebookTargetUrls = [];
540
541/**
542 * Get sharing counts
543 */
544function theChampGetSharingCounts(){
545	var targetUrls = [];
546	jQuery('.the_champ_sharing_container').each(function(){
547		if(typeof jQuery(this).attr('super-socializer-no-counts') == 'undefined'){
548			var currentTargetUrl = jQuery(this).attr('super-socializer-data-href');
549			if(currentTargetUrl != null && jQuery.inArray(currentTargetUrl, heateorSsUrlCountFetched) == -1){
550				targetUrls.push(currentTargetUrl);
551				heateorSsUrlCountFetched.push(currentTargetUrl);
552			}
553		}
554	});
555	if(targetUrls.length == 0){
556		return;
557	}
558	jQuery.ajax({
559		type: 'GET',
560		dataType: 'json',
561		url: theChampSharingAjaxUrl,
562		data: {
563			action: 'the_champ_sharing_count',
564			urls: targetUrls,
565		},
566		success: function(data, textStatus, XMLHttpRequest){
567			if(data.status == 1){
568				if(data.facebook){
569					heateorSsFacebookTargetUrls = data.facebook_urls;
570				}
571				for(var i in data.message){
572					var sharingContainers = jQuery("div[super-socializer-data-href='"+i+"']");
573
574					jQuery(sharingContainers).each(function(){
575						var totalCount = 0;
576						for(var j in data.message[i]){
577							if(j == 'google_plus'){
578								var sharingCount = parseInt(data.message[i][j]) || 0;
579							}else{
580								var sharingCount = data.message[i][j];
581							}
582
583							var targetElement = jQuery(this).find('.the_champ_'+j+'_count');
584							
585							if(jQuery(targetElement).attr('ss_st_count')){
586								sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('ss_st_count'));
587							}
588							totalCount += parseInt(sharingCount);
589							if(sharingCount < 1){ continue; }
590							jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
591							
592							if ( ( typeof theChampReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) {
593								jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float', 'left');
594							}
595							if ( ( typeof theChampReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) {
596								jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop', '0');
597							}
598						}
599						var totalCountContainer = jQuery(this).find('.theChampTCBackground');
600						jQuery(totalCountContainer).each(function(){
601							var containerHeight = jQuery(this).css('height');
602							jQuery(this).html('<div class="theChampTotalShareCount" style="font-size: '+ (parseInt(containerHeight) * 62/100) +'px">' + theChampCalculateApproxCount(totalCount) + '</div><div class="theChampTotalShareText" style="font-size: '+ (parseInt(containerHeight) * 38/100) +'px">' + (totalCount == 0 || totalCount > 1 ? heateorSsSharesText : heateorSsShareText) + '</div>').css('visibility', 'visible');
603						});
604					});
605				}
606				if(heateorSsFacebookTargetUrls.length != 0){
607					theChampFetchFacebookShares(heateorSsFacebookTargetUrls);
608				}
609			}
610		}
611	});
612}
613
614function theChampFetchFacebookShares(targetUrls){
615	var loopCounter = 0;
616	for(var i in targetUrls){
617		for(var j in targetUrls[i]){
618			loopCounter++;
619			theChampFBShareJSONCall(targetUrls[i][j], loopCounter, targetUrls[0].length*targetUrls.length, targetUrls[0][j]);
620		}
621	}
622}
623
624function theChampFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dataHref) {
625	jQuery.getJSON('//graph.facebook.com/?id=' + targetUrl, function(data){
626	    if(data.share && data.share.share_count){
627	    	var sharingContainers = jQuery("div[super-socializer-data-href='"+dataHref+"']");
628
629			jQuery(sharingContainers).each(function(){
630				var targetElement = jQuery(this).find('.the_champ_facebook_count');
631				var facebookBackground = jQuery(this).find('i.theChampFacebookBackground');
632				var sharingCount = parseInt(data.share.share_count);
633
634				if(jQuery(targetElement).attr('ss_st_count') !== undefined){
635					sharingCount += parseInt(jQuery(targetElement).attr('ss_st_count'));
636				}
637				if(jQuery(targetElement).text().trim() == '' || jQuery(targetElement).text().trim() == '&nbsp;'){
638					jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'});
639					jQuery(facebookBackground).attr('heateor-ss-fb-shares', sharingCount);
640				}else if(typeof jQuery(facebookBackground).attr('heateor-ss-fb-shares') != 'undefined'){
641					var tempShareCount = parseInt(jQuery(facebookBackground).attr('heateor-ss-fb-shares'));
642					jQuery(facebookBackground).attr('heateor-ss-fb-shares', sharingCount + tempShareCount);
643					jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount + tempShareCount));
644				}
645				if ( ( typeof theChampReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) {
646					jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float', 'left');
647				}
648				if ( ( typeof theChampReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) {
649					jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop', '0');
650				}
651				var totalCountContainer = jQuery(this).find('.theChampTCBackgroun
651d');
652				jQuery(totalCountContainer).each(function(){
653					var totalShareCountElem = jQuery(this).find('.theChampTotalShareCount');
654					var totalShareCount = jQuery(totalShareCountElem).text();
655					var newTotalCount = theChampCalculateActualCount(totalShareCount) + sharingCount;
656					jQuery(totalShareCountElem).text(theChampCalculateApproxCount(newTotalCount));
657					jQuery(this).find('.theChampTotalShareText').text(newTotalCount == 0 || newTotalCount > 1 ? heateorSsSharesText : heateorSsShareText);
658				});
659			});
660		}
661		
662		if(loopCounter == targetUrlsLength){
663			setTimeout(function(){
664				var facebookShares = {};
665				for(var i in heateorSsFacebookTargetUrls[0]){
666					var sharingContainers = jQuery("div[super-socializer-data-href='"+heateorSsFacebookTargetUrls[0][i]+"']");
667					jQuery(sharingContainers).each(function(){
668						var facebookCountElement = jQuery(this).find('.the_champ_facebook_count');
669						var facebookCountElementBg = jQuery(this).find('i.theChampFacebookBackground');
670						var shareCountString = typeof jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares') != 'undefined' ? jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares').trim() : '';
671						if(shareCountString != ''){
672							var shareCount = parseInt(theChampCalculateActualCount(shareCountString));
673							if(jQuery(facebookCountElement).attr('ss_st_count') !== undefined){
674								var startingCount = parseInt(jQuery(facebookCountElement).attr('ss_st_count').trim());
675								shareCount = Math.abs(shareCount - startingCount);
676							}
677							facebookShares[heateorSsFacebookTargetUrls[0][i]] = shareCount;
678							return;
679						}
680					});
681				}
682				if(!jQuery.isEmptyObject(facebookShares)){
683					theChampSaveFacebookShares(facebookShares);
684				}
685			}, 1000);
686		}
687	});
688}
689
690function theChampSaveFacebookShares(facebookShares){
691	jQuery.ajax({
692		type: 'GET',
693		dataType: 'json',
694		url: theChampSharingAjaxUrl,
695		data: {
696			action: 'the_champ_save_facebook_shares',
697			share_counts: facebookShares,
698		},
699		success: function(data, textStatus, XMLHttpRequest){}
700	});
701}
702
703function theChampCalculateApproxCount(sharingCount){
704	if(sharingCount > 999 && sharingCount < 10000){
705		sharingCount = Math.round(sharingCount/1000) + 'K';
706	}else if(sharingCount > 9999 && sharingCount < 100000){
707		sharingCount = Math.round(sharingCount/1000) + 'K';
708	}else if(sharingCount > 99999 && sharingCount < 1000000){
709		sharingCount = Math.round(sharingCount/1000) + 'K';
710	}else if(sharingCount > 999999){
711		sharingCount = Math.round(sharingCount/1000000) + 'M';
712	}
713	return sharingCount;
714}
715
716function theChampCalculateActualCount(sharingCount){
717	if(sharingCount.indexOf('K') > 0){
718		sharingCount = parseInt(sharingCount.replace('K', '')) * 1000;
719	}else if(sharingCount.indexOf('M') > 0){
720		sharingCount = parseInt(sharingCount.replace('M', '')) * 1000000;
721	}
722	return parseInt(sharingCount);
723}
724
725function theChampCapitaliseFirstLetter(e) {
726    return e.charAt(0).toUpperCase() + e.slice(1)
727}
728
729jQuery(function(){
730	var classes = ['the_champ_vertical_sharing', 'the_champ_vertical_counter'];
731	for(var i = 0; i < classes.length; i++){
732		if(jQuery('.' + classes[i]).length){
733			jQuery('.' + classes[i]).each(function(){
734				var verticalSharingHtml = jQuery(this).html();
735				if(jQuery(this).attr('style').indexOf('right') >= 0){
736					var removeClass = 'theChampPushIn', margin = 'Right', alignment = 'right', addClass = 'theChampPullOut';
737				}else{
738					var removeClass = 'theChampPullOut', margin = 'Left', alignment = 'left', addClass = 'theChampPushIn';
739				}
740				jQuery(this).html(verticalSharingHtml + '<div title="Hide" style="float:' + alignment + '" onclick="theChampHideSharing(this, \''+ removeClass +'\', \''+ addClass +'\',\'' + margin +'\', \'' + alignment + '\')" class="theChampSharingArrow ' + removeClass + '"></div>');
741			});
742		}
743	}
744});
745
746function theChampHideSharing(elem, removeClass, addClass, margin, alignment){
747	var animation = {}, counter = jQuery(elem).parent().hasClass('the_champ_vertical_counter'), offset = parseInt(j
747Query(elem).parent().css('width')) + 10 - (counter ? 16 : 0);
748	var ssOffset = jQuery(elem).parent().attr('ss-offset');
749	if(ssOffset){
750		var savedOffset = parseInt(ssOffset);
751	}else{
752		var savedOffset = (counter ? theChampCounterOffset : theChampSharingOffset);
753	}
754	if(jQuery(elem).attr('title') == 'Hide'){
755		animation[alignment] = "-=" + (offset + savedOffset);
756		jQuery(elem).parent().animate(animation, 400, function(){
757			jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title', 'Share');
758			if(counter){
759				var cssFloat = alignment == 'left' ? 'right' : 'left';
760				jQuery(elem).css('float', cssFloat);
761			}else{
762				jQuery(elem).css('margin' + margin, offset + 'px')
763			}
764		});
765	}else{
766		animation[alignment] = "+=" + (offset + savedOffset); 
767		jQuery(elem).parent().animate(animation, 400, function(){
768			jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title', 'Hide');
769			if(counter){
770				jQuery(elem).css('float', alignment);
771			}else{
772				jQuery(elem).css('margin' + margin, '0px');
773			}
774		});
775	}
776}

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.