Configure Share Gate

0

As I set the share button to continue, it does not work for example share and continue, and also has a problem that when the page is loaded slowly the text is displayed, I am testing on this site link

<html>
  <body>
    <center><p><font size="5">Mundial Frases</font> <br /></p></center>
    <p class="adl-outside-gate">
     <center><font size="5"> Por favor, clique em um dos botões abaixo para continuar.  </font> <br /></center>
    </p>
    <p class="adl-inside-gate">
      <font color="#FF0000"><font size="6"> Obrigado!!! Seu codigo é... </font> <br /></font> <br />
    </p>
    
     <center><table>
      <tr>
        <td valign="top">
          <div id="fb-root"></div>
          <script src="http://connect.facebook.net/pt_BR/all.js#appId=1097309690362496&amp;xfbml=1"></script><fb:likehref="" send="true" layout="box_count" width="55" show_faces="true" font=""></fb:like>
        </td>
        <td valign="top">
          <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a>
          <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td><tdvalign="top">
          <g:plusone size="tall" callback="afterPlus"></g:plusone>
          <script type="text/javascript">
            (function() {
              var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
              po.src = 'https://apis.google.com/js/plusone.js';
              var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
            })();
          </script>
        </td>
      </tr>
    </table></center>
    
    <script type="text/javascript">
      ADL = {};
      
      (function(namespace) {
        
        function ViralGate() { };
        
        ViralGate.prototype.setDisplay = function(className, value) {
          var els = document.getElementsByClassName(className);          
          for (var i = 0; i < els.length; i++) {
            els[i].style.display = value;
          }          
        };
        
        ViralGate.prototype.lock = function() {
          this.setDisplay('adl-outside-gate', 'block');
          this.setDisplay('adl-inside-gate', 'none');
        };
        
        ViralGate.prototype.unlock = function() {
          this.setDisplay('adl-outside-gate', 'none');
          this.setDisplay('adl-inside-gate', 'block');          
        }
        
        ViralGate.prototype.afterLike = function(event) {
          ADL.viralGate.unlock();
        };
        
        ViralGate.prototype.afterPlus = function(data) {
          if (data.state == 'on') {
            ADL.viralGate.unlock();
          }
        };
        
        ViralGate.prototype.afterTweet = function(event) {
          ADL.viralGate.unlock();
        };
        
        namespace.viralGate = new ViralGate(); 
        
      })(ADL);
      
      ADL.viralGate.lock();
      twttr.events.bind('tweet', ADL.viralGate.afterTweet); 
      FB.Event.subscribe('edge.create', ADL.viralGate.afterLike);
      
      afterPlus = function(data) {
        ADL.viralGate.afterPlus(data);
      }
    </script>
  </body>
</html>
    
asked by anonymous 14.07.2016 / 04:09

1 answer

0

Resolved? I'm having the same problem. The part responsible for like is:

ViralGate.prototype.afterLike = function(event)

Maybe change Like to Share-button solve.

    
05.09.2016 / 08:54