Move scrolling window code to its own file

This commit is contained in:
Thomas A. Christensen II 2022-02-02 00:21:44 -06:00
parent 15ac97e656
commit a493a7b6be
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 8 additions and 11 deletions

View file

@ -0,0 +1,6 @@
$(window).scroll(function (e) {
oVal = ($(window).scrollTop() / 170);
$(".blur").css("opacity", oVal);
});
$("#motto").fitText();

View file

@ -228,17 +228,8 @@
{{ $twbsjs := resources.Get "node/node_modules/bootstrap/dist/js/bootstrap.js" }} {{ $twbsjs := resources.Get "node/node_modules/bootstrap/dist/js/bootstrap.js" }}
{{ $fajs := resources.Get "node/node_modules/@fortawesome/fontawesome-pro/js/all.js" }} {{ $fajs := resources.Get "node/node_modules/@fortawesome/fontawesome-pro/js/all.js" }}
{{ $fittextjs := resources.Get "node/node_modules/fittext.js/jquery.fittext.js" }} {{ $fittextjs := resources.Get "node/node_modules/fittext.js/jquery.fittext.js" }}
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs | resources.Concat "js/bundle.js" | minify | fingerprint }} {{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs $scrolljs | resources.Concat "js/bundle.js" | minify | fingerprint }}
<script src="{{ $alljs.Permalink }}"></script> <script src="{{ $alljs.Permalink }}"></script>
<script>
$(window).scroll(function (e) {
oVal = ($(window).scrollTop() / 170);
$(".blur").css("opacity", oVal);
});
$("#motto").fitText();
</script>
</body> </body>
</html> </html>