<!DOCTYPE html>
<html>

<head>



  <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>

  <!-- GETSALE CODE START -->
  <script type="text/javascript">
    (function(d, w, c) {
      w[c] = {
        autoShowWidget: false,
        projectId: 59
      };

      var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function() {
          n.parentNode.insertBefore(s, n);
        };
      s.type = "text/javascript";
      s.async = true;
      s.src = "//rt.getsale.io/loader.js";

      if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
      } else {
        f();
      }

    })(document, window, "getSaleInit");
  </script>
  <!-- GETSALE CODE END -->

  <script type="text/javascript">
    $(function() {
      $(".widgets-preview-element").on("click", function(e) {
        getSale.showWidget($(this).data('widget-id'));
        e.preventDefault();
      });
    });
  </script>



</head>

<body>
  <a>Для показа виджета нажмите на</a>
  <a class="widgets-preview-element" data-widget-id="3875" href="#">ссылку</a>
</body>

</html>