SaveTV Archiv Linkumleitung
by Thunderbolt
HTML
<a href="javascript:(function() {
$('a').each(function() {
var href = this.href;
var ZAHL = href.substr(href.length-8.0,href.length);
if( !isNaN( parseFloat(ZAHL) ) ) {
var old = this;
var elClone = this.cloneNode(true);
elClone.href = 'javascript:copy2clipboard(\'' + href + '\');';
elClone.removeAttribute('data-bind');
old.parentNode.replaceChild(elClone, old);
}
});
function copy2clipboard(text) {
var textField = document.createElement('textarea');
textField.innerText = text;
document.body.appendChild(textField);
textField.select();
document.execCommand('copy');
textField.remove();
}
})();">SaveTV Archiv Linkumleitung</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;
}