twitter buttons

This commit is contained in:
Naeltard 2015-04-02 02:34:05 +02:00
parent 98820440d1
commit a4fe271215
2 changed files with 14 additions and 5 deletions

View File

@ -27,7 +27,7 @@
<div id="content"></div> <div id="content"></div>
<div id="footer"> <div id="footer">
<a href="#!impressum" id="impressum">Impressum</a> <a href="#!impressum" id="impressum">Impressum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="#!about" id="about">About</a> <a href="#!about" id="about">About</a>
</div> </div>
</body> </body>

View File

@ -60,6 +60,8 @@ function log_file_start(torrent){
'direct link: ' + 'direct link: ' +
'</a>' + '</a>' +
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' + '<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
'&nbsp;&nbsp;&nbsp;' +
'<a class="twitter-share-button" href="https://twitter.com/share" data-via="slingtweet" data-url="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '">Tweet</a>' +
'</td>' + '</td>' +
'</tr>'); '</tr>');
} }
@ -80,8 +82,11 @@ function log_file_add(torrent){
'direct link: ' + 'direct link: ' +
'</a>' + '</a>' +
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' + '<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
'&nbsp;&nbsp;&nbsp;' +
'<a class="twitter-share-button" href="https://twitter.com/share" data-via="slingtweet" data-url="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '">Tweet</a>' +
'</td>' + '</td>' +
'</tr>'); '</tr>');
$.getScript("http://platform.twitter.com/widgets.js");
} }
function log_file_upd(torrent){ function log_file_upd(torrent){
@ -98,8 +103,10 @@ function log_file_upd(torrent){
'<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' + '<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' +
' target="_blank">' + ' target="_blank">' +
'direct link: ' + 'direct link: ' +
'</a>' + '</a>' +
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' + '<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
'&nbsp;&nbsp;&nbsp;' +
'<a class="twitter-share-button" href="https://twitter.com/share" data-via="slingtweet" data-url="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '">Tweet</a>' +
'</td>') '</td>')
} else { } else {
log_file_add(torrent); log_file_add(torrent);
@ -134,8 +141,10 @@ function log_file_done(torrent,url,file){
'<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' + '<a href="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '"' +
' target="_blank">' + ' target="_blank">' +
'direct link: ' + 'direct link: ' +
'</a>' + '</a>' +
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' + '<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
'&nbsp;&nbsp;&nbsp;' +
'<a class="twitter-share-button" href="https://twitter.com/share" data-via="slingtweet" data-url="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '">Tweet</a>' +
'</td>' + '</td>' +
'</tr>'); '</tr>');
} }