{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/revolv/pulls/comments/28120544","id":28120544,"diff_hunk":"@@ -0,0 +1,97 @@\n+$(document).ready(function () {\n+\tdraw()\n+});\n+\n+$( window ).resize(function() {\n+    $(\".project-badge-circle-grouping\").remove();\n+    $(\".project-badge-partial-grouping\").remove();\n+    $(\".project-badge-circle\").remove();\n+    $(\".project-badge-line\" ).remove();\n+    $(\".outside-circle\" ).remove();\n+    draw();\n+});\n+\n+var setTextSize = function(radius) {\n+    \n+    var percentage_size = 3*radius/100;\n+    var funded_size = percentage_size*0.5;\n+\n+    // d3.select(\".percentage-text\").attr(\"font-size\", percentage_size + \"rem\")\n+    // d3.select(\".funded\").attr(\"font-size\", funded_size + \"rem\")\n+\n+    d3.select(\".percentage-text\").attr(\"style\", \"font-size:\" + percentage_size + \"rem\")\n+    d3.select(\".funded\").attr(\"font-size\", \"font-size:\" + funded_size + \"rem\")\n+\n+\n+    // percentage_text.css(\"font-size\", percentage_size + \"rem\")\n+    // funded_size.css(\"font-size\", funded_size + \"rem\")\n+}\n+\n+var resizeIframe = function() {\n+    d3.select(\"iframe\").attr(\"height\", $(document).width()*0.4 + \"\")\n+}\n+\n+var draw = function() {\n+    // var radius = 100,\n+    //     padding = 10;\n+\n+\n+    // if ($(document).width() > 200 && $(document).width() < 800) {\n+    //     radius = 48;\n+    // }\n+    var radius = $(document).width()*0.12;\n+    setTextSize(radius)\n+\n+    resizeIframe();\n+\n+    // <circle class=\"outside-circle\" cx=\"50%\" cy=\"50%\" r=\"\" fill=\"white\" />\n+\n+    var outsideCircle = d3.select(\".svg-graphics-container\")\n+        .append(\"circle\")\n+        .attr(\"class\", \"outside-circle\")\n+        .attr(\"cx\", \"50%\")\n+        .attr(\"cy\", \"50%\")\n+        .attr(\"r\", radius + $(document).width() * 0.03 + \"\")\n+        .attr(\"fill\", \"white\")\n+\n+    if (radius > 100){\n+        radius = 100;\n+        outsideCircle.attr(\"r\", 125)\n+    }\n+\n+    if (radius < 60) {\n+        radius = 60;\n+        outsideCircle.attr(\"r\", 75)\n+    }\n+\n+    setTextSize(radius)\n+\n+\n+    var padding = radius*0.1;\n+\n+\n+    // this line will get actual partial completeness\n+    var partialCompleteness = window.PARTIAL_COMPLETENESS;\n+\n+    // use this for test purposes so you can see the progress bar\n+    var partialCompleteness = 0.7;","path":"revolv/static/js/base/project.js","position":77,"original_position":77,"commit_id":"2a57a4343ae64a5ea4a0b6326347109020978279","original_commit_id":"2a57a4343ae64a5ea4a0b6326347109020978279","user":{"login":"noahsark769","id":1168853,"avatar_url":"https://avatars.githubusercontent.com/u/1168853?v=3","gravatar_id":"","url":"https://api.github.com/users/noahsark769","html_url":"https://github.com/noahsark769","followers_url":"https://api.github.com/users/noahsark769/followers","following_url":"https://api.github.com/users/noahsark769/following{/other_user}","gists_url":"https://api.github.com/users/noahsark769/gists{/gist_id}","starred_url":"https://api.github.com/users/noahsark769/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahsark769/subscriptions","organizations_url":"https://api.github.com/users/noahsark769/orgs","repos_url":"https://api.github.com/users/noahsark769/repos","events_url":"https://api.github.com/users/noahsark769/events{/privacy}","received_events_url":"https://api.github.com/users/noahsark769/received_events","type":"User","site_admin":false},"body":"Don't you need to comment this out? -_-","created_at":"2015-04-10T03:18:30Z","updated_at":"2015-04-10T03:18:30Z","html_url":"https://github.com/calblueprint/revolv/pull/212#discussion_r28120544","pull_request_url":"https://api.github.com/repos/calblueprint/revolv/pulls/212","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/comments/28120544"},"html":{"href":"https://github.com/calblueprint/revolv/pull/212#discussion_r28120544"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/revolv/pulls/212","id":32289393,"html_url":"https://github.com/calblueprint/revolv/pull/212","diff_url":"https://github.com/calblueprint/revolv/pull/212.diff","patch_url":"https://github.com/calblueprint/revolv/pull/212.patch","issue_url":"https://api.github.com/repos/calblueprint/revolv/issues/212","number":212,"state":"open","locked":false,"title":"Sameera project page styles","user":{"login":"sameerav","id":7706852,"avatar_url":"https://avatars.githubusercontent.com/u/7706852?v=3","gravatar_id":"","url":"https://api.github.com/users/sameerav","html_url":"https://github.com/sameerav","followers_url":"https://api.github.com/users/sameerav/followers","following_url":"https://api.github.com/users/sameerav/following{/other_user}","gists_url":"https://api.github.com/users/sameerav/gists{/gist_id}","starred_url":"https://api.github.com/users/sameerav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameerav/subscriptions","organizations_url":"https://api.github.com/users/sameerav/orgs","repos_url":"https://api.github.com/users/sameerav/repos","events_url":"https://api.github.com/users/sameerav/events{/privacy}","received_events_url":"https://api.github.com/users/sameerav/received_events","type":"User","site_admin":false},"body":"List of things that still don't work:\r\n\r\n1. The iframe still isn't clickable\r\n2. The top donate button only somehow has half the button being clickable (weird anchor tag positioning). (FIGURED THIS OUT! this is because the modal is covering it, so as soon as the modal thing is fixed this should be good).\r\n3. The donate modal doesn't have a top attribute of 0 when the page is scrolled down, so when we click the donate button at the bottom of the page, it doesn't work.\r\n4. There's a tiny little margin at the top of the project page image.","created_at":"2015-03-31T03:58:03Z","updated_at":"2015-04-10T03:18:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c835ce5933ecafdcd6765846593789d7286d2fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/revolv/pulls/212/commits","review_comments_url":"https://api.github.com/repos/calblueprint/revolv/pulls/212/comments","review_comment_url":"https://api.github.com/repos/calblueprint/revolv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calblueprint/revolv/issues/212/comments","statuses_url":"https://api.github.com/repos/calblueprint/revolv/statuses/2a57a4343ae64a5ea4a0b6326347109020978279","head":{"label":"calblueprint:sameera-project-page-styles","ref":"sameera-project-page-styles","sha":"2a57a4343ae64a5ea4a0b6326347109020978279","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":24279940,"name":"revolv","full_name":"calblueprint/revolv","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/revolv","description":"Crowdfunding application for the npo RE-volv. Travis: https://travis-ci.org/calblueprint/revolv","fork":false,"url":"https://api.github.com/repos/calblueprint/revolv","forks_url":"https://api.github.com/repos/calblueprint/revolv/forks","keys_url":"https://api.github.com/repos/calblueprint/revolv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/revolv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/revolv/teams","hooks_url":"https://api.github.com/repos/calblueprint/revolv/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/revolv/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/revolv/events","assignees_url":"https://api.github.com/repos/calblueprint/revolv/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/revolv/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/revolv/tags","blobs_url":"https://api.github.com/repos/calblueprint/revolv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/revolv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/revolv/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/revolv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/revolv/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/revolv/languages","stargazers_url":"https://api.github.com/repos/calblueprint/revolv/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/revolv/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/revolv/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/revolv/subscription","commits_url":"https://api.github.com/repos/calblueprint/revolv/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/revolv/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/revolv/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/revolv/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/revolv/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/revolv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/revolv/merges","archive_url":"https://api.github.com/repos/calblueprint/revolv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/revolv/downloads","issues_url":"https://api.github.com/repos/calblueprint/revolv/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/revolv/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/revolv/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/revolv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/revolv/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/revolv/releases{/id}","created_at":"2014-09-21T02:30:04Z","updated_at":"2015-04-07T03:14:51Z","pushed_at":"2015-04-09T05:24:53Z","git_url":"git://github.com/calblueprint/revolv.git","ssh_url":"git@github.com:calblueprint/revolv.git","clone_url":"https://github.com/calblueprint/revolv.git","svn_url":"https://github.com/calblueprint/revolv","homepage":"","size":7696,"stargazers_count":9,"watchers_count":9,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":49,"forks":0,"open_issues":49,"watchers":9,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"ce816a288f33a98e88305d9f10ca6a75964653bf","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":24279940,"name":"revolv","full_name":"calblueprint/revolv","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/revolv","description":"Crowdfunding application for the npo RE-volv. Travis: https://travis-ci.org/calblueprint/revolv","fork":false,"url":"https://api.github.com/repos/calblueprint/revolv","forks_url":"https://api.github.com/repos/calblueprint/revolv/forks","keys_url":"https://api.github.com/repos/calblueprint/revolv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/revolv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/revolv/teams","hooks_url":"https://api.github.com/repos/calblueprint/revolv/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/revolv/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/revolv/events","assignees_url":"https://api.github.com/repos/calblueprint/revolv/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/revolv/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/revolv/tags","blobs_url":"https://api.github.com/repos/calblueprint/revolv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/revolv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/revolv/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/revolv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/revolv/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/revolv/languages","stargazers_url":"https://api.github.com/repos/calblueprint/revolv/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/revolv/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/revolv/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/revolv/subscription","commits_url":"https://api.github.com/repos/calblueprint/revolv/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/revolv/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/revolv/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/revolv/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/revolv/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/revolv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/revolv/merges","archive_url":"https://api.github.com/repos/calblueprint/revolv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/revolv/downloads","issues_url":"https://api.github.com/repos/calblueprint/revolv/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/revolv/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/revolv/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/revolv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/revolv/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/revolv/releases{/id}","created_at":"2014-09-21T02:30:04Z","updated_at":"2015-04-07T03:14:51Z","pushed_at":"2015-04-09T05:24:53Z","git_url":"git://github.com/calblueprint/revolv.git","ssh_url":"git@github.com:calblueprint/revolv.git","clone_url":"https://github.com/calblueprint/revolv.git","svn_url":"https://github.com/calblueprint/revolv","homepage":"","size":7696,"stargazers_count":9,"watchers_count":9,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":49,"forks":0,"open_issues":49,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/212"},"html":{"href":"https://github.com/calblueprint/revolv/pull/212"},"issue":{"href":"https://api.github.com/repos/calblueprint/revolv/issues/212"},"comments":{"href":"https://api.github.com/repos/calblueprint/revolv/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/revolv/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/revolv/statuses/2a57a4343ae64a5ea4a0b6326347109020978279"}}}}