uci-hugo-landingpage/static/js/docready.js

24 lines
571 B
JavaScript

// requires jquery
$(document).ready(function () {
// initialize
navbarSpacer();
// $('#page').css("width", $(window).width());
heroResize();
itemResize('iframe');
typeResize(); // for section content
hljs.initHighlightingOnLoad();
$('.section__content--modal').perfectScrollbar();
// resize elements on change
$(window).resize(function () {
// $('#page').css("width", $(window).width());
navbarSpacer();
heroResize();
itemResize('iframe');
typeResize();
$('.section__content--modal').perfectScrollbar('update');
});
});;