Files
pyShelf/src/frontend/static/script/pyshelf.js
2023-03-11 19:00:17 -05:00

22 lines
559 B
JavaScript

function getScreenSize() {
return {
width: window.innerWidth,
height: window.innerHeight
};
}
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();
});
});