Line 8: | Line 8: | ||
var flag = false; | var flag = false; | ||
− | + | $(window).scroll(function() { | |
− | + | if($(window).scrollTop() + $(window).height() == $(document).height()) { | |
− | + | $("#nugget").fadeOut("slow"); | |
− | + | $(".testtext").fadeIn("slow"); | |
+ | } | ||
+ | }); | ||
// document.getElementbyId("nugget").style.opacity="0.5"; | // document.getElementbyId("nugget").style.opacity="0.5"; | ||
Line 19: | Line 21: | ||
− | var prop=0; | + | //var prop=0; |
− | $(window).scroll(function() { | + | //$(window).scroll(function() { |
− | prop= (($(window).scrollTop() + $(window).height())/$(document).height()); | + | //prop= (($(window).scrollTop() + $(window).height())/$(document).height()); |
− | + | // $("#nugget").css('opacity') = (1-prop).toString(); | |
− | $(".testtext").css('opacity') = (prop).toString(); | + | //$(".testtext").css('opacity') = (prop).toString(); |
− | } | + | //} |
− | }); | + | //}); |
</script> | </script> |
Revision as of 20:22, 8 August 2016