2017-04-08 14:24:15 -07:00
|
|
|
(function initialze() {
|
2017-04-05 00:24:28 -07:00
|
|
|
navbarSpacer();
|
2017-03-10 22:59:27 -08:00
|
|
|
heroResize();
|
2017-03-14 23:20:52 -07:00
|
|
|
itemResize('iframe');
|
2017-03-21 08:32:26 -07:00
|
|
|
typeResize(); // for section content
|
2017-04-03 11:39:23 -07:00
|
|
|
hljs.initHighlightingOnLoad();
|
2017-04-07 01:40:29 -07:00
|
|
|
$('.section__content--modal').perfectScrollbar();
|
2017-04-08 14:24:15 -07:00
|
|
|
})();
|
2017-04-05 00:24:28 -07:00
|
|
|
|
2017-04-08 14:24:15 -07:00
|
|
|
// requires jquery
|
|
|
|
$(document).ready(function () {
|
2017-03-10 22:59:27 -08:00
|
|
|
|
2017-04-08 14:24:15 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
// resize elements on change
|
|
|
|
$(window).resize(function () {
|
|
|
|
navbarSpacer();
|
|
|
|
heroResize();
|
|
|
|
itemResize('iframe');
|
|
|
|
typeResize();
|
|
|
|
$('.section__content--modal').perfectScrollbar('update');
|
|
|
|
});
|