diff --git a/src/recommenderapp/app.py b/src/recommenderapp/app.py index 0db0d5e6b..02e4871fd 100644 --- a/src/recommenderapp/app.py +++ b/src/recommenderapp/app.py @@ -30,14 +30,6 @@ def landing_page(): return render_template("landing_page.html") -@app.route("/get_started", methods=["POST"]) -def get_started(): - """ - Handle the Get Started button click and redirect to search_page. - """ - return redirect(url_for("search_page.html")) - - @app.route("/search_page") def search_page(): """ diff --git a/src/recommenderapp/static/script.js b/src/recommenderapp/static/script.js index b410dc5b2..315efe88a 100644 --- a/src/recommenderapp/static/script.js +++ b/src/recommenderapp/static/script.js @@ -104,6 +104,17 @@ $(document).ready(function () { }); }); + // Function to handle Get Started button click + function getStarted() { + // Navigate to the search page + window.location.href = "/search_page"; // Replace with the actual URL of your search page + } + + // Bind the getStarted function to the Get Started button click + $("#getStartedButton").click(function () { + getStarted(); + }); + var FeedbackData; $("#feedback").click(function () { diff --git a/src/recommenderapp/templates/landing_page.html b/src/recommenderapp/templates/landing_page.html index f4a7e8712..1f96d4f3b 100644 --- a/src/recommenderapp/templates/landing_page.html +++ b/src/recommenderapp/templates/landing_page.html @@ -32,8 +32,8 @@

🎬 PopcornPicks: Pick a Movie! 🎬


Enjoy movies at your own pace, on your terms.

- Get Started! - + +









Made with ❤️ by PopcornPicks
MIT License Copyright (c) 2023 PopcornPicks