sexta-feira, 12 de setembro de 2014

<script src="https://apis.google.com/js/platform.js"></script>

<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-channel="BlackGamer201" data-layout="full" data-theme="dark" data-count="hidden" data-onytevent="onYtEvent"></div>

Nenhum comentário:

Postar um comentário