{"action":"created","comment":{"url":"https://api.github.com/repos/rlavya/parallax_site/pulls/comments/64348821","id":64348821,"diff_hunk":"@@ -0,0 +1,115 @@\n+$( document ).ready(function() {\n+  // Init Skrollr\n+var s = skrollr.init();\n+\n+\n+  var lastScrollTop = 0;\n+\n+(function($) {\n+    $.fn.countdown = function(options, callback) {\n+\n+      //custom 'this' selector\n+      var thisEl = $(this);\n+\n+      //array of custom settings\n+      var settings = { \n+        'date': null,\n+        'format': null\n+      };\n+\n+      //append the settings array to options\n+      if(options) {\n+        $.extend(settings, options);\n+      }\n+\n+      //main countdown function\n+      var countdown_proc = function () {\n+\n+        var eventDate = Date.parse(settings['date']) / 1000;\n+        var currentDate = Math.floor($.now() / 1000);\n+\n+        if(eventDate <= currentDate) {\n+          callback.call(this);\n+          clearInterval(interval);\n+        };\n+\n+        var seconds = eventDate - currentDate;\n+\n+        var days = Math.floor(seconds / (60 * 60 * 24)); //calculate the number of days\n+        seconds -= days * 60 * 60 * 24; //update the seconds variable with no. of days removed\n+\n+        var hours = Math.floor(seconds / (60 * 60));\n+        seconds -= hours * 60 * 60; //update the seconds variable with no. of hours removed\n+\n+        var minutes = Math.floor(seconds / 60);\n+        seconds -= minutes * 60; //update the seconds variable with no. of minutes removed\n+\n+        //conditional Ss\n+        if (days == 1) { thisEl.find(\".timeRefDays\").text(\"Day\"); } else { thisEl.find(\".timeRefDays\").text(\"Days\"); }\n+        if (hours == 1) { thisEl.find(\".timeRefHours\").text(\"Hour\"); } else { thisEl.find(\".timeRefHours\").text(\"Hours\"); }\n+        if (minutes == 1) { thisEl.find(\".timeRefMinutes\").text(\"Minute\"); } else { thisEl.find(\".timeRefMinutes\").text(\"Minutes\"); }\n+        if (seconds == 1) { thisEl.find(\".timeRefSeconds\").text(\"Second\"); } else { thisEl.find(\".timeRefSeconds\").text(\"Seconds\"); }\n+\n+        //logic for the two_digits ON setting\n+        if(settings['format'] == \"on\") {\n+          days = (String(days).length >= 2) ? days : \"0\" + days;\n+          hours = (String(hours).length >= 2) ? hours : \"0\" + hours;\n+          minutes = (String(minutes).length >= 2) ? minutes : \"0\" + minutes;\n+          seconds = (String(seconds).length >= 2) ? seconds : \"0\" + seconds;\n+        }\n+\n+        //update the countdown's html values.\n+        if(!isNaN(eventDate)) {\n+          thisEl.find(\".days\").text(days);\n+          thisEl.find(\".hours\").text(hours);\n+          thisEl.find(\".minutes\").text(minutes);\n+          thisEl.find(\".seconds\").text(seconds);\n+        } else { \n+          alert(\"Invalid date. Here's an example: 12 Tuesday 2012 17:30:00\");\n+          clearInterval(interval); \n+        }\n+      }\n+\n+      //run the function\n+      countdown_proc();\n+\n+      //loop the function\n+      interval = setInterval(countdown_proc, 1000);\n+\n+    }\n+}) (jQuery);\n+\n+\n+//Call countdown plugin\n+$(\".countdown\").countdown({\n+  date: \"2 february 2017 6:19:00\", // add the countdown's end date (i.e. 3 november 2012 12:00:00)\n+  format: \"on\" // on (03:07:52) | off (3:7:52) - two_digits set to ON maintains layout consistency\n+});\n+//   $('#content').addClass('active');\n+//   $(document).scroll(function(event) {\n+//     var st = $(this).scrollTop();\n+//     var current = $('body').find('.active');\n+  \n+//     var top = current.offset().top;\n+//     // console.log(top +\" : :  \" +st)\n+//     if (st > (top + 160)) {\n+//       current.removeClass('active');\n+//       // console.log(st +\" :: \" +lastScrollTop);\n+//       if (st > lastScrollTop){\n+//          current.next().addClass('active');\n+    \n+//           var currId = current.next().attr('id');\n+        \n+//          $(\"#currId\").slideUp();  \n+//       } else {\n+//         current.prev().addClass('active');\n+//         var currId = current.prev().attr('id');\n+         \n+\n+//         $(\"#currId\").slideDown();  \n+\n+//       }\n+//       lastScrollTop = st;\n+//     }\n+//   })      ;\n+});","path":"js/script.js","position":115,"original_position":115,"commit_id":"94898eb2618514247441860227b1b612cbedfd5f","original_commit_id":"94898eb2618514247441860227b1b612cbedfd5f","user":{"login":"neethumjoy","id":11392166,"avatar_url":"https://avatars.githubusercontent.com/u/11392166?v=3","gravatar_id":"","url":"https://api.github.com/users/neethumjoy","html_url":"https://github.com/neethumjoy","followers_url":"https://api.github.com/users/neethumjoy/followers","following_url":"https://api.github.com/users/neethumjoy/following{/other_user}","gists_url":"https://api.github.com/users/neethumjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/neethumjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neethumjoy/subscriptions","organizations_url":"https://api.github.com/users/neethumjoy/orgs","repos_url":"https://api.github.com/users/neethumjoy/repos","events_url":"https://api.github.com/users/neethumjoy/events{/privacy}","received_events_url":"https://api.github.com/users/neethumjoy/received_events","type":"User","site_admin":false},"body":"Remove commented code.","created_at":"2016-05-24T08:34:49Z","updated_at":"2016-05-24T08:34:49Z","html_url":"https://github.com/rlavya/parallax_site/pull/3#discussion_r64348821","pull_request_url":"https://api.github.com/repos/rlavya/parallax_site/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/rlavya/parallax_site/pulls/comments/64348821"},"html":{"href":"https://github.com/rlavya/parallax_site/pull/3#discussion_r64348821"},"pull_request":{"href":"https://api.github.com/repos/rlavya/parallax_site/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/rlavya/parallax_site/pulls/3","id":71041551,"html_url":"https://github.com/rlavya/parallax_site/pull/3","diff_url":"https://github.com/rlavya/parallax_site/pull/3.diff","patch_url":"https://github.com/rlavya/parallax_site/pull/3.patch","issue_url":"https://api.github.com/repos/rlavya/parallax_site/issues/3","number":3,"state":"open","locked":false,"title":"Feature parallax scroll","user":{"login":"geethujp","id":16206977,"avatar_url":"https://avatars.githubusercontent.com/u/16206977?v=3","gravatar_id":"","url":"https://api.github.com/users/geethujp","html_url":"https://github.com/geethujp","followers_url":"https://api.github.com/users/geethujp/followers","following_url":"https://api.github.com/users/geethujp/following{/other_user}","gists_url":"https://api.github.com/users/geethujp/gists{/gist_id}","starred_url":"https://api.github.com/users/geethujp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geethujp/subscriptions","organizations_url":"https://api.github.com/users/geethujp/orgs","repos_url":"https://api.github.com/users/geethujp/repos","events_url":"https://api.github.com/users/geethujp/events{/privacy}","received_events_url":"https://api.github.com/users/geethujp/received_events","type":"User","site_admin":false},"body":"Hi @neethumjoy ,\r\n\r\nThe following are the changes made to the branch.\r\nIncluded scroll to next section feature.\r\n\r\n","created_at":"2016-05-23T10:54:59Z","updated_at":"2016-05-24T08:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63bf1d2f7d04b35b119a19d4d53b0160d8d784a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rlavya/parallax_site/pulls/3/commits","review_comments_url":"https://api.github.com/repos/rlavya/parallax_site/pulls/3/comments","review_comment_url":"https://api.github.com/repos/rlavya/parallax_site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rlavya/parallax_site/issues/3/comments","statuses_url":"https://api.github.com/repos/rlavya/parallax_site/statuses/94898eb2618514247441860227b1b612cbedfd5f","head":{"label":"rlavya:feature-parallax-scroll","ref":"feature-parallax-scroll","sha":"94898eb2618514247441860227b1b612cbedfd5f","user":{"login":"rlavya","id":13363476,"avatar_url":"https://avatars.githubusercontent.com/u/13363476?v=3","gravatar_id":"","url":"https://api.github.com/users/rlavya","html_url":"https://github.com/rlavya","followers_url":"https://api.github.com/users/rlavya/followers","following_url":"https://api.github.com/users/rlavya/following{/other_user}","gists_url":"https://api.github.com/users/rlavya/gists{/gist_id}","starred_url":"https://api.github.com/users/rlavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlavya/subscriptions","organizations_url":"https://api.github.com/users/rlavya/orgs","repos_url":"https://api.github.com/users/rlavya/repos","events_url":"https://api.github.com/users/rlavya/events{/privacy}","received_events_url":"https://api.github.com/users/rlavya/received_events","type":"User","site_admin":false},"repo":{"id":59019368,"name":"parallax_site","full_name":"rlavya/parallax_site","owner":{"login":"rlavya","id":13363476,"avatar_url":"https://avatars.githubusercontent.com/u/13363476?v=3","gravatar_id":"","url":"https://api.github.com/users/rlavya","html_url":"https://github.com/rlavya","followers_url":"https://api.github.com/users/rlavya/followers","following_url":"https://api.github.com/users/rlavya/following{/other_user}","gists_url":"https://api.github.com/users/rlavya/gists{/gist_id}","starred_url":"https://api.github.com/users/rlavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlavya/subscriptions","organizations_url":"https://api.github.com/users/rlavya/orgs","repos_url":"https://api.github.com/users/rlavya/repos","events_url":"https://api.github.com/users/rlavya/events{/privacy}","received_events_url":"https://api.github.com/users/rlavya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rlavya/parallax_site","description":"","fork":false,"url":"https://api.github.com/repos/rlavya/parallax_site","forks_url":"https://api.github.com/repos/rlavya/parallax_site/forks","keys_url":"https://api.github.com/repos/rlavya/parallax_site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rlavya/parallax_site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rlavya/parallax_site/teams","hooks_url":"https://api.github.com/repos/rlavya/parallax_site/hooks","issue_events_url":"https://api.github.com/repos/rlavya/parallax_site/issues/events{/number}","events_url":"https://api.github.com/repos/rlavya/parallax_site/events","assignees_url":"https://api.github.com/repos/rlavya/parallax_site/assignees{/user}","branches_url":"https://api.github.com/repos/rlavya/parallax_site/branches{/branch}","tags_url":"https://api.github.com/repos/rlavya/parallax_site/tags","blobs_url":"https://api.github.com/repos/rlavya/parallax_site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rlavya/parallax_site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rlavya/parallax_site/git/refs{/sha}","trees_url":"https://api.github.com/repos/rlavya/parallax_site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rlavya/parallax_site/statuses/{sha}","languages_url":"https://api.github.com/repos/rlavya/parallax_site/languages","stargazers_url":"https://api.github.com/repos/rlavya/parallax_site/stargazers","contributors_url":"https://api.github.com/repos/rlavya/parallax_site/contributors","subscribers_url":"https://api.github.com/repos/rlavya/parallax_site/subscribers","subscription_url":"https://api.github.com/repos/rlavya/parallax_site/subscription","commits_url":"https://api.github.com/repos/rlavya/parallax_site/commits{/sha}","git_commits_url":"https://api.github.com/repos/rlavya/parallax_site/git/commits{/sha}","comments_url":"https://api.github.com/repos/rlavya/parallax_site/comments{/number}","issue_comment_url":"https://api.github.com/repos/rlavya/parallax_site/issues/comments{/number}","contents_url":"https://api.github.com/repos/rlavya/parallax_site/contents/{+path}","compare_url":"https://api.github.com/repos/rlavya/parallax_site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rlavya/parallax_site/merges","archive_url":"https://api.github.com/repos/rlavya/parallax_site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rlavya/parallax_site/downloads","issues_url":"https://api.github.com/repos/rlavya/parallax_site/issues{/number}","pulls_url":"https://api.github.com/repos/rlavya/parallax_site/pulls{/number}","milestones_url":"https://api.github.com/repos/rlavya/parallax_site/milestones{/number}","notifications_url":"https://api.github.com/repos/rlavya/parallax_site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rlavya/parallax_site/labels{/name}","releases_url":"https://api.github.com/repos/rlavya/parallax_site/releases{/id}","deployments_url":"https://api.github.com/repos/rlavya/parallax_site/deployments","created_at":"2016-05-17T12:13:42Z","updated_at":"2016-05-17T12:13:42Z","pushed_at":"2016-05-24T07:59:31Z","git_url":"git://github.com/rlavya/parallax_site.git","ssh_url":"git@github.com:rlavya/parallax_site.git","clone_url":"https://github.com/rlavya/parallax_site.git","svn_url":"https://github.com/rlavya/parallax_site","homepage":null,"size":1365,"stargazers_count":0,"watchers_count":0,"language":null,"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":"rlavya:develop","ref":"develop","sha":"8c7a4f4367c07c989bfb751d6d064d4189432045","user":{"login":"rlavya","id":13363476,"avatar_url":"https://avatars.githubusercontent.com/u/13363476?v=3","gravatar_id":"","url":"https://api.github.com/users/rlavya","html_url":"https://github.com/rlavya","followers_url":"https://api.github.com/users/rlavya/followers","following_url":"https://api.github.com/users/rlavya/following{/other_user}","gists_url":"https://api.github.com/users/rlavya/gists{/gist_id}","starred_url":"https://api.github.com/users/rlavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlavya/subscriptions","organizations_url":"https://api.github.com/users/rlavya/orgs","repos_url":"https://api.github.com/users/rlavya/repos","events_url":"https://api.github.com/users/rlavya/events{/privacy}","received_events_url":"https://api.github.com/users/rlavya/received_events","type":"User","site_admin":false},"repo":{"id":59019368,"name":"parallax_site","full_name":"rlavya/parallax_site","owner":{"login":"rlavya","id":13363476,"avatar_url":"https://avatars.githubusercontent.com/u/13363476?v=3","gravatar_id":"","url":"https://api.github.com/users/rlavya","html_url":"https://github.com/rlavya","followers_url":"https://api.github.com/users/rlavya/followers","following_url":"https://api.github.com/users/rlavya/following{/other_user}","gists_url":"https://api.github.com/users/rlavya/gists{/gist_id}","starred_url":"https://api.github.com/users/rlavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlavya/subscriptions","organizations_url":"https://api.github.com/users/rlavya/orgs","repos_url":"https://api.github.com/users/rlavya/repos","events_url":"https://api.github.com/users/rlavya/events{/privacy}","received_events_url":"https://api.github.com/users/rlavya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rlavya/parallax_site","description":"","fork":false,"url":"https://api.github.com/repos/rlavya/parallax_site","forks_url":"https://api.github.com/repos/rlavya/parallax_site/forks","keys_url":"https://api.github.com/repos/rlavya/parallax_site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rlavya/parallax_site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rlavya/parallax_site/teams","hooks_url":"https://api.github.com/repos/rlavya/parallax_site/hooks","issue_events_url":"https://api.github.com/repos/rlavya/parallax_site/issues/events{/number}","events_url":"https://api.github.com/repos/rlavya/parallax_site/events","assignees_url":"https://api.github.com/repos/rlavya/parallax_site/assignees{/user}","branches_url":"https://api.github.com/repos/rlavya/parallax_site/branches{/branch}","tags_url":"https://api.github.com/repos/rlavya/parallax_site/tags","blobs_url":"https://api.github.com/repos/rlavya/parallax_site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rlavya/parallax_site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rlavya/parallax_site/git/refs{/sha}","trees_url":"https://api.github.com/repos/rlavya/parallax_site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rlavya/parallax_site/statuses/{sha}","languages_url":"https://api.github.com/repos/rlavya/parallax_site/languages","stargazers_url":"https://api.github.com/repos/rlavya/parallax_site/stargazers","contributors_url":"https://api.github.com/repos/rlavya/parallax_site/contributors","subscribers_url":"https://api.github.com/repos/rlavya/parallax_site/subscribers","subscription_url":"https://api.github.com/repos/rlavya/parallax_site/subscription","commits_url":"https://api.github.com/repos/rlavya/parallax_site/commits{/sha}","git_commits_url":"https://api.github.com/repos/rlavya/parallax_site/git/commits{/sha}","comments_url":"https://api.github.com/repos/rlavya/parallax_site/comments{/number}","issue_comment_url":"https://api.github.com/repos/rlavya/parallax_site/issues/comments{/number}","contents_url":"https://api.github.com/repos/rlavya/parallax_site/contents/{+path}","compare_url":"https://api.github.com/repos/rlavya/parallax_site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rlavya/parallax_site/merges","archive_url":"https://api.github.com/repos/rlavya/parallax_site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rlavya/parallax_site/downloads","issues_url":"https://api.github.com/repos/rlavya/parallax_site/issues{/number}","pulls_url":"https://api.github.com/repos/rlavya/parallax_site/pulls{/number}","milestones_url":"https://api.github.com/repos/rlavya/parallax_site/milestones{/number}","notifications_url":"https://api.github.com/repos/rlavya/parallax_site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rlavya/parallax_site/labels{/name}","releases_url":"https://api.github.com/repos/rlavya/parallax_site/releases{/id}","deployments_url":"https://api.github.com/repos/rlavya/parallax_site/deployments","created_at":"2016-05-17T12:13:42Z","updated_at":"2016-05-17T12:13:42Z","pushed_at":"2016-05-24T07:59:31Z","git_url":"git://github.com/rlavya/parallax_site.git","ssh_url":"git@github.com:rlavya/parallax_site.git","clone_url":"https://github.com/rlavya/parallax_site.git","svn_url":"https://github.com/rlavya/parallax_site","homepage":null,"size":1365,"stargazers_count":0,"watchers_count":0,"language":null,"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/rlavya/parallax_site/pulls/3"},"html":{"href":"https://github.com/rlavya/parallax_site/pull/3"},"issue":{"href":"https://api.github.com/repos/rlavya/parallax_site/issues/3"},"comments":{"href":"https://api.github.com/repos/rlavya/parallax_site/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/rlavya/parallax_site/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/rlavya/parallax_site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rlavya/parallax_site/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/rlavya/parallax_site/statuses/94898eb2618514247441860227b1b612cbedfd5f"}}}}
{"actor":{"display_login":"neethumjoy"}}