{"action":"created","comment":{"url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/comments/168965064","pull_request_review_id":97415800,"id":168965064,"diff_hunk":"@@ -0,0 +1,92 @@\n+const useCases = [\n+  {\n+    text: \"success messages\",\n+    className: 'success',\n+  },\n+  {\n+    text: \"error messages\",\n+    className: 'error',\n+  },\n+  {\n+    text: \"warning modals\",\n+    className: 'warning',\n+  },\n+];\n+\n+let currentIndex = 0;\n+\n+const initRotater = () => {\n+  updateUseCase(true);\n+  setInterval(updateUseCase, 4000); \n+}\n+\n+const updateUseCase = (isInitial) => {\n+  const useCase = useCases[currentIndex];\n+  const nextUseCase = useCases[getNextIndex()];\n+\n+  updateText(useCase, nextUseCase);\n+  updateModal(useCase, nextUseCase, isInitial);\n+\n+  currentIndex = getNextIndex();\n+}\n+\n+const updateModal = (useCase, nextUseCase, isInitial) => {\n+  const { className } = useCase;\n+\n+  const contentOverlayEl = document.querySelector('.modal-content-overlay');\n+\n+  if (!contentOverlayEl) return;\n+\n+  if (!isInitial) {\n+    contentOverlayEl.classList.add('show');\n+  }\n+\n+  const modalEl = document.querySelector('.swal-modal-example');\n+\n+  modalEl.dataset.type = className;\n+\n+  const contentEls = document.querySelectorAll('.example-content');\n+\n+  setTimeout(() => {\n+    contentEls.forEach(contentEl => {\n+      if (contentEl.classList.contains(className)) {\n+        contentEl.classList.add('show');\n+      } else {\n+        contentEl.classList.remove('show');\n+      }\n+    });\n+\n+    contentOverlayEl.classList.remove('show');\n+  }, 500);\n+}\n+\n+const updateText = (useCase, nextUseCase) => {\n+  const { text } = useCase;\n+  const { text: nextText } = nextUseCase;\n+\n+  const rotatorEl = document.querySelector('.text-rotater');\n+\n+  if (!rotatorEl) return;","path":"docs-src/assets/js/landing-text-rotater.js","position":69,"original_position":69,"commit_id":"5e3e2c9a21923f02e58398f8e0926b0f42f034de","original_commit_id":"5e3e2c9a21923f02e58398f8e0926b0f42f034de","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected '{' and instead saw 'return'.","created_at":"2018-02-18T20:51:29Z","updated_at":"2018-02-18T20:51:31Z","html_url":"https://github.com/jasonparser/sweetalert/pull/2#discussion_r168965064","pull_request_url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/comments/168965064"},"html":{"href":"https://github.com/jasonparser/sweetalert/pull/2#discussion_r168965064"},"pull_request":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2","id":29391718,"html_url":"https://github.com/jasonparser/sweetalert/pull/2","diff_url":"https://github.com/jasonparser/sweetalert/pull/2.diff","patch_url":"https://github.com/jasonparser/sweetalert/pull/2.patch","issue_url":"https://api.github.com/repos/jasonparser/sweetalert/issues/2","number":2,"state":"open","locked":false,"title":"update","user":{"login":"jasonparser","id":5031653,"avatar_url":"https://avatars3.githubusercontent.com/u/5031653?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonparser","html_url":"https://github.com/jasonparser","followers_url":"https://api.github.com/users/jasonparser/followers","following_url":"https://api.github.com/users/jasonparser/following{/other_user}","gists_url":"https://api.github.com/users/jasonparser/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonparser/subscriptions","organizations_url":"https://api.github.com/users/jasonparser/orgs","repos_url":"https://api.github.com/users/jasonparser/repos","events_url":"https://api.github.com/users/jasonparser/events{/privacy}","received_events_url":"https://api.github.com/users/jasonparser/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-16T18:10:32Z","updated_at":"2018-02-18T20:51:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10833ea8ffeda4956c2514e8888dd67a6ba9eab9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jasonparser/sweetalert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jasonparser/sweetalert/issues/2/comments","statuses_url":"https://api.github.com/repos/jasonparser/sweetalert/statuses/5e3e2c9a21923f02e58398f8e0926b0f42f034de","head":{"label":"t4t5:master","ref":"master","sha":"5e3e2c9a21923f02e58398f8e0926b0f42f034de","user":{"login":"t4t5","id":2598660,"avatar_url":"https://avatars3.githubusercontent.com/u/2598660?v=4","gravatar_id":"","url":"https://api.github.com/users/t4t5","html_url":"https://github.com/t4t5","followers_url":"https://api.github.com/users/t4t5/followers","following_url":"https://api.github.com/users/t4t5/following{/other_user}","gists_url":"https://api.github.com/users/t4t5/gists{/gist_id}","starred_url":"https://api.github.com/users/t4t5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4t5/subscriptions","organizations_url":"https://api.github.com/users/t4t5/orgs","repos_url":"https://api.github.com/users/t4t5/repos","events_url":"https://api.github.com/users/t4t5/events{/privacy}","received_events_url":"https://api.github.com/users/t4t5/received_events","type":"User","site_admin":false},"repo":{"id":24635156,"name":"sweetalert","full_name":"t4t5/sweetalert","owner":{"login":"t4t5","id":2598660,"avatar_url":"https://avatars3.githubusercontent.com/u/2598660?v=4","gravatar_id":"","url":"https://api.github.com/users/t4t5","html_url":"https://github.com/t4t5","followers_url":"https://api.github.com/users/t4t5/followers","following_url":"https://api.github.com/users/t4t5/following{/other_user}","gists_url":"https://api.github.com/users/t4t5/gists{/gist_id}","starred_url":"https://api.github.com/users/t4t5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4t5/subscriptions","organizations_url":"https://api.github.com/users/t4t5/orgs","repos_url":"https://api.github.com/users/t4t5/repos","events_url":"https://api.github.com/users/t4t5/events{/privacy}","received_events_url":"https://api.github.com/users/t4t5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t4t5/sweetalert","description":"A beautiful replacement for JavaScript's \"alert\"","fork":false,"url":"https://api.github.com/repos/t4t5/sweetalert","forks_url":"https://api.github.com/repos/t4t5/sweetalert/forks","keys_url":"https://api.github.com/repos/t4t5/sweetalert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t4t5/sweetalert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t4t5/sweetalert/teams","hooks_url":"https://api.github.com/repos/t4t5/sweetalert/hooks","issue_events_url":"https://api.github.com/repos/t4t5/sweetalert/issues/events{/number}","events_url":"https://api.github.com/repos/t4t5/sweetalert/events","assignees_url":"https://api.github.com/repos/t4t5/sweetalert/assignees{/user}","branches_url":"https://api.github.com/repos/t4t5/sweetalert/branches{/branch}","tags_url":"https://api.github.com/repos/t4t5/sweetalert/tags","blobs_url":"https://api.github.com/repos/t4t5/sweetalert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t4t5/sweetalert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t4t5/sweetalert/git/refs{/sha}","trees_url":"https://api.github.com/repos/t4t5/sweetalert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t4t5/sweetalert/statuses/{sha}","languages_url":"https://api.github.com/repos/t4t5/sweetalert/languages","stargazers_url":"https://api.github.com/repos/t4t5/sweetalert/stargazers","contributors_url":"https://api.github.com/repos/t4t5/sweetalert/contributors","subscribers_url":"https://api.github.com/repos/t4t5/sweetalert/subscribers","subscription_url":"https://api.github.com/repos/t4t5/sweetalert/subscription","commits_url":"https://api.github.com/repos/t4t5/sweetalert/commits{/sha}","git_commits_url":"https://api.github.com/repos/t4t5/sweetalert/git/commits{/sha}","comments_url":"https://api.github.com/repos/t4t5/sweetalert/comments{/number}","issue_comment_url":"https://api.github.com/repos/t4t5/sweetalert/issues/comments{/number}","contents_url":"https://api.github.com/repos/t4t5/sweetalert/contents/{+path}","compare_url":"https://api.github.com/repos/t4t5/sweetalert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t4t5/sweetalert/merges","archive_url":"https://api.github.com/repos/t4t5/sweetalert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t4t5/sweetalert/downloads","issues_url":"https://api.github.com/repos/t4t5/sweetalert/issues{/number}","pulls_url":"https://api.github.com/repos/t4t5/sweetalert/pulls{/number}","milestones_url":"https://api.github.com/repos/t4t5/sweetalert/milestones{/number}","notifications_url":"https://api.github.com/repos/t4t5/sweetalert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t4t5/sweetalert/labels{/name}","releases_url":"https://api.github.com/repos/t4t5/sweetalert/releases{/id}","deployments_url":"https://api.github.com/repos/t4t5/sweetalert/deployments","created_at":"2014-09-30T11:12:48Z","updated_at":"2018-02-18T14:43:57Z","pushed_at":"2018-02-18T20:51:12Z","git_url":"git://github.com/t4t5/sweetalert.git","ssh_url":"git@github.com:t4t5/sweetalert.git","clone_url":"https://github.com/t4t5/sweetalert.git","svn_url":"https://github.com/t4t5/sweetalert","homepage":"https://sweetalert.js.org","size":3596,"stargazers_count":17891,"watchers_count":17891,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2428,"mirror_url":null,"archived":false,"open_issues_count":60,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2428,"open_issues":60,"watchers":17891,"default_branch":"master"}},"base":{"label":"jasonparser:master","ref":"master","sha":"9f67461195e62bdc71decde5c41cdb3a49b4379a","user":{"login":"jasonparser","id":5031653,"avatar_url":"https://avatars3.githubusercontent.com/u/5031653?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonparser","html_url":"https://github.com/jasonparser","followers_url":"https://api.github.com/users/jasonparser/followers","following_url":"https://api.github.com/users/jasonparser/following{/other_user}","gists_url":"https://api.github.com/users/jasonparser/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonparser/subscriptions","organizations_url":"https://api.github.com/users/jasonparser/orgs","repos_url":"https://api.github.com/users/jasonparser/repos","events_url":"https://api.github.com/users/jasonparser/events{/privacy}","received_events_url":"https://api.github.com/users/jasonparser/received_events","type":"User","site_admin":false},"repo":{"id":24944563,"name":"sweetalert","full_name":"jasonparser/sweetalert","owner":{"login":"jasonparser","id":5031653,"avatar_url":"https://avatars3.githubusercontent.com/u/5031653?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonparser","html_url":"https://github.com/jasonparser","followers_url":"https://api.github.com/users/jasonparser/followers","following_url":"https://api.github.com/users/jasonparser/following{/other_user}","gists_url":"https://api.github.com/users/jasonparser/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonparser/subscriptions","organizations_url":"https://api.github.com/users/jasonparser/orgs","repos_url":"https://api.github.com/users/jasonparser/repos","events_url":"https://api.github.com/users/jasonparser/events{/privacy}","received_events_url":"https://api.github.com/users/jasonparser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jasonparser/sweetalert","description":"A beautiful replacement for JavaScript's \"alert\"","fork":true,"url":"https://api.github.com/repos/jasonparser/sweetalert","forks_url":"https://api.github.com/repos/jasonparser/sweetalert/forks","keys_url":"https://api.github.com/repos/jasonparser/sweetalert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jasonparser/sweetalert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jasonparser/sweetalert/teams","hooks_url":"https://api.github.com/repos/jasonparser/sweetalert/hooks","issue_events_url":"https://api.github.com/repos/jasonparser/sweetalert/issues/events{/number}","events_url":"https://api.github.com/repos/jasonparser/sweetalert/events","assignees_url":"https://api.github.com/repos/jasonparser/sweetalert/assignees{/user}","branches_url":"https://api.github.com/repos/jasonparser/sweetalert/branches{/branch}","tags_url":"https://api.github.com/repos/jasonparser/sweetalert/tags","blobs_url":"https://api.github.com/repos/jasonparser/sweetalert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jasonparser/sweetalert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jasonparser/sweetalert/git/refs{/sha}","trees_url":"https://api.github.com/repos/jasonparser/sweetalert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jasonparser/sweetalert/statuses/{sha}","languages_url":"https://api.github.com/repos/jasonparser/sweetalert/languages","stargazers_url":"https://api.github.com/repos/jasonparser/sweetalert/stargazers","contributors_url":"https://api.github.com/repos/jasonparser/sweetalert/contributors","subscribers_url":"https://api.github.com/repos/jasonparser/sweetalert/subscribers","subscription_url":"https://api.github.com/repos/jasonparser/sweetalert/subscription","commits_url":"https://api.github.com/repos/jasonparser/sweetalert/commits{/sha}","git_commits_url":"https://api.github.com/repos/jasonparser/sweetalert/git/commits{/sha}","comments_url":"https://api.github.com/repos/jasonparser/sweetalert/comments{/number}","issue_comment_url":"https://api.github.com/repos/jasonparser/sweetalert/issues/comments{/number}","contents_url":"https://api.github.com/repos/jasonparser/sweetalert/contents/{+path}","compare_url":"https://api.github.com/repos/jasonparser/sweetalert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jasonparser/sweetalert/merges","archive_url":"https://api.github.com/repos/jasonparser/sweetalert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jasonparser/sweetalert/downloads","issues_url":"https://api.github.com/repos/jasonparser/sweetalert/issues{/number}","pulls_url":"https://api.github.com/repos/jasonparser/sweetalert/pulls{/number}","milestones_url":"https://api.github.com/repos/jasonparser/sweetalert/milestones{/number}","notifications_url":"https://api.github.com/repos/jasonparser/sweetalert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jasonparser/sweetalert/labels{/name}","releases_url":"https://api.github.com/repos/jasonparser/sweetalert/releases{/id}","deployments_url":"https://api.github.com/repos/jasonparser/sweetalert/deployments","created_at":"2014-10-08T14:30:26Z","updated_at":"2017-09-06T21:38:05Z","pushed_at":"2018-02-18T20:51:18Z","git_url":"git://github.com/jasonparser/sweetalert.git","ssh_url":"git@github.com:jasonparser/sweetalert.git","clone_url":"https://github.com/jasonparser/sweetalert.git","svn_url":"https://github.com/jasonparser/sweetalert","homepage":null,"size":1345,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2"},"html":{"href":"https://github.com/jasonparser/sweetalert/pull/2"},"issue":{"href":"https://api.github.com/repos/jasonparser/sweetalert/issues/2"},"comments":{"href":"https://api.github.com/repos/jasonparser/sweetalert/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jasonparser/sweetalert/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jasonparser/sweetalert/statuses/5e3e2c9a21923f02e58398f8e0926b0f42f034de"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}