twitter buttons
This commit is contained in:
parent
98820440d1
commit
a4fe271215
@ -27,7 +27,7 @@
|
||||
<div id="content"></div>
|
||||
<div id="footer">
|
||||
<a href="#!impressum" id="impressum">Impressum</a>
|
||||
|
||||
|
||||
<a href="#!about" id="about">About</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@ -60,6 +60,8 @@ function log_file_start(torrent){
|
||||
'direct link: ' +
|
||||
'</a>' +
|
||||
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
|
||||
' ' +
|
||||
'<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>' +
|
||||
'</tr>');
|
||||
}
|
||||
@ -80,8 +82,11 @@ function log_file_add(torrent){
|
||||
'direct link: ' +
|
||||
'</a>' +
|
||||
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
|
||||
' ' +
|
||||
'<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>' +
|
||||
'</tr>');
|
||||
$.getScript("http://platform.twitter.com/widgets.js");
|
||||
}
|
||||
|
||||
function log_file_upd(torrent){
|
||||
@ -100,6 +105,8 @@ function log_file_upd(torrent){
|
||||
'direct link: ' +
|
||||
'</a>' +
|
||||
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
|
||||
' ' +
|
||||
'<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>')
|
||||
} else {
|
||||
log_file_add(torrent);
|
||||
@ -136,6 +143,8 @@ function log_file_done(torrent,url,file){
|
||||
'direct link: ' +
|
||||
'</a>' +
|
||||
'<input type="text" value="http://www.slingit.org/#!start;hash.' + torrent.infoHash + '" onClick="this.setSelectionRange(0, this.value.length)"/>' +
|
||||
' ' +
|
||||
'<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>' +
|
||||
'</tr>');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user