Difference between revisions of "Template:Toronto/Javascript"
Revision as of 21:15, 8 August 2016
(
view source
)
AKang
(
Talk
|
contribs
)
← Older edit
Revision as of 21:28, 8 August 2016
(
view source
)
AKang
(
Talk
|
contribs
)
Newer edit →
Line 12:
Line 12:
}
}
});
});
−
−
//failed attempts//
−
−
//var prop=0;
−
−
$(window).scroll(function() {
−
−
prop= ($(window).scrollTop() + $(window).height()/$(document).height());
−
$("#nugget").css('opacity') = prop.toString();;
−
$(".testtext").css('opacity') = (1-prop).toString();;
−
−
}//
Revision as of 21:28, 8 August 2016