$(document).ready(function() { $('#about').hide(); $('#wtf > a:first-child').click(function() { $('#about').slideToggle(); }); }); window.onload = function() { $.getJSON("data/search.json", function(json){ /*for(j = 0; j < json.results.length; j++) { if( json.results[j].from_user == 'Serif' ) { console.log(json.results[j].text); } }*/ for(i = 0; i < json.results.length; i++) { $('#wrapper').append( '
' + json.results[i].text + '' + '— ' + json.results[i].from_user + '' + '