diff --git a/js/landing.js b/js/landing.js index dee9070..993884a 100644 --- a/js/landing.js +++ b/js/landing.js @@ -90,6 +90,16 @@ function insertSearchResults(error, results) { var filler = Mustache.render(template, results); $("#result-wrapper").append(filler); + + document.getElementById('link-' + results.proj_name).onclick = function() { + loadDetail(results.proj_name); + }; + document.getElementById('btn-' + results.proj_name).onclick = function() { + loadDetail(results.proj_name); + }; + document.getElementById('photo-' + results.proj_name).onclick = function() { + loadDetail(results.proj_name); + }; } function clearSearchResults() { diff --git a/sections/landing.html b/sections/landing.html index 5b4072d..b26526d 100644 --- a/sections/landing.html +++ b/sections/landing.html @@ -18,7 +18,7 @@
-
+