From a682772fed5a6f63f998d24fd7fdc08d05ec3991 Mon Sep 17 00:00:00 2001 From: Allen Zhang <1124796703@qq.com> Date: Sat, 4 Apr 2020 21:12:34 -0700 Subject: [PATCH] Patched 2-1 --- 2-1/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-1/script.js b/2-1/script.js index 4d98451..9e63236 100644 --- a/2-1/script.js +++ b/2-1/script.js @@ -9,7 +9,7 @@ $(document).ready(function() { var masterLocation; var search_term = 'devmountain'; function setupApi() { - var masterLocation = 'http://devmounta.in?q='+search_term; + masterLocation = 'http://devmounta.in?q='+search_term; $(document).ajaxError(function(e, xhr, settings, thrown) { console.log("Ajax ERROR", xhr, settings, thrown); }) @@ -17,7 +17,7 @@ $(document).ready(function() { setupApi(); $._get(masterLocation, function(data) { $.each(data.results, function(index, tweet) { - $('#results').append('

'+this.tweet+'

'); + $('#results').append('

'+tweet+'

'); }); }); }); \ No newline at end of file