{"action":"created","comment":{"url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/comments/43528287","id":43528287,"diff_hunk":"@@ -0,0 +1,61 @@\n+(function(exports) {\n+\n+\tvar Accordion = function() {\n+\t\tthis.accordionButtons = document.querySelectorAll('[accordion-button]');\n+  };\n+\n+  Accordion.prototype = {\n+  \t/**\n+     * Used to traverse up the DOM tree to find a parent with \n+     * the a specific attribute\n+     *\n+     * @param String parentAttr\n+     * @param Object childObj\n+     * @return Obj\n+     */\n+  \tfindParentNode: function (parentAttr, childObj) {\n+\t    var obj = childObj.parentNode;\n+\n+\t    while(obj.getAttribute(parentAttr)) {\n+\t        obj = obj.parentNode;\n+\t    }\n+\t    return obj; \n+\t  },\n+\t  /**\n+     * Triggered by a click handler \n+     * finds a parent node and toggles the 'accordion-open' attribute\n+     *\n+     * @return void\n+     */\n+\t  toggleAccordion: function (statusAll) {\n+\t\t\tvar e = e || window.event;\n+\t    var target = e.target || e.srcElement;\n+\n+\t    var accordionItem = this.findParentNode('accordion-item', target),\n+\t\t\t\taccordionStatus = accordionItem.getAttribute('accordion-open');\n+\n+\t\t\taccordionStatus = (accordionStatus == 'true') ? 'false' : 'true';\n+\n+\t\t\taccordionItem.setAttribute('accordion-open', accordionStatus);\n+\t\t},\n+\t\t/**\n+     * Event handler that binds \n+     * to the toggleAccordion function\n+     *\n+     * @return void\n+     */\n+\t\tregisterEventListeners: function () {\n+\t\t\tfor (var i = 0; i < this.accordionButtons.length; i++) {\n+\t\t\t\tthis.accordionButtons[i].addEventListener(\"click\", this.toggleAccordion.bind(this));\n+\t\t\t\tif (i != 0) {\n+\t\t\t\t\tthis.accordionButtons[i].click();\n+\t\t\t\t}\n+\t\t\t};","path":"js/components/accordion.js","position":53,"original_position":53,"commit_id":"a16adfe3613579334c2ca3767f6aa18e600a5d9d","original_commit_id":"a16adfe3613579334c2ca3767f6aa18e600a5d9d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unnecessary semicolon.","created_at":"2015-10-30T17:20:05Z","updated_at":"2015-10-30T17:20:05Z","html_url":"https://github.com/18F/doi-extractives-data/pull/691#discussion_r43528287","pull_request_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691","_links":{"self":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/comments/43528287"},"html":{"href":"https://github.com/18F/doi-extractives-data/pull/691#discussion_r43528287"},"pull_request":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691"}}},"pull_request":{"url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691","id":49297556,"html_url":"https://github.com/18F/doi-extractives-data/pull/691","diff_url":"https://github.com/18F/doi-extractives-data/pull/691.diff","patch_url":"https://github.com/18F/doi-extractives-data/pull/691.patch","issue_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/691","number":691,"state":"open","locked":false,"title":"[WIP] Update Diving Graphics","user":{"login":"gemfarmer","id":4803473,"avatar_url":"https://avatars.githubusercontent.com/u/4803473?v=3","gravatar_id":"","url":"https://api.github.com/users/gemfarmer","html_url":"https://github.com/gemfarmer","followers_url":"https://api.github.com/users/gemfarmer/followers","following_url":"https://api.github.com/users/gemfarmer/following{/other_user}","gists_url":"https://api.github.com/users/gemfarmer/gists{/gist_id}","starred_url":"https://api.github.com/users/gemfarmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemfarmer/subscriptions","organizations_url":"https://api.github.com/users/gemfarmer/orgs","repos_url":"https://api.github.com/users/gemfarmer/repos","events_url":"https://api.github.com/users/gemfarmer/events{/privacy}","received_events_url":"https://api.github.com/users/gemfarmer/received_events","type":"User","site_admin":false},"body":"I am in the process of updating the diving graphics for the resources to revenues subpages.\r\n\r\nThis pull directly addresses #669 \r\n\r\nBefore the PR, the \"diving graphics\" existed as full width background images that were intended to fully wrap the Revenues \"Steps\", but due to the length of the text, the image became too short and did not look as intended\r\n\r\nWhat it this PR does:\r\n- updates the scss for the revenues pages\r\n- breaks apart revenues templates into a series of includes\r\n- re-envisions the diving graphic. I broke the background image into three parts: top, bottom, and middle. The top and bottom are background images, aligned top and bottom, and the middle (a simple vertically-repeating pattern) expands or contracts with each breakpoint to ensure that the background image has a full cover\r\n","created_at":"2015-10-30T17:19:48Z","updated_at":"2015-10-30T17:20:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691/commits","review_comments_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691/comments","review_comment_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/691/comments","statuses_url":"https://api.github.com/repos/18F/doi-extractives-data/statuses/a16adfe3613579334c2ca3767f6aa18e600a5d9d","head":{"label":"18F:bh-diving-graphics","ref":"bh-diving-graphics","sha":"a16adfe3613579334c2ca3767f6aa18e600a5d9d","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":21627244,"name":"doi-extractives-data","full_name":"18F/doi-extractives-data","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/doi-extractives-data","description":"Information on the extractive industries in the U.S. from Federal data.","fork":false,"url":"https://api.github.com/repos/18F/doi-extractives-data","forks_url":"https://api.github.com/repos/18F/doi-extractives-data/forks","keys_url":"https://api.github.com/repos/18F/doi-extractives-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/doi-extractives-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/doi-extractives-data/teams","hooks_url":"https://api.github.com/repos/18F/doi-extractives-data/hooks","issue_events_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/events{/number}","events_url":"https://api.github.com/repos/18F/doi-extractives-data/events","assignees_url":"https://api.github.com/repos/18F/doi-extractives-data/assignees{/user}","branches_url":"https://api.github.com/repos/18F/doi-extractives-data/branches{/branch}","tags_url":"https://api.github.com/repos/18F/doi-extractives-data/tags","blobs_url":"https://api.github.com/repos/18F/doi-extractives-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/doi-extractives-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/doi-extractives-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/doi-extractives-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/doi-extractives-data/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/doi-extractives-data/languages","stargazers_url":"https://api.github.com/repos/18F/doi-extractives-data/stargazers","contributors_url":"https://api.github.com/repos/18F/doi-extractives-data/contributors","subscribers_url":"https://api.github.com/repos/18F/doi-extractives-data/subscribers","subscription_url":"https://api.github.com/repos/18F/doi-extractives-data/subscription","commits_url":"https://api.github.com/repos/18F/doi-extractives-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/doi-extractives-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/doi-extractives-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/doi-extractives-data/contents/{+path}","compare_url":"https://api.github.com/repos/18F/doi-extractives-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/doi-extractives-data/merges","archive_url":"https://api.github.com/repos/18F/doi-extractives-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/doi-extractives-data/downloads","issues_url":"https://api.github.com/repos/18F/doi-extractives-data/issues{/number}","pulls_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/doi-extractives-data/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/doi-extractives-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/doi-extractives-data/labels{/name}","releases_url":"https://api.github.com/repos/18F/doi-extractives-data/releases{/id}","created_at":"2014-07-08T19:44:18Z","updated_at":"2015-10-29T19:44:17Z","pushed_at":"2015-10-30T17:19:49Z","git_url":"git://github.com/18F/doi-extractives-data.git","ssh_url":"git@github.com:18F/doi-extractives-data.git","clone_url":"https://github.com/18F/doi-extractives-data.git","svn_url":"https://github.com/18F/doi-extractives-data","homepage":"https://useiti.doi.gov/","size":187299,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":80,"forks":1,"open_issues":80,"watchers":9,"default_branch":"dev"}},"base":{"label":"18F:dev","ref":"dev","sha":"628caf84c0c022a94ca0d2b61066bd99b3309c86","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":21627244,"name":"doi-extractives-data","full_name":"18F/doi-extractives-data","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/doi-extractives-data","description":"Information on the extractive industries in the U.S. from Federal data.","fork":false,"url":"https://api.github.com/repos/18F/doi-extractives-data","forks_url":"https://api.github.com/repos/18F/doi-extractives-data/forks","keys_url":"https://api.github.com/repos/18F/doi-extractives-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/doi-extractives-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/doi-extractives-data/teams","hooks_url":"https://api.github.com/repos/18F/doi-extractives-data/hooks","issue_events_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/events{/number}","events_url":"https://api.github.com/repos/18F/doi-extractives-data/events","assignees_url":"https://api.github.com/repos/18F/doi-extractives-data/assignees{/user}","branches_url":"https://api.github.com/repos/18F/doi-extractives-data/branches{/branch}","tags_url":"https://api.github.com/repos/18F/doi-extractives-data/tags","blobs_url":"https://api.github.com/repos/18F/doi-extractives-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/doi-extractives-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/doi-extractives-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/doi-extractives-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/doi-extractives-data/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/doi-extractives-data/languages","stargazers_url":"https://api.github.com/repos/18F/doi-extractives-data/stargazers","contributors_url":"https://api.github.com/repos/18F/doi-extractives-data/contributors","subscribers_url":"https://api.github.com/repos/18F/doi-extractives-data/subscribers","subscription_url":"https://api.github.com/repos/18F/doi-extractives-data/subscription","commits_url":"https://api.github.com/repos/18F/doi-extractives-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/doi-extractives-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/doi-extractives-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/doi-extractives-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/doi-extractives-data/contents/{+path}","compare_url":"https://api.github.com/repos/18F/doi-extractives-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/doi-extractives-data/merges","archive_url":"https://api.github.com/repos/18F/doi-extractives-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/doi-extractives-data/downloads","issues_url":"https://api.github.com/repos/18F/doi-extractives-data/issues{/number}","pulls_url":"https://api.github.com/repos/18F/doi-extractives-data/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/doi-extractives-data/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/doi-extractives-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/doi-extractives-data/labels{/name}","releases_url":"https://api.github.com/repos/18F/doi-extractives-data/releases{/id}","created_at":"2014-07-08T19:44:18Z","updated_at":"2015-10-29T19:44:17Z","pushed_at":"2015-10-30T17:19:49Z","git_url":"git://github.com/18F/doi-extractives-data.git","ssh_url":"git@github.com:18F/doi-extractives-data.git","clone_url":"https://github.com/18F/doi-extractives-data.git","svn_url":"https://github.com/18F/doi-extractives-data","homepage":"https://useiti.doi.gov/","size":187299,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":80,"forks":1,"open_issues":80,"watchers":9,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691"},"html":{"href":"https://github.com/18F/doi-extractives-data/pull/691"},"issue":{"href":"https://api.github.com/repos/18F/doi-extractives-data/issues/691"},"comments":{"href":"https://api.github.com/repos/18F/doi-extractives-data/issues/691/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/doi-extractives-data/pulls/691/commits"},"statuses":{"href":"https://api.github.com/repos/18F/doi-extractives-data/statuses/a16adfe3613579334c2ca3767f6aa18e600a5d9d"}}}}