0

찾을 수이 : tyty 스택, Social Icons not working with Infinite Scrolling on WordpressStumbleUpon에서와 대표자 : 사회 공유 아이콘 스크립트 기능은 워드 프레스 무한 스크롤 통화를

내가 두 더 많은 버튼, StumbleUpon에서와 대표자

와 함께, 그들이 같은 일을하고 있어요 내가 스크립트 기능을 찾고 있어요

는 대표자 요구 '핀 그것은'버튼 StumbleUpon에서 배지/위젯

내가 StumbleUpon에서 뭔가를 찾았지만, 이상적 아니라,

Pinterest에 대한 단서가없고 여전히 찾고, 그들에게 명랑한 편지를 썼습니다.

여기

// 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); 
    })(); 

체류 고급, 스택, 텍스트 영역 "다음 게시물 페치 후에 호출되는 자바 스크립트"무한 스크롤 설정에 내가 붙여있어 코드입니다.

답변

0

나는 HTML5-valid Pinterest button alterantive을 작성하여 GitHub에 게시했습니다. 메서드는 gapi.plusone.go() 등과 같이 작동합니다.

여러분의 프로젝트에서 도움이되기를 바랍니다.

+0

와우, 멋지다! 티티. 나는 그것을 확실히 체크 아웃 할 것이고, 다시 감사한다! – joelrnorris