This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml.
It runs daily to sync the default branch and can be triggered manually for any branch.
| //requires jQuery | |
| $(window).scroll(function(){ | |
| var threshold = 200; // number of pixels before bottom of page that you want to start fading | |
| var op = (($(document).height() - $(window).height()) - $(window).scrollTop()) / threshold; | |
| if( op <= 0 ){ | |
| $("#thing-to-hide").hide(); | |
| } else { | |
| $("#thing-to-hide").show(); | |
| } | |
| $("#thing-to-hide").css("opacity", op ); |