Guest User

bbcode

a guest
Aug 5th, 2020
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="whatsapp-fixo">
  2. <a href="https://api.whatsapp.com/send?phone=552799999999&text=Olá!%20Pode%20me%20ajudar?" target="_blank" class="js-wppWeb">
  3. <img src="https://1.bp.blogspot.com/-UQL7nVGi7pg/XyNZ6iVSMoI/AAAAAAAAFcU/JXHS-K4wO4gKdRYAy8MvYb-i4o-tPnI7gCLcBGAsYHQ/s1600/pagamentothim2.png" />
  4. </a>
  5.  
  6. </div>
  7.  
  8. <script type="text/javascript">
  9. var wppWebHref = $('.js-wppWeb').attr('href').replace('api', 'web');
  10. if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
  11. $('.js-wppWeb').attr('href', wppWebHref);
  12. }
  13.  
  14. </script>
  15.  
  16.  
  17.  
  18. ---------------------------------------------------
  19.  
  20.  
  21. CSS
  22.  
  23.  
  24.  
  25. /* WHATSAPP FIXO */
  26.  
  27. .whatsapp-fixo {
  28. position: fixed;
  29. bottom:50px;
  30. right:10px;
  31. z-index: 999;
  32. }
  33.  
  34.  
  35.  
RAW Paste Data