Setup to handle book objects from sqlalchemy.

This commit is contained in:
th3root
2023-03-11 19:00:17 -05:00
parent 1e975405c8
commit b9b34831b6
10 changed files with 118 additions and 23 deletions

View File

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