Move scrolling window code to its own file
This commit is contained in:
parent
15ac97e656
commit
a493a7b6be
2 changed files with 8 additions and 11 deletions
6
assets/scripts/scroll-effect.js
Normal file
6
assets/scripts/scroll-effect.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
$(window).scroll(function (e) {
|
||||
oVal = ($(window).scrollTop() / 170);
|
||||
$(".blur").css("opacity", oVal);
|
||||
|
||||
});
|
||||
$("#motto").fitText();
|
|
@ -228,17 +228,8 @@
|
|||
{{ $twbsjs := resources.Get "node/node_modules/bootstrap/dist/js/bootstrap.js" }}
|
||||
{{ $fajs := resources.Get "node/node_modules/@fortawesome/fontawesome-pro/js/all.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>
|
||||
$(window).scroll(function (e) {
|
||||
oVal = ($(window).scrollTop() / 170);
|
||||
$(".blur").css("opacity", oVal);
|
||||
|
||||
});
|
||||
$("#motto").fitText();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue