Message from JavaScript discussions

June 2017

— Https://stackoverflow.com/questions/31095210/why-did-git-push-origin-master-draw-ascii-art

— 

Hi guys, i'm trying to make a scroll effect on banner from this website www.feedmusic.com but i couldn't make can anyone tell what plugin or how do it in JavaScript or jquery

— Please help me thanks in advance

— Here is my code:
$('.banner').scroll(function() {

            var currentScrollPosition = $(this).scrollTop();

            if (currentScrollPosition > lastScrollTop) {

                //scroll down

                elem.each(function() {

                    var elemtop = $(this).offset().top;

                    //var elemtop = $(window).height()/3;

                    var x = Math.abs(currentScrollPosition + elemtop);

                    $(this).css({

                        'opaciy': -(currentScrollPosition - elemtop) / 300,

                        'transform': 'scale(' + x / 500 + ') translateY(' + x / 1000 + '%)'

                    });

                    /*if (currentScrollPosition > elemtop) {

                        $(this).addClass('active');

                    }*/

                });

            } else {

                //scrollup

                elem.each(function() {

                    var elemtop = $(this).offset().top;

                    $(this).css({

                        'opaciy': -(currentScrollPosition - elemtop) / 1000,

                        'transform': 'scale(' + Math.abs(currentScrollPosition - elemtop) / 1000 + ')'

                    });

                    /*if (currentScrollPosition < elemtop) {

                        $(this).removeClass('active');

                    }*/

                });

                var elemtop = $(this).offset().top;

                if (elem.last() == elemtop) {

                    // $(this).css({'color','blue'});

                }

            }

            lastScrollTop = currentScrollPosition;

        });

Message permanent page

— Cool

— Hello guys

— Can u guys help me?

— I am making a menu that fetched from JSON

— Well, its resulted as a success

— But i want to make when i click the menu, it will open a new page

— And in that page the data (from other json) will appear based on the menu that i click

— So e.g
this is my menu

1. Menu 1 -> Id 1
2. Menu 2 -> Id 2

this is my page
1. page 1 -> id 1 , menu_id : 1
2. page 2 -> id 2, menu_id : 2

how to make the page based on the menu? i am fail in this step

Message permanent page