SUB4SUB

Sub4Sub Forums Sub4Sub YouTube SUB4SUB

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #48300
    matienhoang
    Participant

    <script src=”https://apis.google.com/js/platform.js”></script&gt;

    <script>
    function onYtEvent(payload) {
    if (payload.eventType == ‘subscribe’) {
    // Add code to handle subscribe event.
    } else if (payload.eventType == ‘unsubscribe’) {
    // Add code to handle unsubscribe event.
    }
    if (window.console) { // for debugging only
    window.console.log(‘YT event: ‘, payload);
    }
    }
    </script>

    <div class=”g-ytsubscribe” data-channelid=”UC61vyNYoQhi8hB8qLh6Xz6w” data-layout=”full” data-count=”default” data-onytevent=”onYtEvent”></div>

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.