1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- (function() {
- function C() {
- var g = ".bshare-custom{font-size:13px;line-height:16px !important;}.bshare-custom.icon-medium{font-size:14px;line-height:20px !important;}.bshare-custom.icon-medium-plus,.bshare-custom.icon-large{font-size:16px;line-height:26px !important;}.bshare-custom.icon-large{line-height:44px !important;}.bshare-custom a{padding-left:19px;height:16px;_height:18px;text-decoration:none;display:none;zoom:1;vertical-align:middle;cursor:pointer;color:#333;margin-right:3px;-moz-opacity:1;-khtml-opacity:1;opacity:1;}.bshare-custom a:hover{text-decoration:underline;-moz-opacity:0.75;-khtml-opacity:0.75;opacity:0.75;}.bshare-custom.icon-medium a{padding-left:27px;height:24px;}.bshare-custom.icon-medium-plus a{padding-left:35px;height:32px;}.bshare-custom.icon-large a{padding-left:53px;height:50px;}.bshare-custom .bshare-more{padding-left:0 !important;color:#333 !important;" + c + ".bshare-custom #bshare-shareto{color:#333;text-decoration:none;font-weight:bold;margin-right:8px;" + c;
- for (b in d.pnMap) a = d.topMap[b],
- g += ".bshare-custom .bshare-" + b + '{background:url("' + p + (a ? l: b) + q + '")' + (a ? " no-repeat 0 " + a * D + "px;" + c: m) + ".bshare-custom.icon-medium .bshare-" + b + '{background:url("' + r + (a ? l: b) + '.gif")' + (a ? " no-repeat 0 " + a * E + "px;" + c: m) + ".bshare-custom.icon-medium-plus .bshare-" + b + '{background:url("' + s + (a ? l: b) + '.gif")' + (a ? " no-repeat 0 " + a * F + "px;" + c: m) + ".bshare-custom.icon-large .bshare-" + b + '{background:url("' + t + (a ? l: b) + '.gif")' + (a ? " no-repeat 0 " + a * G + "px;" + c: m);
- g += '.bshare-custom #bshare-more-icon,.bshare-custom .bshare-more-icon{background:url("' + p + "more" + q + '") no-repeat;padding-left:19px !important;}.bshare-custom.icon-medium #bshare-more-icon,.bshare-custom.icon-medium .bshare-more-icon{background:url("' + r + 'more.gif") no-repeat;padding-left:27px !important;}.bshare-custom.icon-medium-plus #bshare-more-icon,.bshare-custom.icon-medium-plus .bshare-more-icon{background:url("' + s + 'more.gif") no-repeat;padding-left:35px !important;}.bshare-custom.icon-large #bshare-more-icon,.bshare-custom.icon-large .bshare-more-icon{background:url("' + t + 'more.gif") no-repeat;padding-left:53px !important;}';
- for (b in y) e = H + y[b],
- g += ".bshare-custom .bshare-more." + e + "{background:url(" + p + e + q + ") no-repeat;}.bshare-custom.icon-medium a.bshare-more." + e + "{background:url(" + r + e + ".gif) no-repeat;}.bshare-custom.icon-medium-plus a.bshare-more." + e + "{background:url(" + s + e + ".gif) no-repeat;}.bshare-custom.icon-large a.bshare-more." + e + "{background:url(" + t + e + ".gif) no-repeat;}";
- g += ".bshare-custom .bshare-share-count{width:41px;background:transparent url(" + h + "counter_box_18.gif) no-repeat;height:18px;line-height:18px !important;color:#333;text-align:center;font:bold 11px Arial,\u5b8b\u4f53,sans-serif;zoom:1;_padding-top:2px;" + c + ".bshare-custom.icon-medium .bshare-share-count{width:45px;padding:0 0 0 2px;vertical-align:bottom;background:transparent url(" + h + "counter_box_24.gif) no-repeat;height:24px;color:#444;line-height:24px !important;text-align:center;font:bold 12px Arial,\u5b8b\u4f53,sans-serif;zoom:1;_padding-top:5px;" + c + ".bshare-custom.icon-medium-plus .bshare-share-count{width:60px !important;padding:0 0 0 3px;vertical-align:bottom;background:transparent url(" + h + "counter_box_32.gif) no-repeat;height:32px;line-height:32px !important;text-align:center;color:#444;font:normal 18px Arial,\u5b8b\u4f53,sans-serif;zoom:1;_padding-top:6px;" + c + ".bshare-custom.icon-large .bshare-share-count{width:94px !important;padding:0 0 0 5px;vertical-align:bottom;background:transparent url(" + h + "counter_box_50.gif) no-repeat;height:50px;line-height:50px !important;text-align:center;color:#444;font:normal 22px Arial,\u5b8b\u4f53,sans-serif;zoom:1;_padding-top:12px;" + c;
- j.loadStyle(g);
- if (!d.anchorsBinded) {
- d.anchorsBinded = !0;
- var u, v, z, k, g = function(a) {
- if (!a) a = w.event;
- if (u = a.target || a.srcElement) {
- v = u.className.split(" ");
- z = u.buttonIndex;
- for (f = 0; f < v.length; f++) if (i = v[f], /^bshare-/.test(i)) {
- k = i.slice(7);
- break
- }
- if (k) {
- if (k == "more") {
- if (n.pop == -2) return ! 1;
- d.more(a);
- a.preventDefault ? a.preventDefault() : a.returnValue = !1;
- return ! 1
- }
- d.share(a, k, z)
- }
- k = null;
- return ! 1
- }
- },
- B = j.getElem(A, "div", "bshare-custom"),
- x,
- o;
- for (f = 0; f < B.length; f++) {
- x = B[f].getElementsByTagName("a");
- for (i = 0; i < x.length; i++) o = x[i],
- o.buttonIndex = f,
- A.addEventListener ? o.addEventListener("click", g, !1) : o.attachEvent("onclick", g)
- }
- }
- }
- var w = window,
- j = w.bShareUtil,
- d = w.bShare,
- n = d.config,
- h = d.imageBasePath,
- A = document,
- p = h + "logos/s4/",
- r = h + "logos/m2/",
- s = h + "logos/mp2/",
- t = h + "logos/l3/",
- D = -18,
- E = -26,
- F = -34,
- G = -52,
- l = "sprite/top_logos_sprite",
- c = "*display:inline;display:inline-block;}",
- m = " no-repeat;" + c,
- f, i, b, a, q = j.isIe ? ".gif": ".png",
- H = "more-style-",
- e,
- y = ["android", "apple", "sharethis", "sharethis-orange", "addthis"];
- j.ready(function() {
- var a = function() {
- d.completed ? (C(), d.params.type != 15 && n.pop != -1 && !n.beta && !n.popjs && j.loadScript(d.jsBasePath + "styles/bshareS887.js?v=20160808")) : setTimeout(a, 50)
- };
- a()
- })
- })();
|