Added Frontend includes.

This commit is contained in:
th3r00t
2023-03-11 15:48:12 -05:00
parent c1c7b869ef
commit 1e975405c8
3 changed files with 436 additions and 0 deletions

15
src/frontend/static/script/pyshelf.ts vendored Normal file
View File

@@ -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);
}