server
{
listen 80;
server_name localhost;
charset utf-8;
location /q { //обработка backend...
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
}
location / {
root /home/alex/projects/web/localhost/public;
index index.html;
}
}
function findKeys(object, result){
result = result || []; //Это как необязательный параметр... читайте так findKeys(object, result = [])
var keys = [];
for(var i in object){
if(!object.hasOwnProperty(i))
continue;
keys.push(index);
if($.isObject(value))
findKeys(object, result);
};
result.push(keys);
return result;
}
var data = findKeys(Config);
function findKeys(object, result){
result = result || [];
var keys = [];
$.each(object, function(index, value){
keys.push(index);
if($.isObject(value))
findKeys(object, result);
});
result.push(keys);
return result;
}
var data = findKeys(Config);
if($(window).scrollTop() > $(document).height() - $(window).height() - 50) ...