Answer the question
In order to leave comments, you need to log in
Why does Nginx build fail ("make[1]: Leaving directory")?
Good afternoon
I get an error when building Nginx from sorts on Ubuntu 14.04
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/ ngx_modules.o \
-lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz
make[1]: Leaving directory `/home/vagrant/working/nginx-1.7.5'
make -f objs/Makefile manpage
make[1]: Entering directory `/home/vagrant/working/nginx-1.7.5'
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e"
< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/home/vagrant/working/nginx-1.7.5'
Answer the question
In order to leave comments, you need to log in
$('li').click(function(){
var target = $(this).find('a').attr('data-value');
$(bodyHtml).animate({
scrollTop:$('#' + target).offset().top
},1500);
});
Look at the console. You are complaining about this line
those. this element does not exist $('#' + $(this).data('value'))
change to
those. the problem is that you listen to the click on the li, take the data-value from it, although you have the data-value in the a tag, which is inside the li. Therefore option 2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question