mirror of
https://codeberg.org/privacy1st/MastodonTootFollower
synced 2024-12-22 23:06:05 +01:00
Daniel Langbein
42b14e0e52
- rework of "Conversation" class - "Update" class - Flask development server - Waitress production server - output as RSS/Atom feed - output as JSON and HTML - improved CLI output
26 lines
561 B
JavaScript
26 lines
561 B
JavaScript
function html_button() {
|
|
button_result('/html/' + get_seed() + '/?url=' + get_url());
|
|
}
|
|
|
|
function json_button() {
|
|
button_result('/json/' + get_seed() + '/?url=' + get_url());
|
|
}
|
|
|
|
function rss_button() {
|
|
button_result('/rss/?url=' + get_url());
|
|
}
|
|
|
|
function button_result(url) {
|
|
let href = document.getElementById("href1")
|
|
href.href = url;
|
|
href.innerHTML = url;
|
|
// window.open(url);
|
|
}
|
|
|
|
function get_url() {
|
|
return document.getElementById('input1').value
|
|
}
|
|
|
|
function get_seed() {
|
|
return document.getElementById('input2').value
|
|
} |