custom css

This commit is contained in:
Grizouille
2025-11-10 11:41:12 +01:00
parent 4b4eb94ff7
commit 48a357c039
4 changed files with 70 additions and 81 deletions

View File

@@ -306,25 +306,6 @@ $(document).ready(function() {
});
// END DEEZER FAVORITE SONGS
$('#paramters').on('submit', function(e) {
e.preventDefault();
$.ajax({
url: deezer_downloader_api_root + '/save_config',
type: 'POST',
contentType: 'application/json', // essentiel pour Flask.get_json()
data: JSON.stringify({ dirPath: $('#param-directry-path').val(),
login: $('#param-login').val(),
password: $('#param-password').val()}),
success: function(response) {
$.jGrowl("Sauvegarder avec succès", { life: 4000 });
},
error: function(xhr) {
const err = xhr.responseJSON?.error || 'Erreur inconnue';
$('#result').css('color', 'red').text(err);
}
});
});
function show_tab(id_nav, id_content) {
// nav
@@ -338,6 +319,14 @@ $(document).ready(function() {
$("#" + id_content).addClass("active show")
}
$('#youtubedl-query-video').on('keypress', function(e) {
if (e.which === 13) {
e.preventDefault();
$('#yt_download_video').click();
}
});
var bbody = document.getElementById('body');
bbody.onkeydown = function (event) {