From 3f732f52b92bc7f0f40a9d7fc90a1c5321edb1d1 Mon Sep 17 00:00:00 2001 From: rav4s Date: Sun, 28 Mar 2021 12:12:41 -0500 Subject: [PATCH] Added a rickroll --- Web_Dashboard/app.py | 6 ++++- Web_Dashboard/js/redirect.js | 1 + Web_Dashboard/templates/rickroll.html | 32 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Web_Dashboard/js/redirect.js create mode 100644 Web_Dashboard/templates/rickroll.html diff --git a/Web_Dashboard/app.py b/Web_Dashboard/app.py index 8594bb8..2a6d829 100644 --- a/Web_Dashboard/app.py +++ b/Web_Dashboard/app.py @@ -443,6 +443,10 @@ def ten(): return render_template('ten.html', smartphone=ten_smartphone, tablet=ten_tablet, laptop=ten_laptop) +@app.route('/rickroll') +def index(): + return render_template('rickroll.html') + if __name__ == '__main__': from waitress import serve - serve(app, host="0.0.0.0", port=1235) \ No newline at end of file + serve(app, host="0.0.0.0", port=1235) diff --git a/Web_Dashboard/js/redirect.js b/Web_Dashboard/js/redirect.js new file mode 100644 index 0000000..276d983 --- /dev/null +++ b/Web_Dashboard/js/redirect.js @@ -0,0 +1 @@ +setTimeout(() => { location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; }, 1000); diff --git a/Web_Dashboard/templates/rickroll.html b/Web_Dashboard/templates/rickroll.html new file mode 100644 index 0000000..0603759 --- /dev/null +++ b/Web_Dashboard/templates/rickroll.html @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + Rickrolled! +

Rickrolled!

+ + +