{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/comments/227896205","pull_request_review_id":168038228,"id":227896205,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzg5NjIwNQ==","diff_hunk":"@@ -1 +1,140 @@\n // Your code goes here\n+\n+// Select nav tags\n+\n+const navTags = document.querySelectorAll('a');\n+const homeNav = navTags[0];\n+const aboutNav = navTags[1];\n+const blogNav = navTags[2];\n+const contactNav = navTags[3];\n+\n+// Images\n+\n+const images = document.querySelectorAll('.img-content')\n+const adventureImg = images[0];\n+const funImg = images[1];\n+\n+// Change background colour\n+\n+homeNav.addEventListener(\"mouseover\", () => { \n+    const curColour = document.body.style.backgroundColor;\n+  \n+    if (curColour != 'red') {\n+      document.body.style.backgroundColor = \"red\";\n+    }\n+    else {\n+      document.body.style.backgroundColor = \"blue\";\n+    }\n+  });\n+\n+// Remove intro (display none added to mixin)\n+\n+const myIntro = document.querySelector('.intro p');\n+aboutNav.addEventListener('dblclick', () => {\n+    myIntro.classList.toggle('display-none'); \n+});\n+\n+// Turn intro text green when scrolling over content section\n+\n+const contentSection = document.querySelector('.content-section');\n+contentSection.addEventListener(\"wheel\", () => {\n+    myIntro.style.color = \"green\";\n+})\n+\n+// Alert message when adventure image starts being dragged\n+\n+adventureImg.addEventListener(\"dragstart\", () => {\n+    alert(\"Whooaaa - what you doing there?\")\n+})\n+\n+// When page loads, move contact nav (I've added greensock script to HTML)\n+\n+window.addEventListener(\"load\", () => {\n+    TweenMax.to(contactNav, 1, {\n+        x: 100,\n+        rotation: 360,\n+        scale: 0.75\n+    });\n+})\n+\n+// When page is resized, remove top image\n+\n+topImage = document.querySelector(\".intro img\");\n+window.addEventListener(\"resize\", () => {\n+    topImage.classList.toggle('display-none');\n+});\n+\n+// When scrollbar is used\n+\n+const logo = document.querySelector('.logo-heading');\n+window.addEventListener(\"scroll\", () => {\n+    TweenMax.to(logo, 2, {\n+        x:100,\n+        ease:Bounce.easeOut,\n+        onComplete: complete \n+    });\n+});\n+\n+function complete() {\n+    alert(\"The logo just moved. Repeat: the logo just moved!!\")\n+}\n+\n+// When 'Fun in the Sun' text is copied \n+\n+const contentPick = document.querySelector('.content-pick .destination h4');\n+\n+contentPick.addEventListener(\"copy\", () => {\n+    contentPick.style.color = \"green\";\n+})\n+\n+// When contact nav is clicked\n+\n+contactNav.addEventListener(\"click\", () => {\n+    TweenMax.to(contactNav, 2, {\n+        y:100,\n+        x:-100,\n+        scale: 0.5,\n+        ease:Bounce.easeOut\n+    });\n+})\n+\n+// When user presses a key\n+\n+window.addEventListener('keypress', () => {\n+    document.body.style.backgroundColor = \"black\";\n+})\n+\n+// .stopPropagation practice\n+\n+const body = document.querySelector('body');\n+body.addEventListener('click', (event) => { \n+    console.log(event.target)\n+});\n+\n+contentPick.addEventListener('click', (event) => { \n+    event.stopPropagation();","path":"js/index.js","position":115,"original_position":115,"commit_id":"019512e033a0c65535e8ea607ade87a36cac19a4","original_commit_id":"019512e033a0c65535e8ea607ade87a36cac19a4","user":{"login":"szincone","id":21247406,"node_id":"MDQ6VXNlcjIxMjQ3NDA2","avatar_url":"https://avatars0.githubusercontent.com/u/21247406?v=4","gravatar_id":"","url":"https://api.github.com/users/szincone","html_url":"https://github.com/szincone","followers_url":"https://api.github.com/users/szincone/followers","following_url":"https://api.github.com/users/szincone/following{/other_user}","gists_url":"https://api.github.com/users/szincone/gists{/gist_id}","starred_url":"https://api.github.com/users/szincone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szincone/subscriptions","organizations_url":"https://api.github.com/users/szincone/orgs","repos_url":"https://api.github.com/users/szincone/repos","events_url":"https://api.github.com/users/szincone/events{/privacy}","received_events_url":"https://api.github.com/users/szincone/received_events","type":"User","site_admin":false},"body":"Good use of stopPropagation to stop interference w/ other click events.","created_at":"2018-10-24T17:55:23Z","updated_at":"2018-10-24T17:57:21Z","html_url":"https://github.com/LambdaSchool/DOM-II/pull/483#discussion_r227896205","pull_request_url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/comments/227896205"},"html":{"href":"https://github.com/LambdaSchool/DOM-II/pull/483#discussion_r227896205"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483","id":225182586,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTgyNTg2","html_url":"https://github.com/LambdaSchool/DOM-II/pull/483","diff_url":"https://github.com/LambdaSchool/DOM-II/pull/483.diff","patch_url":"https://github.com/LambdaSchool/DOM-II/pull/483.patch","issue_url":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/483","number":483,"state":"open","locked":false,"title":"nick-oferrall","user":{"login":"nickoferrall","id":39854876,"node_id":"MDQ6VXNlcjM5ODU0ODc2","avatar_url":"https://avatars3.githubusercontent.com/u/39854876?v=4","gravatar_id":"","url":"https://api.github.com/users/nickoferrall","html_url":"https://github.com/nickoferrall","followers_url":"https://api.github.com/users/nickoferrall/followers","following_url":"https://api.github.com/users/nickoferrall/following{/other_user}","gists_url":"https://api.github.com/users/nickoferrall/gists{/gist_id}","starred_url":"https://api.github.com/users/nickoferrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickoferrall/subscriptions","organizations_url":"https://api.github.com/users/nickoferrall/orgs","repos_url":"https://api.github.com/users/nickoferrall/repos","events_url":"https://api.github.com/users/nickoferrall/events{/privacy}","received_events_url":"https://api.github.com/users/nickoferrall/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-23T20:50:37Z","updated_at":"2018-10-24T17:57:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99811aa2c547b735773cea0105f1a07e602fbd93","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/483/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/DOM-II/statuses/019512e033a0c65535e8ea607ade87a36cac19a4","head":{"label":"nickoferrall:master","ref":"master","sha":"019512e033a0c65535e8ea607ade87a36cac19a4","user":{"login":"nickoferrall","id":39854876,"node_id":"MDQ6VXNlcjM5ODU0ODc2","avatar_url":"https://avatars3.githubusercontent.com/u/39854876?v=4","gravatar_id":"","url":"https://api.github.com/users/nickoferrall","html_url":"https://github.com/nickoferrall","followers_url":"https://api.github.com/users/nickoferrall/followers","following_url":"https://api.github.com/users/nickoferrall/following{/other_user}","gists_url":"https://api.github.com/users/nickoferrall/gists{/gist_id}","starred_url":"https://api.github.com/users/nickoferrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickoferrall/subscriptions","organizations_url":"https://api.github.com/users/nickoferrall/orgs","repos_url":"https://api.github.com/users/nickoferrall/repos","events_url":"https://api.github.com/users/nickoferrall/events{/privacy}","received_events_url":"https://api.github.com/users/nickoferrall/received_events","type":"User","site_admin":false},"repo":{"id":154358621,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQzNTg2MjE=","name":"DOM-II","full_name":"nickoferrall/DOM-II","private":false,"owner":{"login":"nickoferrall","id":39854876,"node_id":"MDQ6VXNlcjM5ODU0ODc2","avatar_url":"https://avatars3.githubusercontent.com/u/39854876?v=4","gravatar_id":"","url":"https://api.github.com/users/nickoferrall","html_url":"https://github.com/nickoferrall","followers_url":"https://api.github.com/users/nickoferrall/followers","following_url":"https://api.github.com/users/nickoferrall/following{/other_user}","gists_url":"https://api.github.com/users/nickoferrall/gists{/gist_id}","starred_url":"https://api.github.com/users/nickoferrall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickoferrall/subscriptions","organizations_url":"https://api.github.com/users/nickoferrall/orgs","repos_url":"https://api.github.com/users/nickoferrall/repos","events_url":"https://api.github.com/users/nickoferrall/events{/privacy}","received_events_url":"https://api.github.com/users/nickoferrall/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nickoferrall/DOM-II","description":null,"fork":true,"url":"https://api.github.com/repos/nickoferrall/DOM-II","forks_url":"https://api.github.com/repos/nickoferrall/DOM-II/forks","keys_url":"https://api.github.com/repos/nickoferrall/DOM-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickoferrall/DOM-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickoferrall/DOM-II/teams","hooks_url":"https://api.github.com/repos/nickoferrall/DOM-II/hooks","issue_events_url":"https://api.github.com/repos/nickoferrall/DOM-II/issues/events{/number}","events_url":"https://api.github.com/repos/nickoferrall/DOM-II/events","assignees_url":"https://api.github.com/repos/nickoferrall/DOM-II/assignees{/user}","branches_url":"https://api.github.com/repos/nickoferrall/DOM-II/branches{/branch}","tags_url":"https://api.github.com/repos/nickoferrall/DOM-II/tags","blobs_url":"https://api.github.com/repos/nickoferrall/DOM-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickoferrall/DOM-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickoferrall/DOM-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickoferrall/DOM-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickoferrall/DOM-II/statuses/{sha}","languages_url":"https://api.github.com/repos/nickoferrall/DOM-II/languages","stargazers_url":"https://api.github.com/repos/nickoferrall/DOM-II/stargazers","contributors_url":"https://api.github.com/repos/nickoferrall/DOM-II/contributors","subscribers_url":"https://api.github.com/repos/nickoferrall/DOM-II/subscribers","subscription_url":"https://api.github.com/repos/nickoferrall/DOM-II/subscription","commits_url":"https://api.github.com/repos/nickoferrall/DOM-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickoferrall/DOM-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickoferrall/DOM-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickoferrall/DOM-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickoferrall/DOM-II/contents/{+path}","compare_url":"https://api.github.com/repos/nickoferrall/DOM-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickoferrall/DOM-II/merges","archive_url":"https://api.github.com/repos/nickoferrall/DOM-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickoferrall/DOM-II/downloads","issues_url":"https://api.github.com/repos/nickoferrall/DOM-II/issues{/number}","pulls_url":"https://api.github.com/repos/nickoferrall/DOM-II/pulls{/number}","milestones_url":"https://api.github.com/repos/nickoferrall/DOM-II/milestones{/number}","notifications_url":"https://api.github.com/repos/nickoferrall/DOM-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickoferrall/DOM-II/labels{/name}","releases_url":"https://api.github.com/repos/nickoferrall/DOM-II/releases{/id}","deployments_url":"https://api.github.com/repos/nickoferrall/DOM-II/deployments","created_at":"2018-10-23T16:08:30Z","updated_at":"2018-10-23T23:08:57Z","pushed_at":"2018-10-23T23:08:56Z","git_url":"git://github.com/nickoferrall/DOM-II.git","ssh_url":"git@github.com:nickoferrall/DOM-II.git","clone_url":"https://github.com/nickoferrall/DOM-II.git","svn_url":"https://github.com/nickoferrall/DOM-II","homepage":null,"size":211,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"9394122fa863c1a730cf15d993fd2d6d19249204","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":123160091,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMxNjAwOTE=","name":"DOM-II","full_name":"LambdaSchool/DOM-II","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/DOM-II","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/DOM-II","forks_url":"https://api.github.com/repos/LambdaSchool/DOM-II/forks","keys_url":"https://api.github.com/repos/LambdaSchool/DOM-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/DOM-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/DOM-II/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/DOM-II/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/DOM-II/events","assignees_url":"https://api.github.com/repos/LambdaSchool/DOM-II/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/DOM-II/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/DOM-II/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/DOM-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/DOM-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/DOM-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/DOM-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/DOM-II/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/DOM-II/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/DOM-II/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/DOM-II/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/DOM-II/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/DOM-II/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/DOM-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/DOM-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/DOM-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/DOM-II/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/DOM-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/DOM-II/merges","archive_url":"https://api.github.com/repos/LambdaSchool/DOM-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/DOM-II/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/DOM-II/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/DOM-II/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/DOM-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/DOM-II/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/DOM-II/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/DOM-II/deployments","created_at":"2018-02-27T16:55:09Z","updated_at":"2018-09-18T15:32:50Z","pushed_at":"2018-10-24T16:55:18Z","git_url":"git://github.com/LambdaSchool/DOM-II.git","ssh_url":"git@github.com:LambdaSchool/DOM-II.git","clone_url":"https://github.com/LambdaSchool/DOM-II.git","svn_url":"https://github.com/LambdaSchool/DOM-II","homepage":null,"size":206,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":571,"mirror_url":null,"archived":false,"open_issues_count":351,"license":null,"forks":571,"open_issues":351,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483"},"html":{"href":"https://github.com/LambdaSchool/DOM-II/pull/483"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/483"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/issues/483/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/pulls/483/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/DOM-II/statuses/019512e033a0c65535e8ea607ade87a36cac19a4"}},"author_association":"NONE"}}
{"actor":{"display_login":"szincone"}}