{"action":"created","comment":{"url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/comments/34585256","id":34585256,"diff_hunk":"@@ -0,0 +1,154 @@\n+// jQuery(document).ready(function($){\n+// \t//set animation timing\n+// \tvar animationDelay = 2500,\n+// \t\t//loading bar effect\n+// \t\tbarAnimationDelay = 3800,\n+// \t\tbarWaiting = barAnimationDelay - 3000, //3000 is the duration of the transition on the loading bar - set in the scss/css file\n+// \t\t//letters effect\n+// \t\tlettersDelay = 50,\n+// \t\t//type effect\n+// \t\ttypeLettersDelay = 150,\n+// \t\tselectionDuration = 500,\n+// \t\ttypeAnimationDelay = selectionDuration + 800,\n+// \t\t//clip effect\n+// \t\trevealDuration = 600,\n+// \t\trevealAnimationDelay = 1500;\n+//\n+// \tinitHeadline();\n+//\n+//\n+// \tfunction initHeadline() {\n+// \t\t//insert <i> element for each letter of a changing word\n+// \t\tsingleLetters($('.cd-headline.letters').find('b'));\n+// \t\t//initialise headline animation\n+// \t\tanimateHeadline($('.cd-headline'));\n+// \t}\n+//\n+// \tfunction singleLetters($words) {\n+// \t\t$words.each(function(){\n+// \t\t\tvar word = $(this),\n+// \t\t\t\tletters = word.text().split(''),\n+// \t\t\t\tselected = word.hasClass('is-visible');\n+// \t\t\tfor (i in letters) {\n+// \t\t\t\tif(word.parents('.rotate-2').length > 0) letters[i] = '<em>' + letters[i] + '</em>';\n+// \t\t\t\tletters[i] = (selected) ? '<i class=\"in\">' + letters[i] + '</i>': '<i>' + letters[i] + '</i>';\n+// \t\t\t}\n+// \t\t    var newLetters = letters.join('');\n+// \t\t    word.html(newLetters).css('opacity', 1);\n+// \t\t});\n+// \t}\n+//\n+// \tfunction animateHeadline($headlines) {\n+// \t\tvar duration = animationDelay;\n+// \t\t$headlines.each(function(){\n+// \t\t\tvar headline = $(this);\n+//\n+// \t\t\tif(headline.hasClass('loading-bar')) {\n+// \t\t\t\tduration = barAnimationDelay;\n+// \t\t\t\tsetTimeout(function(){ headline.find('.cd-words-wrapper').addClass('is-loading') }, barWaiting);\n+// \t\t\t} else if (headline.hasClass('clip')){\n+// \t\t\t\tvar spanWrapper = headline.find('.cd-words-wrapper'),\n+// \t\t\t\t\tnewWidth = spanWrapper.width() + 10\n+// \t\t\t\tspanWrapper.css('width', newWidth);\n+// \t\t\t} else if (!headline.hasClass('type') ) {\n+// \t\t\t\t//assign to .cd-words-wrapper the width of its longest word\n+// \t\t\t\tvar words = headline.find('.cd-words-wrapper b'),\n+// \t\t\t\t\twidth = 0;\n+// \t\t\t\twords.each(function(){\n+// \t\t\t\t\tvar wordWidth = $(this).width();\n+// \t\t\t\t    if (wordWidth > width) width = wordWidth;\n+// \t\t\t\t});\n+// \t\t\t\theadline.find('.cd-words-wrapper').css('width', width);\n+// \t\t\t};\n+//\n+// \t\t\t//trigger animation\n+// \t\t\tsetTimeout(function(){ hideWord( headline.find('.is-visible').eq(0) ) }, duration);\n+// \t\t});\n+// \t}\n+//\n+// \tfunction hideWord($word) {\n+// \t\tvar nextWord = takeNext($word);\n+//\n+// \t\tif($word.parents('.cd-headline').hasClass('type')) {\n+// \t\t\tvar parentSpan = $word.parent('.cd-words-wrapper');\n+// \t\t\tparentSpan.addClass('selected').removeClass('waiting');\n+// \t\t\tsetTimeout(function(){\n+// \t\t\t\tparentSpan.removeClass('selected');\n+// \t\t\t\t$word.removeClass('is-visible').addClass('is-hidden').children('i').removeClass('in').addClass('out');\n+// \t\t\t}, selectionDuration);\n+// \t\t\tsetTimeout(function(){ showWord(nextWord, typeLettersDelay) }, typeAnimationDelay);\n+//\n+// \t\t} else if($word.parents('.cd-headline').hasClass('letters')) {\n+// \t\t\tvar bool = ($word.children('i').length >= nextWord.children('i').length) ? true : false;\n+// \t\t\thideLetter($word.find('i').eq(0), $word, bool, lettersDelay);\n+// \t\t\tshowLetter(nextWord.find('i').eq(0), nextWord, bool, lettersDelay);\n+//\n+// \t\t}  else if($word.parents('.cd-headline').hasClass('clip')) {\n+// \t\t\t$word.parents('.cd-words-wrapper').animate({ width : '2px' }, revealDuration, function(){\n+// \t\t\t\tswitchWord($word, nextWord);\n+// \t\t\t\tshowWord(nextWord);\n+// \t\t\t});\n+//\n+// \t\t} else if ($word.parents('.cd-headline').hasClass('loading-bar')){\n+// \t\t\t$word.parents('.cd-words-wrapper').removeClass('is-loading');\n+// \t\t\tswitchWord($word, nextWord);\n+// \t\t\tsetTimeout(function(){ hideWord(nextWord) }, barAnimationDelay);\n+// \t\t\tsetTimeout(function(){ $word.parents('.cd-words-wrapper').addClass('is-loading') }, barWaiting);\n+//\n+// \t\t} else {\n+// \t\t\tswitchWord($word, nextWord);\n+// \t\t\tsetTimeout(function(){ hideWord(nextWord) }, animationDelay);\n+// \t\t}\n+// \t}\n+//\n+// \tfunction showWord($word, $duration) {\n+// \t\tif($word.parents('.cd-headline').hasClass('type')) {\n+// \t\t\tshowLetter($word.find('i').eq(0), $word, false, $duration);\n+// \t\t\t$word.addClass('is-visible').removeClass('is-hidden');\n+//\n+// \t\t}  else if($word.parents('.cd-headline').hasClass('clip')) {\n+// \t\t\t$word.parents('.cd-words-wrapper').animate({ 'width' : $word.width() + 10 }, revealDuration, function(){\n+// \t\t\t\tsetTimeout(function(){ hideWord($word) }, revealAnimationDelay);\n+// \t\t\t});\n+// \t\t}\n+// \t}\n+//\n+// \tfunction hideLetter($letter, $word, $bool, $duration) {\n+// \t\t$letter.removeClass('in').addClass('out');\n+//\n+// \t\tif(!$letter.is(':last-child')) {\n+// \t\t \tsetTimeout(function(){ hideLetter($letter.next(), $word, $bool, $duration); }, $duration);\n+// \t\t} else if($bool) {\n+// \t\t \tsetTimeout(function(){ hideWord(takeNext($word)) }, animationDelay);\n+// \t\t}\n+//\n+// \t\tif($letter.is(':last-child') && $('html').hasClass('no-csstransitions')) {\n+// \t\t\tvar nextWord = takeNext($word);\n+// \t\t\tswitchWord($word, nextWord);\n+// \t\t}\n+// \t}\n+//\n+// \tfunction showLetter($letter, $word, $bool, $duration) {\n+// \t\t$letter.addClass('in').removeClass('out');\n+//\n+// \t\tif(!$letter.is(':last-child')) {\n+// \t\t\tsetTimeout(function(){ showLetter($letter.next(), $word, $bool, $duration); }, $duration);","path":"app/assets/javascripts/main.js","position":135,"original_position":135,"commit_id":"6748199ca4063b869e94c0610c1032e41c0f258e","original_commit_id":"6748199ca4063b869e94c0610c1032e41c0f258e","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":"Line is too long.","created_at":"2015-07-14T16:04:04Z","updated_at":"2015-07-14T16:04:04Z","html_url":"https://github.com/lfields90/GreaterBoston/pull/2#discussion_r34585256","pull_request_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/comments/34585256"},"html":{"href":"https://github.com/lfields90/GreaterBoston/pull/2#discussion_r34585256"},"pull_request":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2","id":39932140,"html_url":"https://github.com/lfields90/GreaterBoston/pull/2","diff_url":"https://github.com/lfields90/GreaterBoston/pull/2.diff","patch_url":"https://github.com/lfields90/GreaterBoston/pull/2.patch","issue_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/2","number":2,"state":"open","locked":false,"title":"Landing","user":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-14T16:03:57Z","updated_at":"2015-07-14T16:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71b7af14e37be6462e8294c9291c36d6da9ccd5b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2/commits","review_comments_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2/comments","review_comment_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/2/comments","statuses_url":"https://api.github.com/repos/lfields90/GreaterBoston/statuses/6748199ca4063b869e94c0610c1032e41c0f258e","head":{"label":"lfields90:Landing","ref":"Landing","sha":"6748199ca4063b869e94c0610c1032e41c0f258e","user":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"repo":{"id":38795217,"name":"GreaterBoston","full_name":"lfields90/GreaterBoston","owner":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfields90/GreaterBoston","description":"","fork":false,"url":"https://api.github.com/repos/lfields90/GreaterBoston","forks_url":"https://api.github.com/repos/lfields90/GreaterBoston/forks","keys_url":"https://api.github.com/repos/lfields90/GreaterBoston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfields90/GreaterBoston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfields90/GreaterBoston/teams","hooks_url":"https://api.github.com/repos/lfields90/GreaterBoston/hooks","issue_events_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/events{/number}","events_url":"https://api.github.com/repos/lfields90/GreaterBoston/events","assignees_url":"https://api.github.com/repos/lfields90/GreaterBoston/assignees{/user}","branches_url":"https://api.github.com/repos/lfields90/GreaterBoston/branches{/branch}","tags_url":"https://api.github.com/repos/lfields90/GreaterBoston/tags","blobs_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfields90/GreaterBoston/statuses/{sha}","languages_url":"https://api.github.com/repos/lfields90/GreaterBoston/languages","stargazers_url":"https://api.github.com/repos/lfields90/GreaterBoston/stargazers","contributors_url":"https://api.github.com/repos/lfields90/GreaterBoston/contributors","subscribers_url":"https://api.github.com/repos/lfields90/GreaterBoston/subscribers","subscription_url":"https://api.github.com/repos/lfields90/GreaterBoston/subscription","commits_url":"https://api.github.com/repos/lfields90/GreaterBoston/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfields90/GreaterBoston/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfields90/GreaterBoston/contents/{+path}","compare_url":"https://api.github.com/repos/lfields90/GreaterBoston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfields90/GreaterBoston/merges","archive_url":"https://api.github.com/repos/lfields90/GreaterBoston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfields90/GreaterBoston/downloads","issues_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues{/number}","pulls_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls{/number}","milestones_url":"https://api.github.com/repos/lfields90/GreaterBoston/milestones{/number}","notifications_url":"https://api.github.com/repos/lfields90/GreaterBoston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfields90/GreaterBoston/labels{/name}","releases_url":"https://api.github.com/repos/lfields90/GreaterBoston/releases{/id}","created_at":"2015-07-09T03:40:02Z","updated_at":"2015-07-14T15:19:00Z","pushed_at":"2015-07-14T16:03:57Z","git_url":"git://github.com/lfields90/GreaterBoston.git","ssh_url":"git@github.com:lfields90/GreaterBoston.git","clone_url":"https://github.com/lfields90/GreaterBoston.git","svn_url":"https://github.com/lfields90/GreaterBoston","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"lfields90:master","ref":"master","sha":"fc6ebf8e9a4ee5506ea39669a8bc94569f8b3636","user":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"repo":{"id":38795217,"name":"GreaterBoston","full_name":"lfields90/GreaterBoston","owner":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfields90/GreaterBoston","description":"","fork":false,"url":"https://api.github.com/repos/lfields90/GreaterBoston","forks_url":"https://api.github.com/repos/lfields90/GreaterBoston/forks","keys_url":"https://api.github.com/repos/lfields90/GreaterBoston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfields90/GreaterBoston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfields90/GreaterBoston/teams","hooks_url":"https://api.github.com/repos/lfields90/GreaterBoston/hooks","issue_events_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/events{/number}","events_url":"https://api.github.com/repos/lfields90/GreaterBoston/events","assignees_url":"https://api.github.com/repos/lfields90/GreaterBoston/assignees{/user}","branches_url":"https://api.github.com/repos/lfields90/GreaterBoston/branches{/branch}","tags_url":"https://api.github.com/repos/lfields90/GreaterBoston/tags","blobs_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfields90/GreaterBoston/statuses/{sha}","languages_url":"https://api.github.com/repos/lfields90/GreaterBoston/languages","stargazers_url":"https://api.github.com/repos/lfields90/GreaterBoston/stargazers","contributors_url":"https://api.github.com/repos/lfields90/GreaterBoston/contributors","subscribers_url":"https://api.github.com/repos/lfields90/GreaterBoston/subscribers","subscription_url":"https://api.github.com/repos/lfields90/GreaterBoston/subscription","commits_url":"https://api.github.com/repos/lfields90/GreaterBoston/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfields90/GreaterBoston/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfields90/GreaterBoston/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfields90/GreaterBoston/contents/{+path}","compare_url":"https://api.github.com/repos/lfields90/GreaterBoston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfields90/GreaterBoston/merges","archive_url":"https://api.github.com/repos/lfields90/GreaterBoston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfields90/GreaterBoston/downloads","issues_url":"https://api.github.com/repos/lfields90/GreaterBoston/issues{/number}","pulls_url":"https://api.github.com/repos/lfields90/GreaterBoston/pulls{/number}","milestones_url":"https://api.github.com/repos/lfields90/GreaterBoston/milestones{/number}","notifications_url":"https://api.github.com/repos/lfields90/GreaterBoston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfields90/GreaterBoston/labels{/name}","releases_url":"https://api.github.com/repos/lfields90/GreaterBoston/releases{/id}","created_at":"2015-07-09T03:40:02Z","updated_at":"2015-07-14T15:19:00Z","pushed_at":"2015-07-14T16:03:57Z","git_url":"git://github.com/lfields90/GreaterBoston.git","ssh_url":"git@github.com:lfields90/GreaterBoston.git","clone_url":"https://github.com/lfields90/GreaterBoston.git","svn_url":"https://github.com/lfields90/GreaterBoston","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2"},"html":{"href":"https://github.com/lfields90/GreaterBoston/pull/2"},"issue":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/issues/2"},"comments":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/lfields90/GreaterBoston/statuses/6748199ca4063b869e94c0610c1032e41c0f258e"}}}}