diff --git a/_layouts/default.html b/_layouts/default.html index 8e12b5f..3ac0e83 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -17,9 +17,6 @@ - - - @@ -139,9 +136,6 @@ - - - @@ -151,13 +145,6 @@ - - - - - - - diff --git a/js/MillironX_CustomScripts.js b/js/MillironX_CustomScripts.js index 6b6f0fa..7f4738b 100644 --- a/js/MillironX_CustomScripts.js +++ b/js/MillironX_CustomScripts.js @@ -1,7 +1,14 @@ -$(".img-src").width($("#main-content").width()); +/*! + * 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) { @@ -12,5 +19,16 @@ $(window).resize(function () { } }); +// Squeeze the heading text into the proper box $("#motto").fitText(); -$("[rel='tooltip']").tooltip(); \ No newline at end of file +$("[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); + +});