1function heateorSssCallAjax(e){if(typeof jQuery!="undefined"){e()}else{heateorSssGetScript("https://code.jquery.com/jquery-latest.min.js",e)}} 2 3function heateorSssGetScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){i=true;t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)} 4 5/** 6 * Show more sharing services popup 7 */ 8function heateorSssMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){ 9 postUrl = encodeURIComponent(postUrl); 10 concate = '</ul></div><div class="footer-panel"><p></p></div></div>'; 11 var heateorSssMoreSharingServices = { 12 facebook: { 13 title: "Facebook", 14 locale: "en-US", 15 redirect_url: "https://www.facebook.com/sharer.php?u=" + postUrl + "&t=" + postTitle + "&v=3", 16 }, 17 twitter: { 18 title: "Twitter", 19 locale: "en-US", 20 redirect_url: "https://twitter.com/intent/tweet?text=" + (twitterTitle ? twitterTitle : postTitle) + " " + postUrl, 21 }, 22 google: { 23 title: "Google plus", 24 locale: "en-US", 25 redirect_url: "https://plus.google.com/share?url=" + postUrl, 26 }, 27 linkedin: { 28 title: "Linkedin", 29 locale: "en-US", 30 redirect_url: "https://www.linkedin.com/shareArticle?mini=true&url=" + postUrl + "&title=" + postTitle, 31 }, 32 pinterest: { 33 title: "Pinterest", 34 locale: "en-US", 35 redirect_url: "https://pinterest.com/pin/create/button/?url=" + postUrl + "&media=${media_link}&description=" + postTitle, 36 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)})());" 37 }, 38 CopyLink: { 39 title: "Copy Link", 40 locale: "en-US", 41 redirect_url: "", 42 bookmarklet_url: "" 43 }, 44 Diaspora: { 45 title: "Diaspora", 46 locale: "en-US", 47 redirect_url: "https://joindiaspora.com/bookmarklet?url=" + postUrl + "&title=" + postTitle + "&v=1" 48 }, 49 Douban: { 50 title: "Douban", 51 locale: "en-US", 52 redirect_url: "https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel=" 53 }, 54 Draugiem: { 55 title: "Draugiem", 56 locale: "en-US", 57 redirect_url: "https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle 58 }, 59 Facebook_Messenger: { 60 title: "Facebook Messenger", 61 locale: "en-US", 62 redirect_url: "https://www.facebook.com/dialog/send?app_id=1904103319867886&display=popup&link="+postUrl+"&redirect_uri="+postUrl 63 }, 64 Google_Classroom: { 65 title: "Google Classroom", 66 locale: "en-US", 67 redirect_url: "https://classroom.google.com/u/0/share?url="+postUrl 68 }, 69 Kik: { 70 title: "Kik", 71 locale: "en-US", 72 redirect_url: "https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl 73 }, 74 Papaly: {
75 title: "Papaly", 76 locale: "en-US", 77 redirect_url: "https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle 78 }, 79 Polyvore: { 80 title: "Polyvore", 81 locale: "en-US", 82 bookmarklet_url: "javascript:(function(){function e(a){var c=window;if(c.PolyvoreClipper){c.PolyvoreClipper.run()}else{var b=a.createElement(\'script\');c._polyvoreMode=\'prod\';c._polyvoreHost=\'www.polyvore.com\';b.src=\'http://akwww.polyvorecdn.com/rsrc/clipper.js?\'+Math.floor((new Date()).getTime()/86400000);a.body.appendChild(b)}}try{e(document)}catch(g){}for(var f=0;f<frames.length;++f){var i=frames[f];try{if(i.frameElement.tagName==\'IFRAME\'){continue}if(i.innerWidth<400||i.innerHeight<400){continue}e(i.document)}catch(j){}}})();" 83 }, 84 Refind: { 85 title: "Refind", 86 locale: "en-US", 87 redirect_url: "https://refind.com/?url="+postUrl 88 }, 89 Skype: { 90 title: "Skype", 91 locale: "en-US", 92 redirect_url: "https://web.skype.com/share?url="+postUrl 93 }, 94 SMS: { 95 title: "SMS", 96 locale: "en-US", 97 bookmarklet_url: "sms://?&body="+postTitle+" "+postUrl 98 }, 99 Trello: { 100 title: "Trello", 101 locale: "en-US", 102 redirect_url: "https://trello.com/add-card?mode=popup&url="+postUrl+"&name="+postTitle+"&desc=" 103 }, 104 Viber: { 105 title: "Viber", 106 locale: "en-US", 107 bookmarklet_url: "viber://forward?text="+postTitle+" "+postUrl 108 }, 109 Telegram: { 110 title: "Telegram", 111 locale: "en-US", 112 redirect_url: "https://telegram.me/share/url?url="+postUrl+"&text="+postTitle 113 }, 114 yahoo_bookmarks: { 115 title: "Yahoo", 116 locale: "en-US", 117 redirect_url: "http://bookmarks.yahoo.com/toolbar/savebm?u=" + postUrl + "&t=" + postTitle, 118 }, 119 email: { 120 title: "Email", 121 locale: "en-US", 122 redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl, 123 }, 124 delicious: { 125 title: "Delicious", 126 locale: "en-US", 127 redirect_url: "http://delicious.com/save?url=" + postUrl + "&title=" + postTitle, 128 }, 129 reddit: { 130 title: "Reddit", 131 locale: "en-US", 132 redirect_url: "http://reddit.com/submit?url=" + postUrl + "&title=" + postTitle, 133 }, 134 float_it: { 135 title: "Float it", 136 locale: "en-US", 137 redirect_url: "http://www.designfloat.com/submit.php?url=" + postUrl + "&title=" + postTitle, 138 }, 139 google_mail: { 140 title: "Google Gmail", 141 locale: "en-US", 142 redirect_url: "https://mail.google.com/mail/?ui=2&view=cm&fs=1&tf=1&su=" + postTitle + "&body=Link: " + postUrl, 143 }, 144 gentlereader: { 145 title: "GentleReader", 146 locale: "en-US", 147 redirect_url: "https://app.gentlereader.com/bookmark?url=" + postUrl, 148 }, 149 google_bookmarks: { 150 title: "Google Bookmarks", 151 locale: "en-US", 152 redirect_url: "http://www.google.com/bookmarks/mark?op=edit&bkmk=" + postUrl + "&title=" + postTitle, 153 }, 154 digg: { 155 title: "Digg", 156 locale: "en-US", 157 redirect_url: "http://digg.com/submit?phase=2&url=" + postUrl + "&title=" + postTitle, 158 }, 159 stumbleupon: { 160 title: "Stumbleupon", 161 locale: "en-US", 162 redirect_url: "http://www.stumbleupon.com/submit?url=" + postUrl + "&title=" + postTitle, 163 }, 164 printfriendly: { 165 title: "PrintFriendly", 166 locale: "en-US", 167 redirect_url: "http://www.printfriendly.com/print?url=" + postUrl, 168 }, 169 print: { 170 title: "Print", 171 locale: "en-US", 172 redirect_url: "http://www.printfriendly.com/print?url=" + postUrl, 173 }, 174 tumblr: { 175 title: "Tumblr", 176 locale: "en-US", 177 redirect_url: "http://www.tumblr.com/share?v=3&u=" + postUrl + "&t=" + postTitle, 178 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);" 179 }, 180 vk: { 181 title: "Vkontakte", 182 locale: "ru", 183 redirect_url: "https://vk.com/share.php?url=" + postUrl + "&title=" + postTitle, 184 }, 185 evernote: { 186 title: "Evernote", 187 locale: "en-US", 188 redirect_url: "https://www.evernote.com/clip.action?url=" + postUrl + "&title=" + postTitle, 189 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);}})();" 190 }, 191 amazon_us_wish_list: { 192 title: "Amazon Wish List", 193 locale: "en-US", 194 redirect_url: "http://www.amazon.com/wishlist/add?u=" + postUrl + "&t=" + postTitle, 195 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();}())" 196 }, 197 wordpress_blog: { 198 title: "WordPress", 199 locale: "en-US", 200 redirect_url: "http://www.addtoany.com/ext/wordpress/press_this?linkurl=" + postUrl + "&linkname=" + postTitle, 201 }, 202 whatsapp: { 203 title: "Whatsapp", 204 locale: "en-US", 205 bookmarklet_url: "whatsapp://send?text=" + postTitle + " " + postUrl, 206 }, 207 diigo: { 208 title: "Diigo", 209 locale: "en-US", 210 redirect_url: "http://www.diigo.com/post?url=" + postUrl + "&title=" + postTitle, 211 }, 212 yc_hacker_news: { 213 title: "Hacker News", 214 locale: "en-US", 215 redirect_url: "http://news.ycombinator.com/submitlink?u=" + postUrl + "&t=" + postTitle, 216 }, 217 box_net: { 218 title: "Box.net", 219 locale: "en-US", 220 redirect_url: "https://www.box.net/api/1.0/import?url=" + postUrl + "&name=" + postTitle + "&import_as=link", 221 }, 222 aol_mail: { 223 title: "AOL Mail", 224 locale: "en-US",
225 redirect_url: "http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?subject=" + postTitle + "&body=" + postUrl, 226 }, 227 yahoo_mail: { 228 title: "Yahoo Mail", 229 locale: "en-US", 230 redirect_url: "http://compose.mail.yahoo.com/?Subject=" + postTitle + "&body=Link: " + postUrl, 231 }, 232 instapaper: { 233 title: "Instapaper", 234 locale: "en-US", 235 redirect_url: "http://www.instapaper.com/edit?url=" + postUrl + "&title=" + postTitle, 236 }, 237 plurk: { 238 title: "Plurk", 239 locale: "en-US", 240 redirect_url: "http://www.plurk.com/m?content=" + postUrl + "&qualifier=shares", 241 }, 242 wanelo: { 243 title: "Wanelo", 244 locale: "en-US", 245 redirect_url: "http://wanelo.com/p/post?bookmarklet=&images%5B%5D=&url=" + postUrl + "&title=" + postTitle + "&price=&shop=", 246 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))" 247 }, 248 aim: { 249 title: "AIM", 250 locale: "en-US", 251 redirect_url: "http://share.aim.com/share/?url=" + postUrl + "&title=" + postTitle, 252 }, 253 stumpedia: { 254 title: "Stumpedia", 255 locale: "en-US", 256 redirect_url: "http://www.stumpedia.com/submit?url=" + postUrl + "&title=" + postTitle, 257 }, 258 viadeo: { 259 title: "Viadeo", 260 locale: "en-US", 261 redirect_url: "http://www.viadeo.com/shareit/share/?url=" + postUrl + "&title=" + postTitle, 262 }, 263 yahoo_messenger: { 264 title: "Yahoo Messenger", 265 locale: "en-US", 266 redirect_url: "ymsgr:sendim?m=" + postUrl, 267 }, 268 pinboard_in: { 269 title: "Pinboard", 270 locale: "en-US", 271 redirect_url: "http://pinboard.in/add?url=" + postUrl + "&title=" + postTitle, 272 }, 273 blogger_post: { 274 title: "Blogger Post", 275 locale: "en-US", 276 redirect_url: "http://www.blogger.com/blog_this.pyra?t=&u=" + postUrl + "&l&n=" + postTitle, 277 }, 278 typepad_post: { 279 title: "TypePad Post", 280 locale: "en-US", 281 redirect_url: "http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title=" + postTitle + "&qp_href=" + postUrl + "&qp_text=" + postTitle, 282 }, 283 buffer: { 284 title: "Buffer", 285 locale: "en-US", 286 redirect_url: "http://bufferapp.com/add?url=" + postUrl + "&text=" + postTitle, 287 }, 288 flipboard: { 289 title: "Flipboard", 290 locale: "en-US", 291 redirect_url: "https://share.flipboard.com/bookmarklet/popout?v=2&url=" + postUrl + "&title=" + postTitle, 292 }, 293 mail: { 294 title: "Email", 295 locale: "en-US", 296 redirect_url: "mailto:?subject=" + postTitle + "&body=Link: " + postUrl, 297 }, 298 pocket: { 299 title: "Pocket", 300 locale: "en-US", 301 redirect_url: "https://readitlaterlist.com/save?url=" + postUrl + "&title=" + postTitle, 302 }, 303 fark: { 304 title: "Fark", 305 locale: "en-US", 306 redirect_url: "http://cgi.fark.com/cgi/fark/submit.pl?new_url=" + postUrl, 307 }, 308 yummly: { 309 title: "Yummly", 310 locale: "en-US", 311 redirect_url: "http://www.yummly.com/urb/verify?url=" + postUrl + "&title=" + postTitle, 312 }, 313 app_net: { 314 title: "App.net", 315 locale: "en-US", 316 redirect_url: "https://account.app.net/login/", 317 }, 318 baidu: { 319 title: "Baidu", 320 locale: "en-US", 321 redirect_url: "http://cang.baidu.com/do/add?it=" + postTitle + "&iu=" + postUrl, 322 }, 323 balatarin: { 324 title: "Balatarin", 325 locale: "en-US", 326 redirect_url: "https://www.balatarin.com/login", 327 }, 328 bibSonomy: { 329 title: "BibSonomy", 330 locale: "en-US", 331 redirect_url: "http://www.bibsonomy.org/login", 332 }, 333 Bitty_Browser: { 334 title: "Bitty Browser", 335 locale: "en-US", 336 redirect_url: "http://www.bitty.com/manual/?contenttype=&contentvalue=" + postUrl, 337 }, 338 Blinklist: { 339 title: "Blinklist", 340 locale: "en-US", 341 redirect_url: "http://blinklist.com/blink?t=" + postTitle + "&d=&u=" + postUrl, 342 }, 343 BlogMarks: { 344 title: "BlogMarks", 345 locale: "en-US", 346 redirect_url: "http://blogmarks.net/my/new.php?mini=1&simple=1&title=" + postTitle + "&url=" + postUrl, 347 }, 348 Bookmarks_fr: { 349 title: "Bookmarks.fr", 350 locale: "en-US", 351 redirect_url: "http://www.bookmarks.fr/Connexion/?action=add&address=" + postUrl + "&title=" + postTitle, 352 }, 353 BuddyMarks: { 354 title: "BuddyMarks", 355 locale: "en-US", 356 redirect_url: "http://buddymarks.com/login.php?bookmark_title=" + postTitle + "&bookmark_url=" + postUrl + "&bookmark_desc=&bookmark_tags=", 357 }, 358 Care2_news: { 359 title: "Care2 News", 360 locale: "en-US", 361 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]=", 362 }, 363 CiteULike: { 364 title: "Cite U Like", 365 locale: "en-US", 366 redirect_url: "http://www.citeulike.org/posturl?url=" + postUrl + "&title=" + postTitle, 367 }, 368 Diary_Ru: { 369 title: "Diary.Ru", 370 locale: "en-US", 371 redirect_url: "http://www.diary.ru/?newpost&title=" + postTitle + "&text=" + postUrl, 372 }, 373 diHITT: { 374 title: "diHITT", 375 locale: "en-US", 376 redirect_url: "http://www.dihitt.com/submit?url=" + postUrl + "&title=" + postTitle, 377 }, 378 dzone: { 379 title: "DZone", 380 locale: "en-US", 381 redirect_url: "http://www.dzone.com/links/add.html?url=" + postUrl + "&title=" + postTitle, 382 }, 383 Folkd: { 384 title: "Folkd", 385 locale: "en-US", 386 redirect_url: "http://www.folkd.com/page/social-bookmarking.html?addurl=" + postUrl, 387 }, 388 Hatena: { 389 title: "Hatena", 390 locale: "en-US", 391 redirect_url: "http://b.hatena.ne.jp/bookmarklet?url=" + postUrl + "&btitle=" + postTitle, 392 }, 393 Jamespot: { 394 title: "Jamespot",
395 locale: "en-US", 396 redirect_url: "//my.jamespot.com/", 397 }, 398 Kakao: { 399 title: "Kakao", 400 locale: "en-US", 401 redirect_url: "https://story.kakao.com/share?url=" + postUrl, 402 }, 403 Kindle_It: { 404 title: "Kindle_It", 405 locale: "en-US", 406 redirect_url: "//fivefilters.org/kindle-it/send.php?url=" + postUrl, 407 }, 408 Known: { 409 title: "Known", 410 locale: "en-US", 411 redirect_url: "https://withknown.com/share/?url=" + postUrl + "&title=" + postTitle, 412 }, 413 Line: { 414 title: "Line", 415 locale: "en-US", 416 redirect_url: "line://msg/text/" + postTitle + "! " + postUrl, 417 }, 418 LiveJournal: { 419 title: "LiveJournal", 420 locale: "en-US", 421 redirect_url: "http://www.livejournal.com/update.bml?subject=" + postTitle + "&event=" + postUrl, 422 }, 423 Mail_Ru: { 424 title: "Mail.Ru", 425 locale: "en-US", 426 redirect_url: "https://connect.mail.ru/share?share_url=" + postUrl, 427 }, 428 Mendeley: { 429 title: "Mendeley", 430 locale: "en-US", 431 redirect_url: "https://www.mendeley.com/sign-in/", 432 }, 433 Meneame: { 434 title: "Meneame", 435 locale: "en-US", 436 redirect_url: "https://www.meneame.net/submit.php?url=" + postUrl, 437 }, 438 Mixi: { 439 title: "Mixi", 440 locale: "en-US", 441 redirect_url: "https://mixi.jp/share.pl?mode=login&u=" + postUrl, 442 }, 443 MySpace: { 444 title: "MySpace", 445 locale: "en-US", 446 redirect_url: "https://myspace.com/post?u=" + encodeURIComponent(postUrl) + "&t=" + postTitle + "&l=3&c=" + postTitle, 447 }, 448 Netlog: { 449 title: "Netlog", 450 locale: "en-US", 451 redirect_url: "http://www.netlog.com/go/manage/links/view=save&origin=external&url=" + postUrl + "&title=" + postTitle + "&description=", 452 }, 453 Netvouz: { 454 title: "Netvouz", 455 locale: "en-US", 456 redirect_url: "http://www.netvouz.com/action/submitBookmark?url=" + postUrl + "&title=" + postTitle + "&popup=no&description=", 457 }, 458 NewsVine: { 459 title: "NewsVine", 460 locale: "en-US", 461 redirect_url: "http://www.newsvine.com/_tools/seed?popoff=0&u=" + postUrl + "&h=" + postTitle, 462 }, 463 NUjij: { 464 title: "NUjij", 465 locale: "en-US", 466 redirect_url: "http://www.nujij.nl/nieuw-bericht.2051051.lynkx?title=" + postTitle + "&url=" + postUrl + "&bericht=&topic=", 467 }, 468 Odnoklassniki: { 469 title: "Odnoklassniki", 470 locale: "en-US", 471 redirect_url: "https://connect.ok.ru/dk?cmd=WidgetSharePreview&st.cmd=WidgetSharePreview&st.shareUrl=" + postUrl + "&st.client_id=-1", 472 }, 473 Oknotizie: { 474 title: "Oknotizie", 475 locale: "en-US", 476 redirect_url: "//oknotizie.virgilio.it/post?url=" + postUrl + "&title=" + postTitle, 477 }, 478 Outlook_com: { 479 title: "Outlook.com", 480 locale: "en-US", 481 redirect_url: "https://mail.live.com/default.aspx?rru=compose?subject=" + postTitle + "&body=" + postUrl + "&lc=1033&id=64855&mkt=en-us&cbcxt=mai", 482 }, 483 Protopage_Bookmarks: { 484 title: "Protopage_Bookmarks", 485 locale: "en-US", 486 redirect_url: "http://www.protopage.com/add-button-site?url=" + postUrl + "&label=&type=page", 487 }, 488 Pusha: { 489 title: "Pusha", 490 locale: "en-US", 491 redirect_url: "//www.pusha.se/posta?url=" + postUrl, 492 }, 493 Qzone: { 494 title: "Qzone", 495 locale: "en-US", 496 redirect_url: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + postUrl, 497 }, 498 Rediff_MyPage: { 499 title: "Rediff MyPage", 500 locale: "en-US", 501 redirect_url: "//share.rediff.com/bookmark/addbookmark?bookmarkurl=" + postUrl + "&title=" + postTitle, 502 }, 503 Renren: { 504 title: "Renren", 505 locale: "en-US", 506 redirect_url: "//www.connect.renren.com/share/sharer?url=" + postUrl + "&title=" + postTitle, 507 }, 508 Segnalo: { 509 title: "Segnalo", 510 locale: "en-US", 511 redirect_url: "http://segnalo.virgilio.it/post.html.php?url=" + postUrl + "&title=" + postTitle, 512 }, 513 Sina_Weibo: { 514 title: "Sina Weibo", 515 locale: "en-US", 516 redirect_url: "//service.weibo.com/share/share.php?url=" + postUrl + "&title=" + postTitle, 517 }, 518 SiteJot: { 519 title: "SiteJot", 520 locale: "en-US", 521 redirect_url: "http://www.sitejot.com/loginform.php?iSiteAdd=&iSiteDes=", 522 }, 523 Slashdot: { 524 title: "Slashdot", 525 locale: "en-US", 526 redirect_url: "//slashdot.org/submission?url=" + postUrl, 527 }, 528 Svejo: { 529 title: "Svejo", 530 locale: "en-US", 531 redirect_url: "https://svejo.net/story/submit_by_url?url=" + postUrl + "&title=" + postTitle + "&summary=", 532 }, 533 Symbaloo_Feeds: { 534 title: "Symbaloo_Feeds", 535 locale: "en-US", 536 redirect_url: "//www.symbaloo.com/", 537 }, 538 Tuenti: { 539 title: "Tuenti", 540 locale: "en-US",
541 redirect_url: "https://www.tuenti.com/share?p=b5dd6602&url=" + postUrl, 542 }, 543 Twiddla: { 544 title: "Twiddla", 545 locale: "en-US", 546 redirect_url: "//www.twiddla.com/New.aspx?url=" + postUrl + "&title=" + postTitle, 547 }, 548 Webnews: { 549 title: "Webnews", 550 locale: "en-US", 551 redirect_url: "//www.webnews.de/login", 552 }, 553 Wykop: { 554 title: "Wykop", 555 locale: "en-US", 556 redirect_url: "//www.wykop.pl/dodaj?url=" + postUrl + "&title=" + postTitle, 557 }, 558 Yoolink: { 559 title: "Yoolink", 560 locale: "en-US", 561 redirect_url: "//yoolink.to/addorshare?url_value=" + postUrl + "&title=" + postTitle, 562 }, 563 YouMob: { 564 title: "YouMob", 565 locale: "en-US", 566 redirect_url: "//youmob.com/startmob.aspx?cookietest=true&mob=" + postUrl, 567 } 568 } 569 var heateorSssMoreSharingServicesHtml = '<button id="heateor_sss_sharing_popup_close" class="close-button separated"><img src="'+ heateorSssCloseIconPath +'" /></button><div id="heateor_sss_sharing_more_content" data-href="'+ decodeURIComponent(postUrl) +'"><div class="filter"><input type="text" onkeyup="heateorSssFilterSharing(this.value.trim())" placeholder="Search" class="search"></div><div class="all-services"><ul class="mini">'; 570 for(var i in heateorSssMoreSharingServices){ 571 var tempTitle = heateorSssCapitaliseFirstLetter(heateorSssMoreSharingServices[i].title.replace(/[_. ]/g, "")); 572 heateorSssMoreSharingServicesHtml += '<li><a rel="nofollow" class="heateorSss'+i+'Share" title="'+ heateorSssMoreSharingServices[i].title +'" alt="'+ heateorSssMoreSharingServices[i].title +'" '; 573 if(heateorSssMoreSharingServices[i].bookmarklet_url){ 574 heateorSssMoreSharingServicesHtml += 'href="' + heateorSssMoreSharingServices[i].bookmarklet_url + '" '; 575 }else if(heateorSssMoreSharingServices[i].redirect_url){ 576 heateorSssMoreSharingServicesHtml += 'onclick="heateorSssPopup(\'' + heateorSssMoreSharingServices[i].redirect_url + '\')" href="javascript:void(0)" '; 577 }else{ 578 heateorSssMoreSharingServicesHtml += 'href="javascript:void(0)" '; 579 } 580 heateorSssMoreSharingServicesHtml += '"><i style="width:22px;height:22px" title="'+ heateorSssMoreSharingServices[i].title +'" class="heateorSssSharing heateorSss' + tempTitle + 'Background"><ss style="display:block;width:100%;height:100%;" class="heateorSssSharingSvg heateorSss' + tempTitle + 'Svg"></ss></i>' + heateorSssMoreSharingServices[i].title + '</a></li>'; 581 } 582 heateorSssMoreSharingServicesHtml += concate; 583 584 var mainDiv = document.createElement('div'); 585 mainDiv.innerHTML = heateorSssMoreSharingServicesHtml; 586 mainDiv.setAttribute('id', 'heateor_sss_sharing_more_providers'); 587 var bgDiv = document.createElement('div'); 588 bgDiv.setAttribute('id', 'heateor_sss_popup_bg'); 589 jQuery('body').append(mainDiv).append(bgDiv); 590 document.getElementById('heateor_sss_popup_bg').onclick = document.getElementById('heateor_sss_sharing_popup_close').onclick = function(){ 591 mainDiv.parentNode.removeChild(mainDiv); 592 bgDiv.parentNode.removeChild(bgDiv); 593 } 594} 595 596if(heateorSssHorizontalSharingCountEnable || heateorSssVerticalSharingCountEnable){ 597 // get sharing counts on window load 598 heateorSssLoadEvent( 599 function(){ 600 // sharing counts 601 heateorSssCallAjax(function(){ 602 heateorSssGetSharingCounts(); 603 }); 604 } 605 ); 606} 607 608/** 609 * Search sharing services 610 */ 611function heateorSssFilterSharing(val) { 612 jQuery('ul.mini li a').each(function(){ 613 if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) { 614 jQuery(this).parent().css('display', 'block'); 615 } else { 616 jQuery(this).parent().css('display', 'none'); 617 } 618 }); 619}; 620 621var heateorSssFacebookTargetUrls = []; 622 623/** 624 * Get sharing counts 625 */ 626function heateorSssGetSharingCounts(){ 627 var targetUrls = []; 628 jQuery('.heateor_sss_sharing_container').each(function(){ 629 if(typeof jQuery(this).attr('heateor-sss-no-counts') == 'undefined'){ 630 var currentTargetUrl = jQuery(this).attr('heateor-sss-data-href'); 631 if(currentTargetUrl != null && jQuery.inArray(currentTargetUrl, heateorSssUrlCountFetched) == -1){ 632 targetUrls.push(currentTargetUrl); 633 heateorSssUrlCountFetched.push(currentTargetUrl); 634 } 635 } 636 }); 637 638 if(targetUrls.length == 0){ 639 return; 640 } 641 jQuery.ajax({ 642 type: 'GET', 643 dataType: 'json', 644 url: heateorSssSharingAjaxUrl, 645 data: { 646 action: 'heateor_sss_sharing_count', 647 urls: targetUrls, 648 }, 649 success: function(data, textStatus, XMLHttpRequest){ 650 if(data.status == 1){ 651 if(data.facebook){ 652 heateorSssFacebookTargetUrls = data.facebook_urls; 653 } 654 for(var i in data.message){ 655 var sharingContainers = jQuery("div[heateor-sss-data-href='"+i+"']"); 656
657 jQuery(sharingContainers).each(function(){ 658 var totalCount = 0; 659 for(var j in data.message[i]){ 660 var sharingCount = parseInt(data.message[i][j]) || 0; 661 662 var targetElement = jQuery(this).find('.heateor_sss_'+j+'_count'); 663 664 if(jQuery(targetElement).attr('sss_st_count')){ 665 sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('sss_st_count')); 666 } 667 totalCount += parseInt(sharingCount); 668 if(sharingCount < 1){ continue; } 669 jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'}); 670 if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) { 671 jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left'); 672 } 673 if ( ( typeof heateorSssReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) { 674 jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop', '0'); 675 } 676 } 677 var totalCountContainer = jQuery(this).find('.heateorSssTCBackground'), totalShares = heateorSssCalculateApproxCount(totalCount); 678 jQuery(totalCountContainer).each(function(){ 679 var containerHeight = jQuery(this).css('height'); 680 jQuery(this).html('<div class="heateorSssTotalShareCount" style="font-size: '+ (parseInt(containerHeight) * 62/100) +'px">' + totalShares + '</div><div class="heateorSssTotalShareText" style="font-size: '+ (parseInt(containerHeight) * 38/100) +'px">' + (totalCount == 0 || totalCount > 1 ? heateorSssSharesText : heateorSssShareText) + '</div>').css('visibility', 'visible'); 681 }); 682 }); 683 } 684 if(heateorSssFacebookTargetUrls.length != 0){ 685 heateorSssFetchFacebookShares(heateorSssFacebookTargetUrls); 686 } 687 } 688 } 689 }); 690} 691 692function heateorSssFetchFacebookShares(targetUrls){ 693 var loopCounter = 0; 694 for(var i in targetUrls){ 695 for(var j in targetUrls[i]){ 696 loopCounter++; 697 heateorSssFBShareJSONCall(targetUrls[i][j], loopCounter, targetUrls[0].length*targetUrls.length, targetUrls[0][j]); 698 } 699 } 700} 701 702function heateorSssFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dataHref) { 703 jQuery.getJSON('//graph.facebook.com/?id=' + targetUrl, function(data){ 704 if(data.share && data.share.share_count >= 0){ 705 var sharingContainers = jQuery("div[heateor-sss-data-href='"+dataHref+"']"); 706 707 jQuery(sharingContainers).each(function(){ 708 var targetElement = jQuery(this).find('.heateor_sss_facebook_count'); 709 var facebookBackground = jQuery(this).find('i.heateorSssFacebookBackground'); 710 var sharingCount = parseInt(data.share.share_count); 711 712 if(jQuery(targetElement).attr('sss_st_count') !== undefined){ 713 sharingCount += parseInt(jQuery(targetElement).attr('sss_st_count')); 714 } 715 if(sharingCount > 0){ 716 if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') == 'undefined'){ 717 jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'}); 718 jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount); 719 }else if(typeof jQuery(facebookBackground).attr('heateor-sss-fb-shares') != 'undefined'){ 720 var tempShareCount = parseInt(jQuery(facebookBackground).attr('heateor-sss-fb-shares')); 721 jQuery(facebookBackground).attr('heateor-sss-fb-shares', sharingCount + tempShareCount); 722 jQuery(targetElement).html(heateorSssCalculateApproxCount(sharingCount + tempShareCount)); 723 } 724 725 if ( ( typeof heateorSssReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) { 726 jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('float', 'left'); 727 } 728 if ( ( typeof heateorSssReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_horizontal_sharing') ) || ( typeof heateorSssReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('heateor_sss_vertical_sharing') ) ) { 729 jQuery(targetElement).parents('li').find('.heateorSssSharingSvg').css('marginTop', '0'); 730 } 731 732 var totalCountContainer = jQuery(this).find('.heateorSssTCBackgroun
732d'); 733 jQuery(totalCountContainer).each(function(){ 734 var totalShareCountElem = jQuery(this).find('.heateorSssTotalShareCount'); 735 var totalShareCount = jQuery(totalShareCountElem).text(); 736 var newTotalCount = heateorSssCalculateActualCount(totalShareCount) + sharingCount; 737 jQuery(totalShareCountElem).text(heateorSssCalculateApproxCount(newTotalCount)); 738 jQuery(this).find('.heateorSssTotalShareText').text(newTotalCount == 0 || newTotalCount > 1 ? heateorSssSharesText : heateorSssShareText); 739 }); 740 } 741 }); 742 } 743 744 if(loopCounter == targetUrlsLength){ 745 setTimeout(function(){ 746 var facebookShares = {}; 747 for(var i in heateorSssFacebookTargetUrls[0]){ 748 var sharingContainers = jQuery("div[heateor-sss-data-href='"+heateorSssFacebookTargetUrls[0][i]+"']"); 749 jQuery(sharingContainers).each(function(){ 750 var facebookCountElement = jQuery(this).find('.heateor_sss_facebook_count'); 751 var facebookCountElementBg = jQuery(this).find('i.heateorSssFacebookBackground'); 752 var shareCountString = typeof jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares') != 'undefined' ? jQuery(facebookCountElementBg).attr('heateor-sss-fb-shares').trim() : ''; 753 if(shareCountString != ''){ 754 var shareCount = parseInt(heateorSssCalculateActualCount(shareCountString)); 755 if(jQuery(facebookCountElement).attr('sss_st_count') !== undefined){ 756 var startingCount = parseInt(jQuery(facebookCountElement).attr('sss_st_count').trim()); 757 shareCount = Math.abs(shareCount - startingCount); 758 } 759 facebookShares[heateorSssFacebookTargetUrls[0][i]] = shareCount; 760 return; 761 } 762 }); 763 } 764 if(!jQuery.isEmptyObject(facebookShares)){ 765 heateorSssSaveFacebookShares(facebookShares); 766 } 767 }, 1000); 768 } 769 }); 770} 771 772function heateorSssSaveFacebookShares(facebookShares){ 773 jQuery.ajax({ 774 type: 'GET', 775 dataType: 'json', 776 url: heateorSssSharingAjaxUrl, 777 data: { 778 action: 'heateor_sss_save_facebook_shares', 779 share_counts: facebookShares, 780 }, 781 success: function(data, textStatus, XMLHttpRequest){} 782 }); 783} 784 785function heateorSssCalculateApproxCount(sharingCount){ 786 // round to one decimal 787 if(sharingCount > 999 && sharingCount < 10000){ 788 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 789 }else if(sharingCount > 9999 && sharingCount < 100000){ 790 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 791 }else if(sharingCount > 99999 && sharingCount < 1000000){ 792 sharingCount = (Math.round(sharingCount/100))/10 + 'K'; 793 }else if(sharingCount > 999999){ 794 sharingCount = (Math.round(sharingCount/100000))/10 + 'M'; 795 } 796 return sharingCount; 797} 798 799function heateorSssCalculateActualCount(sharingCount){ 800 if(sharingCount.indexOf('K') > 0){ 801 sharingCount = sharingCount.replace('K', '') * 1000; 802 }else if(sharingCount.indexOf('M') > 0){ 803 sharingCount = sharingCount.replace('M', '') * 1000000; 804 } 805 return parseInt(sharingCount); 806} 807 808function heateorSssCapitaliseFirstLetter(e) { 809 return e.charAt(0).toUpperCase() + e.slice(1) 810} 811 812jQuery(function(){ 813 var classes = ['heateor_sss_vertical_sharing', 'heateor_sss_vertical_counter']; 814 for(var i = 0; i < classes.length; i++){ 815 if(jQuery('.' + classes[i]).length){ 816 jQuery('.' + classes[i]).each(function(){ 817 var verticalSharingHtml = jQuery(this).html(); 818 if(jQuery(this).attr('style').indexOf('right') >= 0){ 819 var removeClass = 'heateorSssPushIn', margin = 'Right', alignment = 'right', addClass = 'heateorSssPullOut'; 820 }else{ 821 var removeClass = 'heateorSssPullOut', margin = 'Left', alignment = 'left', addClass = 'heateorSssPushIn'; 822 } 823 jQuery(this).html(verticalSharingHtml + '<div title="Hide" style="float:' + alignment + '" onclick="heateorSssHideSharing(this, \''+ removeClass +'\', \''+ addClass +'\',\'' + margin +'\', \'' + alignment + '\')" class="heateorSssSharingArrow ' + removeClass + '"></div>'); 824 }); 825 } 826 } 827 if(heateorSssMobileStickySharingEnabled == 1){ 828 // insert div before </body> 829 jQuery(document.body).append("<div class='heateor_sss_mobile_footer'></div>"); 830 } 831 832 var heateorSssClipboard = new Clipboard('.heateorSssCopyLinkBackgroun
832d, .heateorSssCopyLinkShare, .heateorSssCopyLinkSvg', { 833 text: function(trigger) { 834 if(jQuery(trigger).hasClass('heateorSssCopyLinkShare')){ 835 var element = trigger.parentElement.parentElement.parentElement.parentElement; 836 var url = jQuery(element).attr("data-href") || ""; 837 }else if(jQuery(trigger).hasClass('heateorSssCopyLinkSvg')){ 838 var element = trigger.parentElement.parentElement.parentElement.parentElement; 839 var url = jQuery(element).attr("heateor-sss-data-href") || ""; 840 if(!url){ 841 var element = trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; 842 var url = jQuery(element).attr("data-href") || ""; 843 } 844 } 845 return url; 846 } 847 }); 848 heateorSssClipboard.on('success', function(e) { 849 alert(heateorSssCopyLinkMessage); 850 }); 851}); 852 853function heateorSssHideSharing(elem, removeClass, addClass, margin, alignment){ 854 var animation = {}, counter = jQuery(elem).parent().hasClass('heateor_sss_vertical_counter'), offset = parseInt(jQuery(elem).parent().css('width')) + 10 - (counter ? 16 : 0); 855 var ssOffset = jQuery(elem).parent().attr('ss-offset'); 856 if(ssOffset){ 857 var savedOffset = parseInt(ssOffset); 858 }else{ 859 var savedOffset = (counter ? heateorSssCounterOffset : heateorSssSharingOffset); 860 } 861 if(jQuery(elem).attr('title') == 'Hide'){ 862 animation[alignment] = "-=" + (offset + savedOffset); 863 jQuery(elem).parent().animate(animation, 400, function(){ 864 jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title', 'Share'); 865 if(counter){ 866 var cssFloat = alignment == 'left' ? 'right' : 'left'; 867 jQuery(elem).css('float', cssFloat); 868 }else{ 869 jQuery(elem).css('margin' + margin, offset + 'px') 870 } 871 }); 872 }else{ 873 animation[alignment] = "+=" + (offset + savedOffset); 874 jQuery(elem).parent().animate(animation, 400, function(){ 875 jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title', 'Hide'); 876 if(counter){ 877 jQuery(elem).css('float', alignment); 878 }else{ 879 jQuery(elem).css('margin' + margin, '0px'); 880 } 881 }); 882 } 883} 884 885/*! 886 * clipboard.js v1.7.1 887 * https://zenorocha.github.io/clipboard.js 888 * 889 * Licensed MIT © Zeno Rocha 890 */ 891!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
vendor: 7,655 bytes, line 891
891else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;
891return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
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.