{"action":"created","comment":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/80745646","pull_request_review_id":1779929,"id":80745646,"diff_hunk":"@@ -153,20 +153,52 @@ const app = new Vue({\n   }\n });\n \n+const searchBarApp = new Vue({\n+  el: \"#section-search\",\n+  data: {\n+    search_type: \"by-company\",\n+    keyword: \"\",\n+  },\n+  methods: {\n+    onSubmit: function() {\n+      if (this.search_type === \"by-company\") {\n+        router.setRoute(`/search-and-group/by-company/${encodeURIComponent(this.keyword)}`);\n+      } else if (this.search_type === \"by-job-title\") {\n+        router.setRoute(`/search-and-group/by-job-title/${encodeURIComponent(this.keyword)}`);\n+      } else {\n+        router.setRoute(\"/latest\");\n+      }\n+    },\n+    setDefault: function() {\n+      this.search_type = \"by-company\";\n+      this.keyword = \"\";\n+    },\n+    setInputInfo: function(search_type, keyword) {","path":"src/js/main/show.js","position":24,"original_position":24,"commit_id":"d30be327d86332bb2b1524c0776692ae859ab836","original_commit_id":"87c4ea0b972753bb3486dd8e0536c6ae78d45cc3","user":{"login":"xxhomey19","id":12113222,"avatar_url":"https://avatars.githubusercontent.com/u/12113222?v=3","gravatar_id":"","url":"https://api.github.com/users/xxhomey19","html_url":"https://github.com/xxhomey19","followers_url":"https://api.github.com/users/xxhomey19/followers","following_url":"https://api.github.com/users/xxhomey19/following{/other_user}","gists_url":"https://api.github.com/users/xxhomey19/gists{/gist_id}","starred_url":"https://api.github.com/users/xxhomey19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxhomey19/subscriptions","organizations_url":"https://api.github.com/users/xxhomey19/orgs","repos_url":"https://api.github.com/users/xxhomey19/repos","events_url":"https://api.github.com/users/xxhomey19/events{/privacy}","received_events_url":"https://api.github.com/users/xxhomey19/received_events","type":"User","site_admin":false},"body":"Oh yes. Sorry I misunderstand what your mean haha.\r\nThis is great","created_at":"2016-09-27T17:16:31Z","updated_at":"2016-09-27T17:16:31Z","html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310#discussion_r80745646","pull_request_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310","_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/80745646"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310#discussion_r80745646"},"pull_request":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310","id":86863378,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310","diff_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310.diff","patch_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310.patch","issue_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/310","number":310,"state":"open","locked":false,"title":"show 頁面 搜尋框 改善","user":{"login":"xxhomey19","id":12113222,"avatar_url":"https://avatars.githubusercontent.com/u/12113222?v=3","gravatar_id":"","url":"https://api.github.com/users/xxhomey19","html_url":"https://github.com/xxhomey19","followers_url":"https://api.github.com/users/xxhomey19/followers","following_url":"https://api.github.com/users/xxhomey19/following{/other_user}","gists_url":"https://api.github.com/users/xxhomey19/gists{/gist_id}","starred_url":"https://api.github.com/users/xxhomey19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxhomey19/subscriptions","organizations_url":"https://api.github.com/users/xxhomey19/orgs","repos_url":"https://api.github.com/users/xxhomey19/repos","events_url":"https://api.github.com/users/xxhomey19/events{/privacy}","received_events_url":"https://api.github.com/users/xxhomey19/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-27T05:14:29Z","updated_at":"2016-09-27T17:16:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e35ce5c8a73bf410d8aac54dfc58f637af2ed099","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310/commits","review_comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310/comments","review_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/310/comments","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/d30be327d86332bb2b1524c0776692ae859ab836","head":{"label":"xxhomey19:improve-search-bar","ref":"improve-search-bar","sha":"d30be327d86332bb2b1524c0776692ae859ab836","user":{"login":"xxhomey19","id":12113222,"avatar_url":"https://avatars.githubusercontent.com/u/12113222?v=3","gravatar_id":"","url":"https://api.github.com/users/xxhomey19","html_url":"https://github.com/xxhomey19","followers_url":"https://api.github.com/users/xxhomey19/followers","following_url":"https://api.github.com/users/xxhomey19/following{/other_user}","gists_url":"https://api.github.com/users/xxhomey19/gists{/gist_id}","starred_url":"https://api.github.com/users/xxhomey19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxhomey19/subscriptions","organizations_url":"https://api.github.com/users/xxhomey19/orgs","repos_url":"https://api.github.com/users/xxhomey19/repos","events_url":"https://api.github.com/users/xxhomey19/events{/privacy}","received_events_url":"https://api.github.com/users/xxhomey19/received_events","type":"User","site_admin":false},"repo":{"id":68026744,"name":"WorkTimeSurvey","full_name":"xxhomey19/WorkTimeSurvey","owner":{"login":"xxhomey19","id":12113222,"avatar_url":"https://avatars.githubusercontent.com/u/12113222?v=3","gravatar_id":"","url":"https://api.github.com/users/xxhomey19","html_url":"https://github.com/xxhomey19","followers_url":"https://api.github.com/users/xxhomey19/followers","following_url":"https://api.github.com/users/xxhomey19/following{/other_user}","gists_url":"https://api.github.com/users/xxhomey19/gists{/gist_id}","starred_url":"https://api.github.com/users/xxhomey19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxhomey19/subscriptions","organizations_url":"https://api.github.com/users/xxhomey19/orgs","repos_url":"https://api.github.com/users/xxhomey19/repos","events_url":"https://api.github.com/users/xxhomey19/events{/privacy}","received_events_url":"https://api.github.com/users/xxhomey19/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xxhomey19/WorkTimeSurvey","description":"A simple website for surveying work time. ","fork":true,"url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey","forks_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/forks","keys_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/teams","hooks_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/hooks","issue_events_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/issues/events{/number}","events_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/events","assignees_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/assignees{/user}","branches_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/branches{/branch}","tags_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/tags","blobs_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/git/refs{/sha}","trees_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/statuses/{sha}","languages_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/languages","stargazers_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/stargazers","contributors_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/contributors","subscribers_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/subscribers","subscription_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/subscription","commits_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/commits{/sha}","git_commits_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/git/commits{/sha}","comments_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/comments{/number}","issue_comment_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/issues/comments{/number}","contents_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/contents/{+path}","compare_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/merges","archive_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/downloads","issues_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/issues{/number}","pulls_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/pulls{/number}","milestones_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/milestones{/number}","notifications_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/labels{/name}","releases_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/releases{/id}","deployments_url":"https://api.github.com/repos/xxhomey19/WorkTimeSurvey/deployments","created_at":"2016-09-12T16:28:11Z","updated_at":"2016-09-12T16:28:12Z","pushed_at":"2016-09-27T16:20:00Z","git_url":"git://github.com/xxhomey19/WorkTimeSurvey.git","ssh_url":"git@github.com:xxhomey19/WorkTimeSurvey.git","clone_url":"https://github.com/xxhomey19/WorkTimeSurvey.git","svn_url":"https://github.com/xxhomey19/WorkTimeSurvey","homepage":"https://worktime.goodjob.life/","size":2146,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"goodjoblife:dev","ref":"dev","sha":"e0308bdc04925bddc173e90318c9a9e31a064d34","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":61972170,"name":"WorkTimeSurvey","full_name":"goodjoblife/WorkTimeSurvey","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey","description":"A simple website for surveying work time. ","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/deployments","created_at":"2016-06-26T03:30:55Z","updated_at":"2016-09-19T05:58:38Z","pushed_at":"2016-09-27T16:20:01Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey","homepage":"https://worktime.goodjob.life/","size":2745,"stargazers_count":16,"watchers_count":16,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":19,"forks":8,"open_issues":19,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/310"},"issue":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/310"},"comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/d30be327d86332bb2b1524c0776692ae859ab836"}}}}
{"actor":{"display_login":"xxhomey19"}}