Advertisement
oscarviedma

Códigos tutorial Chat WhatsApp Multi Agente OV DIVI

Nov 4th, 2021
2,228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. Código HTML para texto “en línea”:
  2. <h6 style="font-size: 11px; margin-top:2px; color: #26c281;">en línea</h6>
  3.  
  4.  
  5. Código HTML del icono de WA:
  6. <i class="fa fa-whatsapp" style="font-size:25px; color: #fff"></i>
  7.  
  8.  
  9. Link CDN librería FontAwesome:
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  11.  
  12.  
  13. Código HTML icono de cerrar WA:
  14. <span class="fa fa-close" style="font-size: 18px; color: #D8F3E8;"></span>
  15.  
  16.  
  17. Código jQuery para agregar la funcionalidad del chat WA:
  18. <script>
  19. jQuery(document).ready(function( $ ) {
  20. $('#ov-icono-wa').click(function(){
  21. $('.ov-chat-wa').toggleClass('mostrar-ov-chat-wa');
  22. });
  23. $('#cerrar-icono-wa').click(function(){
  24. $('.ov-chat-wa').removeClass('mostrar-ov-chat-wa');
  25. });
  26. });
  27. </script>
  28.  
  29.  
  30. Código CSS para el chat WA:
  31. .ov-chat-wa {
  32. opacity: 0;
  33. visibility: hidden;
  34. -webkit-transition: all 0.3s;
  35. -moz-transition: all 0.3s;
  36. -ms-transition: all 0.3s;
  37. -o-transition: all 0.3s;
  38. transition: all 0.3s;
  39. }
  40. .ov-chat-wa.mostrar-ov-chat-wa {
  41. opacity: 1 !important;
  42. visibility: visible !important;
  43. }
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement