SaveTV Archiv Copy2Clipboard

by Thunderbolt

HTML

<a href="javascript:
  $('a').each(function() {
      var href = this.href;
      var ZAHL = href.substr(href.length-8.0,href.length);
      if( !isNaN( parseFloat(ZAHL) ) ) {
          var html = '<a class=%22Btn_Copy2Clipboard config-submit-button header-user1-testen%22 type=%22button%22 href=%22javascript:copy2clipboard(\'' + href + '\');%22  style=%22position: absolute; width: 120px; left: -18px;%22 >Copy2Clipboard</a>';
          $(this).before(
            unescape(html)
           );
      }
  });
  function copy2clipboard(text) {
      var textField = document.createElement('textarea');
      textField.innerText = text;
      document.body.appendChild(textField);
      textField.select();
      document.execCommand('copy');
      textField.remove();
  }">SaveTV Copy2Clipboard</a>

CSS

a {
  display: block;
  height: 7em;
  width: 300px;
  line-height: 6em;
  background-color: #080000;
  text-decoration: none;
  color: #FFFFFF;
  text-align: center;
}
a:after{
  content: "Ziehe mich in deine Lesezeichenleiste!";
  position: absolute;
  margin-left: -250px;
  width: 300px;
  margin-top: 1em;
  text-align: center;
  color: #FFFFFF;
}