From 1e975405c8e5db11f125fafa92ebf37819ee43aa Mon Sep 17 00:00:00 2001 From: th3r00t Date: Sat, 11 Mar 2023 15:48:12 -0500 Subject: [PATCH] Added Frontend includes. --- .../static/images/python-logo-generic.svg | 269 ++++++++++++++++++ .../static/images/python-logo-transparent.svg | 152 ++++++++++ src/frontend/static/script/pyshelf.ts | 15 + 3 files changed, 436 insertions(+) create mode 100644 src/frontend/static/images/python-logo-generic.svg create mode 100644 src/frontend/static/images/python-logo-transparent.svg create mode 100644 src/frontend/static/script/pyshelf.ts diff --git a/src/frontend/static/images/python-logo-generic.svg b/src/frontend/static/images/python-logo-generic.svg new file mode 100644 index 0000000..116eaac --- /dev/null +++ b/src/frontend/static/images/python-logo-generic.svg @@ -0,0 +1,269 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/static/images/python-logo-transparent.svg b/src/frontend/static/images/python-logo-transparent.svg new file mode 100644 index 0000000..0bfa787 --- /dev/null +++ b/src/frontend/static/images/python-logo-transparent.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/static/script/pyshelf.ts b/src/frontend/static/script/pyshelf.ts new file mode 100644 index 0000000..6d6a1ed --- /dev/null +++ b/src/frontend/static/script/pyshelf.ts @@ -0,0 +1,15 @@ +function getScreenSize() { + return { + width: window.innerWidth, + height: window.innerHeight + }; +} +$(document).ready(function() { + // Get the current URL + var url = window.location.href; + // Get the last part of the URL + var screenSize = getScreenSize(); + var x: number = screenSize.width; + var y: number = screenSize.height; + console.log(x, y); +}