{"action":"created","comment":{"url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/comments/45151976","id":45151976,"diff_hunk":"@@ -0,0 +1,58 @@\n+app.directive 'expandingBox', ($timeout, $state) ->\n+  restrict: 'E'\n+  templateUrl: 'expanding-box.html'\n+  scope:\n+    technology: '='\n+  link: (scope, element, attrs) ->\n+    box = element.children()\n+    box.css 'background', \"url('#{scope.technology.logoUrl}') no-repeat center\"\n+    box.css 'background-size', \"150px\"\n+\n+    element.on 'click', (event) ->\n+      box = element.children()\n+      newBox = box.clone()\n+\n+      boxWidth = box.prop 'offsetWidth'\n+      boxHeight = box.prop 'offsetHeight'\n+      boxLeftOffset = box.prop 'offsetLeft'\n+      boxTopOffset = box.prop 'offsetTop'\n+      margin = 5 # TODO retrieve actual margin\n+\n+      parent = element.parent()\n+      parent.append newBox\n+\n+      body = angular.element(document).find 'body'\n+      bodyWidth = body.prop 'offsetWidth'\n+      bodyHeight = body.prop 'offsetHeight'\n+      parentOffsetLeft = parent.prop 'offsetLeft'\n+      parentOffsetTop = parent.prop 'offsetTop'\n+\n+      leftTranslation = boxLeftOffset\n+      topTranslation = boxTopOffset\n+\n+      box.css \"border\", \"none\"\n+      box.css \"box-shadow\", \"none\"\n+\n+      newBox.empty()\n+      newBox.removeClass 'col-xs-2'\n+      newBox.addClass 'col-xs-12'\n+      newBox.css \"background\", \"#fff\"\n+      newBox.css \"border\", \"none\"\n+      newBox.css \"box-shadow\", \"none\"\n+      newBox.css \"z-index\", \"100\"\n+\n+      newBox.css \"position\", \"absolute\"\n+      newBox.css \"left\", \"#{boxLeftOffset-margin}px\";\n+      newBox.css \"top\", \"#{boxTopOffset-margin}px\";\n+\n+      newBox.css \"z-index\", \"100\"\n+      newBox.css \"border\", \"none\"\n+      newBox.css \"width\", \"#{bodyWidth}px\"\n+      newBox.css \"height\", \"#{bodyHeight}px\"\n+      newBox.css \"transform\", \"translate(#{-leftTranslation}px,#{-topTranslation}px)\"\n+      newBox.css \"transition\",\"all 1s\"\n+\n+      # we must wait for animation to end before changing state (maybe there is a better solution)\n+      $timeout ( ->\n+        $state.go 'technology', id: scope.technology.objectId","path":"src-public/directives/expanding-box.coffee","position":null,"original_position":57,"commit_id":"4589843e140f4c4a11e8ac3457db75aaf383a93a","original_commit_id":"5e6c40523718d21cfebfd62b3912a0190474c279","user":{"login":"tib-tib","id":10576609,"avatar_url":"https://avatars.githubusercontent.com/u/10576609?v=3","gravatar_id":"","url":"https://api.github.com/users/tib-tib","html_url":"https://github.com/tib-tib","followers_url":"https://api.github.com/users/tib-tib/followers","following_url":"https://api.github.com/users/tib-tib/following{/other_user}","gists_url":"https://api.github.com/users/tib-tib/gists{/gist_id}","starred_url":"https://api.github.com/users/tib-tib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tib-tib/subscriptions","organizations_url":"https://api.github.com/users/tib-tib/orgs","repos_url":"https://api.github.com/users/tib-tib/repos","events_url":"https://api.github.com/users/tib-tib/events{/privacy}","received_events_url":"https://api.github.com/users/tib-tib/received_events","type":"User","site_admin":false},"body":"@nicgirault done !","created_at":"2015-11-18T02:16:20Z","updated_at":"2015-11-18T02:16:20Z","html_url":"https://github.com/nicgirault/web-tech-list/pull/6#discussion_r45151976","pull_request_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/comments/45151976"},"html":{"href":"https://github.com/nicgirault/web-tech-list/pull/6#discussion_r45151976"},"pull_request":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6","id":50871666,"html_url":"https://github.com/nicgirault/web-tech-list/pull/6","diff_url":"https://github.com/nicgirault/web-tech-list/pull/6.diff","patch_url":"https://github.com/nicgirault/web-tech-list/pull/6.patch","issue_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/6","number":6,"state":"open","locked":false,"title":"26 add animated grid","user":{"login":"tib-tib","id":10576609,"avatar_url":"https://avatars.githubusercontent.com/u/10576609?v=3","gravatar_id":"","url":"https://api.github.com/users/tib-tib","html_url":"https://github.com/tib-tib","followers_url":"https://api.github.com/users/tib-tib/followers","following_url":"https://api.github.com/users/tib-tib/following{/other_user}","gists_url":"https://api.github.com/users/tib-tib/gists{/gist_id}","starred_url":"https://api.github.com/users/tib-tib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tib-tib/subscriptions","organizations_url":"https://api.github.com/users/tib-tib/orgs","repos_url":"https://api.github.com/users/tib-tib/repos","events_url":"https://api.github.com/users/tib-tib/events{/privacy}","received_events_url":"https://api.github.com/users/tib-tib/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T21:53:43Z","updated_at":"2015-11-18T02:16:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bca444131c6577c84711cf8c8ccec5adfd3f1277","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6/commits","review_comments_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6/comments","review_comment_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/6/comments","statuses_url":"https://api.github.com/repos/nicgirault/web-tech-list/statuses/4589843e140f4c4a11e8ac3457db75aaf383a93a","head":{"label":"nicgirault:26-add-animated-grid","ref":"26-add-animated-grid","sha":"4589843e140f4c4a11e8ac3457db75aaf383a93a","user":{"login":"nicgirault","id":551837,"avatar_url":"https://avatars.githubusercontent.com/u/551837?v=3","gravatar_id":"","url":"https://api.github.com/users/nicgirault","html_url":"https://github.com/nicgirault","followers_url":"https://api.github.com/users/nicgirault/followers","following_url":"https://api.github.com/users/nicgirault/following{/other_user}","gists_url":"https://api.github.com/users/nicgirault/gists{/gist_id}","starred_url":"https://api.github.com/users/nicgirault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicgirault/subscriptions","organizations_url":"https://api.github.com/users/nicgirault/orgs","repos_url":"https://api.github.com/users/nicgirault/repos","events_url":"https://api.github.com/users/nicgirault/events{/privacy}","received_events_url":"https://api.github.com/users/nicgirault/received_events","type":"User","site_admin":false},"repo":{"id":44706154,"name":"web-tech-list","full_name":"nicgirault/web-tech-list","owner":{"login":"nicgirault","id":551837,"avatar_url":"https://avatars.githubusercontent.com/u/551837?v=3","gravatar_id":"","url":"https://api.github.com/users/nicgirault","html_url":"https://github.com/nicgirault","followers_url":"https://api.github.com/users/nicgirault/followers","following_url":"https://api.github.com/users/nicgirault/following{/other_user}","gists_url":"https://api.github.com/users/nicgirault/gists{/gist_id}","starred_url":"https://api.github.com/users/nicgirault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicgirault/subscriptions","organizations_url":"https://api.github.com/users/nicgirault/orgs","repos_url":"https://api.github.com/users/nicgirault/repos","events_url":"https://api.github.com/users/nicgirault/events{/privacy}","received_events_url":"https://api.github.com/users/nicgirault/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicgirault/web-tech-list","description":"","fork":false,"url":"https://api.github.com/repos/nicgirault/web-tech-list","forks_url":"https://api.github.com/repos/nicgirault/web-tech-list/forks","keys_url":"https://api.github.com/repos/nicgirault/web-tech-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicgirault/web-tech-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicgirault/web-tech-list/teams","hooks_url":"https://api.github.com/repos/nicgirault/web-tech-list/hooks","issue_events_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/events{/number}","events_url":"https://api.github.com/repos/nicgirault/web-tech-list/events","assignees_url":"https://api.github.com/repos/nicgirault/web-tech-list/assignees{/user}","branches_url":"https://api.github.com/repos/nicgirault/web-tech-list/branches{/branch}","tags_url":"https://api.github.com/repos/nicgirault/web-tech-list/tags","blobs_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicgirault/web-tech-list/statuses/{sha}","languages_url":"https://api.github.com/repos/nicgirault/web-tech-list/languages","stargazers_url":"https://api.github.com/repos/nicgirault/web-tech-list/stargazers","contributors_url":"https://api.github.com/repos/nicgirault/web-tech-list/contributors","subscribers_url":"https://api.github.com/repos/nicgirault/web-tech-list/subscribers","subscription_url":"https://api.github.com/repos/nicgirault/web-tech-list/subscription","commits_url":"https://api.github.com/repos/nicgirault/web-tech-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicgirault/web-tech-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicgirault/web-tech-list/contents/{+path}","compare_url":"https://api.github.com/repos/nicgirault/web-tech-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicgirault/web-tech-list/merges","archive_url":"https://api.github.com/repos/nicgirault/web-tech-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicgirault/web-tech-list/downloads","issues_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues{/number}","pulls_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls{/number}","milestones_url":"https://api.github.com/repos/nicgirault/web-tech-list/milestones{/number}","notifications_url":"https://api.github.com/repos/nicgirault/web-tech-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicgirault/web-tech-list/labels{/name}","releases_url":"https://api.github.com/repos/nicgirault/web-tech-list/releases{/id}","created_at":"2015-10-21T21:39:23Z","updated_at":"2015-10-21T21:40:30Z","pushed_at":"2015-11-18T02:15:40Z","git_url":"git://github.com/nicgirault/web-tech-list.git","ssh_url":"git@github.com:nicgirault/web-tech-list.git","clone_url":"https://github.com/nicgirault/web-tech-list.git","svn_url":"https://github.com/nicgirault/web-tech-list","homepage":null,"size":548,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"nicgirault:master","ref":"master","sha":"91ca57e8953a078a13f52e32acbf25425344e86e","user":{"login":"nicgirault","id":551837,"avatar_url":"https://avatars.githubusercontent.com/u/551837?v=3","gravatar_id":"","url":"https://api.github.com/users/nicgirault","html_url":"https://github.com/nicgirault","followers_url":"https://api.github.com/users/nicgirault/followers","following_url":"https://api.github.com/users/nicgirault/following{/other_user}","gists_url":"https://api.github.com/users/nicgirault/gists{/gist_id}","starred_url":"https://api.github.com/users/nicgirault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicgirault/subscriptions","organizations_url":"https://api.github.com/users/nicgirault/orgs","repos_url":"https://api.github.com/users/nicgirault/repos","events_url":"https://api.github.com/users/nicgirault/events{/privacy}","received_events_url":"https://api.github.com/users/nicgirault/received_events","type":"User","site_admin":false},"repo":{"id":44706154,"name":"web-tech-list","full_name":"nicgirault/web-tech-list","owner":{"login":"nicgirault","id":551837,"avatar_url":"https://avatars.githubusercontent.com/u/551837?v=3","gravatar_id":"","url":"https://api.github.com/users/nicgirault","html_url":"https://github.com/nicgirault","followers_url":"https://api.github.com/users/nicgirault/followers","following_url":"https://api.github.com/users/nicgirault/following{/other_user}","gists_url":"https://api.github.com/users/nicgirault/gists{/gist_id}","starred_url":"https://api.github.com/users/nicgirault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicgirault/subscriptions","organizations_url":"https://api.github.com/users/nicgirault/orgs","repos_url":"https://api.github.com/users/nicgirault/repos","events_url":"https://api.github.com/users/nicgirault/events{/privacy}","received_events_url":"https://api.github.com/users/nicgirault/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicgirault/web-tech-list","description":"","fork":false,"url":"https://api.github.com/repos/nicgirault/web-tech-list","forks_url":"https://api.github.com/repos/nicgirault/web-tech-list/forks","keys_url":"https://api.github.com/repos/nicgirault/web-tech-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicgirault/web-tech-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicgirault/web-tech-list/teams","hooks_url":"https://api.github.com/repos/nicgirault/web-tech-list/hooks","issue_events_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/events{/number}","events_url":"https://api.github.com/repos/nicgirault/web-tech-list/events","assignees_url":"https://api.github.com/repos/nicgirault/web-tech-list/assignees{/user}","branches_url":"https://api.github.com/repos/nicgirault/web-tech-list/branches{/branch}","tags_url":"https://api.github.com/repos/nicgirault/web-tech-list/tags","blobs_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicgirault/web-tech-list/statuses/{sha}","languages_url":"https://api.github.com/repos/nicgirault/web-tech-list/languages","stargazers_url":"https://api.github.com/repos/nicgirault/web-tech-list/stargazers","contributors_url":"https://api.github.com/repos/nicgirault/web-tech-list/contributors","subscribers_url":"https://api.github.com/repos/nicgirault/web-tech-list/subscribers","subscription_url":"https://api.github.com/repos/nicgirault/web-tech-list/subscription","commits_url":"https://api.github.com/repos/nicgirault/web-tech-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicgirault/web-tech-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicgirault/web-tech-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicgirault/web-tech-list/contents/{+path}","compare_url":"https://api.github.com/repos/nicgirault/web-tech-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicgirault/web-tech-list/merges","archive_url":"https://api.github.com/repos/nicgirault/web-tech-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicgirault/web-tech-list/downloads","issues_url":"https://api.github.com/repos/nicgirault/web-tech-list/issues{/number}","pulls_url":"https://api.github.com/repos/nicgirault/web-tech-list/pulls{/number}","milestones_url":"https://api.github.com/repos/nicgirault/web-tech-list/milestones{/number}","notifications_url":"https://api.github.com/repos/nicgirault/web-tech-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicgirault/web-tech-list/labels{/name}","releases_url":"https://api.github.com/repos/nicgirault/web-tech-list/releases{/id}","created_at":"2015-10-21T21:39:23Z","updated_at":"2015-10-21T21:40:30Z","pushed_at":"2015-11-18T02:15:40Z","git_url":"git://github.com/nicgirault/web-tech-list.git","ssh_url":"git@github.com:nicgirault/web-tech-list.git","clone_url":"https://github.com/nicgirault/web-tech-list.git","svn_url":"https://github.com/nicgirault/web-tech-list","homepage":null,"size":548,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6"},"html":{"href":"https://github.com/nicgirault/web-tech-list/pull/6"},"issue":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/issues/6"},"comments":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/nicgirault/web-tech-list/statuses/4589843e140f4c4a11e8ac3457db75aaf383a93a"}}}}