0
發現這一點: tyty棧, Social Icons not working with Infinite Scrolling on WordpressStumbleUpon公司和Pinterest的社交分享圖標腳本函數與WordPress無限滾動呼籲
我做他們是同樣的事情,只有兩個按鈕,StumbleUpon公司和Pinterest的
我要找的腳本函數調用的Pinterest的「別起來」按鈕和StumbleUpon公司徽章/控件
我發現了一些對StumbleUpon公司,但它的效果並不理想,
Pinterest還沒有線索,仍然看着,寫了一封愉快的信。
這裏是我的代碼我粘貼到無限滾動設置「Javascript被稱爲之後的下一個職位是取」文本區域,
// jQuery Masonry,
var newElems = jQuery(newElements).css({ opacity: 0 });
newElems.imagesLoaded(function(){
newElems.animate({ opacity: 1 });
jQuery('#content').masonry('appended', newElems, true);
});
// ReCall Scripts for Social Sharing Buttons
var el = document.body;
//Google Plus
if (typeof gapi !== "undefined") { gapi.plusone.go(el); }
//Facebook
if (typeof FB !== "undefined") { FB.XFBML.parse(el); }
//Twitter
if (typeof twttr !== "undefined") { twttr.widgets.load(); }
//Pinterest
//StumbleUpon
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = 'https://platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
})();
住宿優雅,堆棧。
哇,酷! tyty。我一定會檢查出來,再次感謝! – joelrnorris