From 2f05ea32e00d171de746823691557bf41244ad51 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 18 Sep 2020 11:45:13 -0600 Subject: [PATCH] Removed unused scripts --- _layouts/default.html | 13 ------------- js/MillironX_CustomScripts.js | 22 ++++++++++++++++++++-- 2 files changed, 20 insertions(+), 15 deletions(-) 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); + +});