From 151411cf0b452238f36cb24870a69aff9d3974b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7=20Muntaner?= Date: Wed, 13 Jul 2016 08:58:43 +0200 Subject: [PATCH] Fix pokemon url --- poke_memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poke_memory.js b/poke_memory.js index 077c1fc..6c5df27 100644 --- a/poke_memory.js +++ b/poke_memory.js @@ -14,7 +14,7 @@ $(function () { $('.cell').on('click', function (event) { var cell = $(event.currentTarget); var id = cell.data('row') + "" + cell.data('col'); - var url = 'http://pokeapi.co/api/v2/pokemon/' + id; + var url = 'http://pokeapi.co/api/v2/pokemon/' + id + '/'; var interval = setInterval(function () { cell.toggleClass('active'); }, 300)