Skip to content

Commit

Permalink
Merge pull request #18 from aniketdarp190301/revamp_Postion_
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyavaidya2311 authored Oct 19, 2023
2 parents 9024390 + 3c9b451 commit 4afcab4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 9 additions & 2 deletions static/js/companies_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ if (!data) {
{
company: "Amazon",
status: status_values[0],
applicationdate: "10/10/2023",
applicationdate: "10/09/2023",
duedate: "10/11/2023",
},
{
company: "Cisco",
status: status_values[1],
applicationdate: "10/10/2023",
applicationdate: "10/09/2023",
duedate: "10/11/2023",
},
{
Expand Down Expand Up @@ -167,6 +167,13 @@ document.addEventListener("DOMContentLoaded", () => {
const decodedStatus = decodeURIComponent(status);
new agGrid.Grid(gridDiv, gridOptions);
gridOptions.api.setQuickFilter(decodedStatus);

// Calculate the count of job applications with today's date
const today = new Date();
const todayDateString = `${today.getMonth() + 1}/${today.getDate()}/${today.getFullYear()}`;
const applied = data.filter((jobApplication) => jobApplication.applicationdate === todayDateString).length;



const addNewCompany = (company, status, applicationDate, dueDate) => {
const newCompany = {
Expand Down
4 changes: 3 additions & 1 deletion templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<script>


target = 40;
applied = 11;
applied = 1;
function setTarget() {
target = parseInt(document.getElementById("target").value);
draw();
Expand Down

0 comments on commit 4afcab4

Please sign in to comment.