1 year ago

Where to put javascript?

Posted 1 year ago by artisticre

I have a very simple javascript for changing colors of the navbar. My question is where in laravel do I put javascript? I tried in app.blade.php in the header and before the closing body tag but it isn't working.

<script type="text/javascript">
   $(window).on('scroll', function() {
    if($(window).scrollTop()) {
    else {

Please sign in or create an account to participate in this conversation.