mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Added Frontend includes.
This commit is contained in:
15
src/frontend/static/script/pyshelf.ts
vendored
Normal file
15
src/frontend/static/script/pyshelf.ts
vendored
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user