mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Setup to handle book objects from sqlalchemy.
This commit is contained in:
24
src/frontend/static/script/pyshelf.ts
vendored
24
src/frontend/static/script/pyshelf.ts
vendored
@@ -4,12 +4,20 @@ function getScreenSize() {
|
||||
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);
|
||||
|
||||
function sizeMaster() {
|
||||
var size = getScreenSize();
|
||||
var navbar = $('#navbar-main').height();
|
||||
var footer = $('#footer-main').height();
|
||||
var master = $('#master').height(size.height - navbar - footer);
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// Get the current URL
|
||||
var url = window.location.href;
|
||||
// Get the last part of the URL
|
||||
sizeMaster();
|
||||
$(window).on('resize', function() {
|
||||
sizeMaster();
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user