{"action":"created","comment":{"url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/comments/82797097","pull_request_review_id":3678876,"id":82797097,"diff_hunk":"@@ -0,0 +1,48 @@\n+// Counts down the remaining time to next_meetup specified below, and puts output in <div id=\"countdown\">\n+\n+// Follows structure as given below:\n+//\n+// <div id=\"countdown\">\n+//     <div id = \"days\"></div>\n+//     <div id = \"hours\"></div>\n+//     <div id = \"mins\"></div>\n+//     <div id = \"secs\"></div>\n+// </div>\n+\n+\n+\n+var next_meetup = \"2016-10-16 14:00:00\"; //specify date(yyyy-mm-dd) time(h:m:s) in ISO format; example \"2016-10-11 0:00:00\" \n+countdown(next_meetup);\n+\n+function countdown(to) {\n+    setInterval(function(){time_diff(to);}, 500);\n+}\n+\n+function time_diff(to) {\n+    var time_left = Date.parse(to) - Date.now();\n+\n+    var ms_in_a_sec = 1000;\n+    var ms_in_a_min = 60 * ms_in_a_sec;\n+    var ms_in_an_hour = 60 * ms_in_a_min;\n+    var ms_in_a_day = 24 * ms_in_an_hour;\n+\n+    var days = Math.floor(time_left / ms_in_a_day);\n+    time_left %= ms_in_a_day;\n+    \n+    var hours = Math.floor(time_left / ms_in_an_hour);\n+    time_left %= ms_in_an_hour;\n+\n+    var mins = Math.floor(time_left / ms_in_a_min);\n+    time_left %= ms_in_a_min;\n+\n+    var secs = Math.floor(time_left / ms_in_a_sec);\n+\n+    time_left = {d:days, h:hours, m:mins, s:secs};\n+    \n+    document.getElementById(\"days\").innerHTML = time_left.d;","path":"site/scripts/countdown.js","position":42,"original_position":42,"commit_id":"e9b1c9be13684e8e5fd33db2f6c9d03febbcd601","original_commit_id":"e9b1c9be13684e8e5fd33db2f6c9d03febbcd601","user":{"login":"IamAdiSri","id":9818842,"avatar_url":"https://avatars.githubusercontent.com/u/9818842?v=3","gravatar_id":"","url":"https://api.github.com/users/IamAdiSri","html_url":"https://github.com/IamAdiSri","followers_url":"https://api.github.com/users/IamAdiSri/followers","following_url":"https://api.github.com/users/IamAdiSri/following{/other_user}","gists_url":"https://api.github.com/users/IamAdiSri/gists{/gist_id}","starred_url":"https://api.github.com/users/IamAdiSri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IamAdiSri/subscriptions","organizations_url":"https://api.github.com/users/IamAdiSri/orgs","repos_url":"https://api.github.com/users/IamAdiSri/repos","events_url":"https://api.github.com/users/IamAdiSri/events{/privacy}","received_events_url":"https://api.github.com/users/IamAdiSri/received_events","type":"User","site_admin":false},"body":"I was trying to future-proof, but i guess the code is sort of trivial and doesn't really require it. I'll remove it no problem.\r\n","created_at":"2016-10-11T13:54:20Z","updated_at":"2016-10-11T13:54:20Z","html_url":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25#discussion_r82797097","pull_request_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/comments/82797097"},"html":{"href":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25#discussion_r82797097"},"pull_request":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25","id":88608469,"html_url":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25","diff_url":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25.diff","patch_url":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25.patch","issue_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/25","number":25,"state":"open","locked":false,"title":"Added countdown timer (issue #24)","user":{"login":"IamAdiSri","id":9818842,"avatar_url":"https://avatars.githubusercontent.com/u/9818842?v=3","gravatar_id":"","url":"https://api.github.com/users/IamAdiSri","html_url":"https://github.com/IamAdiSri","followers_url":"https://api.github.com/users/IamAdiSri/followers","following_url":"https://api.github.com/users/IamAdiSri/following{/other_user}","gists_url":"https://api.github.com/users/IamAdiSri/gists{/gist_id}","starred_url":"https://api.github.com/users/IamAdiSri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IamAdiSri/subscriptions","organizations_url":"https://api.github.com/users/IamAdiSri/orgs","repos_url":"https://api.github.com/users/IamAdiSri/repos","events_url":"https://api.github.com/users/IamAdiSri/events{/privacy}","received_events_url":"https://api.github.com/users/IamAdiSri/received_events","type":"User","site_admin":false},"body":"Issue #24 \r\n\r\nI've added a js script with the countdown function. I've also added an html file which gives an example as to how one can add the timer to a webpage.\r\n\r\nThe date and time to the next meetup has to be manually entered in the JS file.\r\nCSS can be added to the following IDs : timer, days, hours, mins, sec\r\n\r\nDo I need to make any changes?","created_at":"2016-10-10T04:09:47Z","updated_at":"2016-10-11T13:54:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7671b5b642d501c472aafb8e2f4660e6ff53b713","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25/commits","review_comments_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25/comments","review_comment_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/25/comments","statuses_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/statuses/e9b1c9be13684e8e5fd33db2f6c9d03febbcd601","head":{"label":"IamAdiSri:master","ref":"master","sha":"e9b1c9be13684e8e5fd33db2f6c9d03febbcd601","user":{"login":"IamAdiSri","id":9818842,"avatar_url":"https://avatars.githubusercontent.com/u/9818842?v=3","gravatar_id":"","url":"https://api.github.com/users/IamAdiSri","html_url":"https://github.com/IamAdiSri","followers_url":"https://api.github.com/users/IamAdiSri/followers","following_url":"https://api.github.com/users/IamAdiSri/following{/other_user}","gists_url":"https://api.github.com/users/IamAdiSri/gists{/gist_id}","starred_url":"https://api.github.com/users/IamAdiSri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IamAdiSri/subscriptions","organizations_url":"https://api.github.com/users/IamAdiSri/orgs","repos_url":"https://api.github.com/users/IamAdiSri/repos","events_url":"https://api.github.com/users/IamAdiSri/events{/privacy}","received_events_url":"https://api.github.com/users/IamAdiSri/received_events","type":"User","site_admin":false},"repo":{"id":70442236,"name":"fcc-hyd.github.io","full_name":"IamAdiSri/fcc-hyd.github.io","owner":{"login":"IamAdiSri","id":9818842,"avatar_url":"https://avatars.githubusercontent.com/u/9818842?v=3","gravatar_id":"","url":"https://api.github.com/users/IamAdiSri","html_url":"https://github.com/IamAdiSri","followers_url":"https://api.github.com/users/IamAdiSri/followers","following_url":"https://api.github.com/users/IamAdiSri/following{/other_user}","gists_url":"https://api.github.com/users/IamAdiSri/gists{/gist_id}","starred_url":"https://api.github.com/users/IamAdiSri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IamAdiSri/subscriptions","organizations_url":"https://api.github.com/users/IamAdiSri/orgs","repos_url":"https://api.github.com/users/IamAdiSri/repos","events_url":"https://api.github.com/users/IamAdiSri/events{/privacy}","received_events_url":"https://api.github.com/users/IamAdiSri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IamAdiSri/fcc-hyd.github.io","description":"FreeCodeCamp Hyderabad ","fork":true,"url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io","forks_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/forks","keys_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/teams","hooks_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/hooks","issue_events_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/events","assignees_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/tags","blobs_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/languages","stargazers_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/stargazers","contributors_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/contributors","subscribers_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/subscribers","subscription_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/subscription","commits_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/merges","archive_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/downloads","issues_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/labels{/name}","releases_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/IamAdiSri/fcc-hyd.github.io/deployments","created_at":"2016-10-10T01:46:21Z","updated_at":"2016-10-10T01:46:21Z","pushed_at":"2016-10-10T14:38:31Z","git_url":"git://github.com/IamAdiSri/fcc-hyd.github.io.git","ssh_url":"git@github.com:IamAdiSri/fcc-hyd.github.io.git","clone_url":"https://github.com/IamAdiSri/fcc-hyd.github.io.git","svn_url":"https://github.com/IamAdiSri/fcc-hyd.github.io","homepage":"https://fcc-hyd.github.io","size":6076,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fcc-hyd:master","ref":"master","sha":"8196bc3b03019602bfc5d2bff358707fd97af934","user":{"login":"fcc-hyd","id":19891160,"avatar_url":"https://avatars.githubusercontent.com/u/19891160?v=3","gravatar_id":"","url":"https://api.github.com/users/fcc-hyd","html_url":"https://github.com/fcc-hyd","followers_url":"https://api.github.com/users/fcc-hyd/followers","following_url":"https://api.github.com/users/fcc-hyd/following{/other_user}","gists_url":"https://api.github.com/users/fcc-hyd/gists{/gist_id}","starred_url":"https://api.github.com/users/fcc-hyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcc-hyd/subscriptions","organizations_url":"https://api.github.com/users/fcc-hyd/orgs","repos_url":"https://api.github.com/users/fcc-hyd/repos","events_url":"https://api.github.com/users/fcc-hyd/events{/privacy}","received_events_url":"https://api.github.com/users/fcc-hyd/received_events","type":"Organization","site_admin":false},"repo":{"id":63241218,"name":"fcc-hyd.github.io","full_name":"fcc-hyd/fcc-hyd.github.io","owner":{"login":"fcc-hyd","id":19891160,"avatar_url":"https://avatars.githubusercontent.com/u/19891160?v=3","gravatar_id":"","url":"https://api.github.com/users/fcc-hyd","html_url":"https://github.com/fcc-hyd","followers_url":"https://api.github.com/users/fcc-hyd/followers","following_url":"https://api.github.com/users/fcc-hyd/following{/other_user}","gists_url":"https://api.github.com/users/fcc-hyd/gists{/gist_id}","starred_url":"https://api.github.com/users/fcc-hyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcc-hyd/subscriptions","organizations_url":"https://api.github.com/users/fcc-hyd/orgs","repos_url":"https://api.github.com/users/fcc-hyd/repos","events_url":"https://api.github.com/users/fcc-hyd/events{/privacy}","received_events_url":"https://api.github.com/users/fcc-hyd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fcc-hyd/fcc-hyd.github.io","description":"FreeCodeCamp Hyderabad ","fork":false,"url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io","forks_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/forks","keys_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/teams","hooks_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/hooks","issue_events_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/events","assignees_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/tags","blobs_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/languages","stargazers_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/stargazers","contributors_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/contributors","subscribers_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/subscribers","subscription_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/subscription","commits_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/merges","archive_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/downloads","issues_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/labels{/name}","releases_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/deployments","created_at":"2016-07-13T11:41:53Z","updated_at":"2016-10-10T16:52:06Z","pushed_at":"2016-10-10T14:38:32Z","git_url":"git://github.com/fcc-hyd/fcc-hyd.github.io.git","ssh_url":"git@github.com:fcc-hyd/fcc-hyd.github.io.git","clone_url":"https://github.com/fcc-hyd/fcc-hyd.github.io.git","svn_url":"https://github.com/fcc-hyd/fcc-hyd.github.io","homepage":"https://fcc-hyd.github.io","size":4442,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":9,"forks":13,"open_issues":9,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25"},"html":{"href":"https://github.com/fcc-hyd/fcc-hyd.github.io/pull/25"},"issue":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/25"},"comments":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/fcc-hyd/fcc-hyd.github.io/statuses/e9b1c9be13684e8e5fd33db2f6c9d03febbcd601"}}}}
{"actor":{"display_login":"IamAdiSri"}}