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

24 lines
571 B
JavaScript
Raw Normal View History

// requires jquery
$(document).ready(function () {
2017-03-11 20:11:20 -08:00
// initialize
navbarSpacer();
// $('#page').css("width", $(window).width());
2017-03-10 22:59:27 -08:00
heroResize();
itemResize('iframe');
typeResize(); // for section content
hljs.initHighlightingOnLoad();
2017-04-07 01:40:29 -07:00
$('.section__content--modal').perfectScrollbar();
2017-03-10 22:59:27 -08:00
// resize elements on change
$(window).resize(function () {
// $('#page').css("width", $(window).width());
navbarSpacer();
2017-03-10 22:59:27 -08:00
heroResize();
itemResize('iframe');
typeResize();
2017-04-07 01:40:29 -07:00
$('.section__content--modal').perfectScrollbar('update');
2017-03-04 20:02:56 -08:00
});
2017-03-10 22:59:27 -08:00
});;