diff --git a/requirements.txt b/requirements.txt index ac2d3c0..a88add2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ bs4 flask redis requests +rq selenium==3.14.1 selenium-requests urllib3==1.26.2 diff --git a/static/css/style.css b/static/css/style.css index baa07a4..666bec9 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -15,7 +15,7 @@ body { text-align: center; top: 50%; left: 50%; - transform: translate(-50%, -50%); + transform: translate(-50%, -50%) !important; } .card { diff --git a/static/js/app.js b/static/js/app.js index 12df0be..fad9647 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1,15 +1,16 @@ $('#download_btn').on('click', () => { - console.log('Clicked Download!'); let artist = $('#search_bar').val(); // Prevent $('#search_bar').val(''); - console.log(artist); + if (artist) { $("#loader-wrapper").fadeIn(300); $.ajax({ url: `/api/v1/get/${artist}`, - }).done(function () { - $('#search_bar').val(''); + }).done(function (res) { + console.log('---'); + console.log(res); + console.log('---'); $("#loader-wrapper").fadeOut(700); }); } else { diff --git a/templates/base.html b/templates/base.html index d7863c6..0f3de46 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,8 +18,8 @@