{"action":"created","comment":{"url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/comments/84669540","pull_request_review_id":5431510,"id":84669540,"diff_hunk":"@@ -1,2 +1,46 @@\n \n+import Dropdown from 'scripts/components/dropdown.component';\n+\n import 'styles/homepage.scss';\n+\n+const defaults = {\n+  commodity: 'Soy',\n+  country: 'Brazil'\n+};\n+\n+const _setMap = function() {\n+  const imagesItem = document.querySelectorAll('.map-gallery-item');\n+  const commodity = defaults.commodity.toLowerCase();\n+  const country = defaults.country.toLowerCase();\n+  const imageName = `${commodity}-${country}`;\n+\n+  imagesItem.forEach((imageItem) => {\n+    if (imageItem.getAttribute('data-image-name') === imageName) {\n+      imageItem.classList.remove('is-hidden');\n+    } else {\n+      if (!imageItem.classList.contains('is-hidden')) {\n+        imageItem.classList.add('is-hidden');","path":"scripts/pages/index.page.js","position":22,"original_position":22,"commit_id":"8b06d2ae0c6985869b872de5bebc5d77ba424181","original_commit_id":"8b06d2ae0c6985869b872de5bebc5d77ba424181","user":{"login":"nerik","id":1583415,"avatar_url":"https://avatars.githubusercontent.com/u/1583415?v=3","gravatar_id":"","url":"https://api.github.com/users/nerik","html_url":"https://github.com/nerik","followers_url":"https://api.github.com/users/nerik/followers","following_url":"https://api.github.com/users/nerik/following{/other_user}","gists_url":"https://api.github.com/users/nerik/gists{/gist_id}","starred_url":"https://api.github.com/users/nerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerik/subscriptions","organizations_url":"https://api.github.com/users/nerik/orgs","repos_url":"https://api.github.com/users/nerik/repos","events_url":"https://api.github.com/users/nerik/events{/privacy}","received_events_url":"https://api.github.com/users/nerik/received_events","type":"User","site_admin":false},"body":"Ref https://developer.mozilla.org/en/docs/Web/API/Element/classList","created_at":"2016-10-24T11:45:44Z","updated_at":"2016-10-24T11:45:44Z","html_url":"https://github.com/Vizzuality/TRASE-frontend/pull/59#discussion_r84669540","pull_request_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/comments/84669540"},"html":{"href":"https://github.com/Vizzuality/TRASE-frontend/pull/59#discussion_r84669540"},"pull_request":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59","id":90585553,"html_url":"https://github.com/Vizzuality/TRASE-frontend/pull/59","diff_url":"https://github.com/Vizzuality/TRASE-frontend/pull/59.diff","patch_url":"https://github.com/Vizzuality/TRASE-frontend/pull/59.patch","issue_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/59","number":59,"state":"open","locked":false,"title":"Feature/homepage page","user":{"login":"andresgnlez","id":999124,"avatar_url":"https://avatars.githubusercontent.com/u/999124?v=3","gravatar_id":"","url":"https://api.github.com/users/andresgnlez","html_url":"https://github.com/andresgnlez","followers_url":"https://api.github.com/users/andresgnlez/followers","following_url":"https://api.github.com/users/andresgnlez/following{/other_user}","gists_url":"https://api.github.com/users/andresgnlez/gists{/gist_id}","starred_url":"https://api.github.com/users/andresgnlez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresgnlez/subscriptions","organizations_url":"https://api.github.com/users/andresgnlez/orgs","repos_url":"https://api.github.com/users/andresgnlez/repos","events_url":"https://api.github.com/users/andresgnlez/events{/privacy}","received_events_url":"https://api.github.com/users/andresgnlez/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-24T10:26:16Z","updated_at":"2016-10-24T11:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"789c84e1d95725814084454d42b0454060576b34","assignee":{"login":"nerik","id":1583415,"avatar_url":"https://avatars.githubusercontent.com/u/1583415?v=3","gravatar_id":"","url":"https://api.github.com/users/nerik","html_url":"https://github.com/nerik","followers_url":"https://api.github.com/users/nerik/followers","following_url":"https://api.github.com/users/nerik/following{/other_user}","gists_url":"https://api.github.com/users/nerik/gists{/gist_id}","starred_url":"https://api.github.com/users/nerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerik/subscriptions","organizations_url":"https://api.github.com/users/nerik/orgs","repos_url":"https://api.github.com/users/nerik/repos","events_url":"https://api.github.com/users/nerik/events{/privacy}","received_events_url":"https://api.github.com/users/nerik/received_events","type":"User","site_admin":false},"assignees":[{"login":"nerik","id":1583415,"avatar_url":"https://avatars.githubusercontent.com/u/1583415?v=3","gravatar_id":"","url":"https://api.github.com/users/nerik","html_url":"https://github.com/nerik","followers_url":"https://api.github.com/users/nerik/followers","following_url":"https://api.github.com/users/nerik/following{/other_user}","gists_url":"https://api.github.com/users/nerik/gists{/gist_id}","starred_url":"https://api.github.com/users/nerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerik/subscriptions","organizations_url":"https://api.github.com/users/nerik/orgs","repos_url":"https://api.github.com/users/nerik/repos","events_url":"https://api.github.com/users/nerik/events{/privacy}","received_events_url":"https://api.github.com/users/nerik/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59/comments","review_comment_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/59/comments","statuses_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/statuses/8b06d2ae0c6985869b872de5bebc5d77ba424181","head":{"label":"Vizzuality:feature/homepage-page","ref":"feature/homepage-page","sha":"8b06d2ae0c6985869b872de5bebc5d77ba424181","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":63682554,"name":"TRASE-frontend","full_name":"Vizzuality/TRASE-frontend","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/TRASE-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Vizzuality/TRASE-frontend","forks_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/forks","keys_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/teams","hooks_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/events","assignees_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/tags","blobs_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/subscription","commits_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/merges","archive_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/downloads","issues_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/deployments","created_at":"2016-07-19T09:57:10Z","updated_at":"2016-07-20T15:42:25Z","pushed_at":"2016-10-24T10:26:16Z","git_url":"git://github.com/Vizzuality/TRASE-frontend.git","ssh_url":"git@github.com:Vizzuality/TRASE-frontend.git","clone_url":"https://github.com/Vizzuality/TRASE-frontend.git","svn_url":"https://github.com/Vizzuality/TRASE-frontend","homepage":null,"size":3199,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"develop"}},"base":{"label":"Vizzuality:develop","ref":"develop","sha":"36993c9c35ae802cf7e15678cade7548cb7528df","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":63682554,"name":"TRASE-frontend","full_name":"Vizzuality/TRASE-frontend","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/TRASE-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Vizzuality/TRASE-frontend","forks_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/forks","keys_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/teams","hooks_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/events","assignees_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/tags","blobs_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/subscription","commits_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/merges","archive_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/downloads","issues_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/TRASE-frontend/deployments","created_at":"2016-07-19T09:57:10Z","updated_at":"2016-07-20T15:42:25Z","pushed_at":"2016-10-24T10:26:16Z","git_url":"git://github.com/Vizzuality/TRASE-frontend.git","ssh_url":"git@github.com:Vizzuality/TRASE-frontend.git","clone_url":"https://github.com/Vizzuality/TRASE-frontend.git","svn_url":"https://github.com/Vizzuality/TRASE-frontend","homepage":null,"size":3199,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59"},"html":{"href":"https://github.com/Vizzuality/TRASE-frontend/pull/59"},"issue":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/59"},"comments":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/Vizzuality/TRASE-frontend/statuses/8b06d2ae0c6985869b872de5bebc5d77ba424181"}}}}
{"actor":{"display_login":"nerik"}}