You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pages/js/MillironX_CustomScripts.js

35 lines
955 B
JavaScript

/*!
* Custom scripts for millironx.github.io
*/
// Resize the window image on first page load
$(".img-src").width($("#main-content").width());
if ($("#top-container").width() > 768) {
$("#nav-link-container").height($("#nav-link-list").height());
}
// Resize the window image if the screen size changes
$(window).resize(function () {
$(".img-src").width($("#main-content").width());
if ($("#top-container").width() > 768) {
$("#nav-link-container").height($("#nav-link-list").height());
}
else {
$("#nav-link-container").css('height', '');
}
});
// Squeeze the heading text into the proper box
$("#motto").fitText();
$("[rel='tooltip']").tooltip();
// Animate the transparency for the glossy scroll effect
var transparentDemo = true;
var fixedTop = false;
$(window).scroll(function(e) {
oVal = ($(window).scrollTop() / 170);
$(".blur").css("opacity", oVal);
});