mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 17:44:57 -05:00
25 lines
436 B
JavaScript
25 lines
436 B
JavaScript
function send(msg) {
|
|
document.title = "null";
|
|
document.title = msg;
|
|
}
|
|
|
|
function init(basename, strings) {
|
|
$('#basename').html(basename).show();
|
|
}
|
|
|
|
function url_is_set() {
|
|
$('#copy-button')
|
|
.click(function(){
|
|
send('copy_url');
|
|
})
|
|
.show();
|
|
}
|
|
|
|
function update(msg) {
|
|
var $line = $('<p></p>').append(msg);
|
|
$('#output').append($line);
|
|
|
|
// scroll to bottom
|
|
$('#output').scrollTop($('#output').height());
|
|
}
|