Javascript: Hide button after event "subscribe"

0

People in this google script have a comment "Add code to handle subscribe event." translating "Add code to handle signature event.".

I want to know if I have to put a code in this place so that when the action "subcribe" the sum button occurs. If you have how and you know the code, can you give it to me?

<script src="https://apis.google.com/js/platform.js"></script><script>functiononYtEvent(payload){if(payload.eventType=='subscribe'){//Addcodetohandlesubscribeevent.}elseif(payload.eventType=='unsubscribe'){//Addcodetohandleunsubscribeevent.}if(window.console){//fordebuggingonlywindow.console.log('YTevent:',payload);}}</script><divclass="g-ytsubscribe" data-channel="GoogleDevelopers" data-layout="default" data-count="default" data-onytevent="onYtEvent"></div>
    
asked by anonymous 13.02.2017 / 15:29