Advertisement
Guest User

Code

a guest
Sep 8th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. # Код кнопки
  2. <script src="https://kit.fontawesome.com/ec705a4d25.js" crossorigin="anonymous"></script>
  3.  
  4. <div class="wrapper-button">
  5. <div class="icon-button whatsapp">
  6. <div class="tooltip">WhatsApp</div>
  7. <span>
  8. <a href="https://google.com" style="text-decoration: none; color: #ffffff;">
  9. <i class="fab fa-whatsapp fa-2x"></i>
  10. </a>
  11. </span>
  12. </div>
  13. </div>
  14.  
  15. <style type="text/css">
  16. .wrapper-button {
  17. display: inline-flex;
  18. }
  19.  
  20. .wrapper-button .icon-button {
  21. position: fixed;
  22. background-color: #AE978F;
  23. right: 0px;
  24. bottom: 0px;
  25. color: #ffffff;
  26. border-radius: 50%;
  27. padding: 15px;
  28. margin: 10px;
  29. width: 50px;
  30. height: 50px;
  31. font-size: 18px;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. flex-direction: column;
  36. box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  37. cursor: pointer;
  38. transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  39. }
  40.  
  41. .wrapper-button .tooltip {
  42. position: absolute;
  43. top: 0;
  44. font-size: 14px;
  45. background-color: #ffffff;
  46. color: #ffffff;
  47. padding: 5px 8px;
  48. border-radius: 5px;
  49. box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  50. opacity: 0;
  51. pointer-events: none;
  52. transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  53. }
  54.  
  55. .wrapper-button .tooltip::before {
  56. position: absolute;
  57. content: "";
  58. height: 8px;
  59. width: 8px;
  60. background-color: #ffffff;
  61. bottom: -3px;
  62. left: 50%;
  63. transform: translate(-50%) rotate(45deg);
  64. transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  65. }
  66.  
  67. .wrapper-button .icon-button:hover .tooltip {
  68. top: -45px;
  69. opacity: 1;
  70. visibility: visible;
  71. pointer-events: auto;
  72. }
  73.  
  74. .wrapper-button .icon-button:hover span,
  75. .wrapper-button .icon-button:hover .tooltip {
  76. text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  77. }
  78.  
  79. .wrapper-button .whatsapp:hover,
  80. .wrapper-button .whatsapp:hover .tooltip,
  81. .wrapper-button .whatsapp:hover .tooltip::before {
  82. background-color: #43d854;
  83. color: #ffffff;
  84. }
  85. </style>
  86.  
  87. # Код таплинк (обрезанный)
  88. <!DOCTYPE html>
  89. <html prefix="og: http://ogp.me/ns#" lang="ru" data-format-date="d.m.Y" data-format-datetime="d.m.Y H:i">
  90. <head>
  91. <title></title>
  92. <meta name="description" content=""/>
  93. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, shrink-to-fit=no"/>
  94.  
  95. <link rel="dns-prefetch" href="https://mc.yandex.ru">
  96. <meta name="HandheldFriendly" content="true">
  97. <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
  98.  
  99. <link type='text/css' rel='stylesheet' href='//cdn.jsdelivr.net/gh/blacknot/taplink@1.2.4678/css/frontend.css'>
  100.  
  101. <link rel="icon" href="https://s.taplink.ru/">
  102.  
  103. <meta name="lazy-scripts-prefix" content="//cdn.jsdelivr.net/gh/blacknot/taplink@1.2.4678">
  104. <meta name="format-detection" content="telephone=no"/>
  105.  
  106. <meta name="referrer" content="always">
  107.  
  108. <link rel="canonical" href=""/>
  109. <link rel="image_src" href=""/>
  110.  
  111. <meta property="og:type" content="website"/>
  112. <meta property="og:title" content=""/>
  113. <meta property="og:description" content="я"/>
  114. <meta property="og:url" content=""/>
  115. <meta property="og:site_name" content="Taplink"/>
  116. <meta property="og:image" content="">
  117.  
  118. </head>
  119. <body>
  120. <div class="main theme-main">
  121. <div class=yandexmetrika data-id=44929738 data-simple=true></div>
  122. <div class=googletags data-id=G-HPJBN8S903></div>
  123. <style>
  124. "html": "<div class=\"wrapper-button\">\n <div class=\"icon-button whatsapp\">\n <div class=\"tooltip\">WhatsApp</div>\n <span>\n <a href=\"https://api.whatsapp.com/send?phone=70000000000&amp;text=Здравствуйте!%20Хочу%20проконсультироваться.\" style=\"text-decoration: none; color: #ffffff;\">\n <i class=\"fab fa-whatsapp fa-2x\"></i>\n </a>\n </span>\n </div>\n </div>\n \n <style type=\"text/css\">\n .wrapper-button {\n display: inline-flex;\n z-index: 1000;\n }\n \n .wrapper-button .icon-button {\n position: fixed;\n z-index: 1000;\n background-color: #AE978F;\n right: 0px;\n bottom: 0px;\n color: #ffffff;\n border-radius: 50%;\n padding: 15px;\n margin: 10px;\n width: 50px;\n height: 50px;\n font-size: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n }\n \n .wrapper-button .tooltip {\n position: absolute;\n top: 0;\n font-size: 14px;\n background-color: #ffffff;\n color: #ffffff;\n padding: 5px 8px;\n border-radius: 5px;\n box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);\n opacity: 0;\n pointer-events: none;\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n z-index: 1000;\n }\n \n .wrapper-button .tooltip::before {\n position: absolute;\n content: \"\";\n height: 8px;\n width: 8px;\n background-color: #ffffff;\n bottom: -3px;\n left: 50%;\n transform: translate(-50%) rotate(45deg);\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n z-index: 1000;\n }\n \n .wrapper-button .icon-button:hover .tooltip {\n top: -45px;\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n z-index: 1000;\n }\n \n .wrapper-button .icon-button:hover span,\n .wrapper-button .icon-button:hover .tooltip {\n text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n }\n \n .wrapper-button .whatsapp:hover,\n .wrapper-button .whatsapp:hover .tooltip,\n .wrapper-button .whatsapp:hover .tooltip::before {\n background-color: #43d854;\n color: #ffffff;\n z-index: 1000;\n }\n </style>"
  125. };
  126. window.data = {
  127. "page_id": 7191308,
  128. "fields": [{
  129. "section": null,
  130. "items": [{
  131. ]
  132. }],
  133. "options": []
  134. };
  135. </script>
  136. <script type='text/javascript' src='//cdn.jsdelivr.net/combine/npm/vue@2.6.11,npm/vue-router@3.0.7,gh/blacknot/taplink@1.2.4678/js/frontend.js'></script>
  137. <div class="page vue is-flex-fullheight is-ltr">
  138. <router-view></router-view>
  139. </div>
  140. </div>
  141. </body>
  142. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement