Skip to content

Clicking the company tag should show the list of questions asked by that company #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
styling updates, add header to explain the score property, update tit…
…le with company name from local storage
  • Loading branch information
zubyj committed Jul 1, 2023
commit 8042bcc876e1b2522ee85351786d7cab5bd79ada
3 changes: 2 additions & 1 deletion src/popup/company.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ body {
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: 0;
padding: 20px;
}
Expand Down Expand Up @@ -46,5 +47,5 @@ a {
}

a:hover {
color: #a0a0a0;
color: lightcyan;
}
5 changes: 4 additions & 1 deletion src/popup/company.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
<body>
<h1 id="title">Amazon</h1>
<p>
Score = How many times this question has been asked in interviews in the past 2 years.
<b>Score </b>= How likely the company is to ask this question on a scale of 1-10
</p>
<p>
Data collected from 2021-2023
</p>
<table id="solutionTable">
<tr>
Expand Down
6 changes: 1 addition & 5 deletions src/popup/company.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function main() {

let companyName = "Amazon";

let solutions = [];

chrome.storage.local.get("clickedCompany", function (data) {
companyName = data.clickedCompany;
Expand All @@ -10,10 +10,6 @@ function main() {
});

chrome.storage.local.get("leetcodeProblems", function (data) {
let solutions = [];

console.log(data);

data.leetcodeProblems.questions.forEach(question => {
if (!question.companies) return;
question.companies.forEach(company => {
Expand Down