Global

Members

(constant) filter_all :number

Source:
Type:
  • number

(constant) filter_applied :number

Default Value:
  • 3
Source:
Type:
  • number

(constant) filter_interview :number

Default Value:
  • 5
Source:
Type:
  • number

(constant) filter_offer :number

Default Value:
  • 6
Source:
Type:
  • number

(constant) filter_rejected :number

Default Value:
  • 1
Source:
Type:
  • number

(constant) filter_screening :number

Default Value:
  • 4
Source:
Type:
  • number

(constant) filter_unapplied :number

Default Value:
  • 2
Source:
Type:
  • number

(constant) num_of_card :number

Source:
Type:
  • number

Methods

add_jobs_to_document(jobs, status_filter)

Takes in an array of jobs and for each job creates a new element, adds the recipe data to that card using element.data = {...}, and then appends that new job to
Can also append specific jobs to main depending on the job status which can be specified by statusFilter parameter
Source:
Parameters:
Name Type Description
jobs Array.<Object> An array of jobs
status_filter number status to filter jobs

filter_button_listener()

Updates the filter buttons by retrieving which filter was clicked and updates the job cards to show the cards that were filtered
Source:

get_jobs_from_storage() → {Array.<Object>}

Reads 'jobs' from localStorage and returns an array of all of the jobs found (parsed, not in string form). If nothing is found in localStorage for 'jobs', an empty array is returned.
Source:
Returns:
Type:
Array.<Object>
An array of jobs found in localStorage

init_form_handler()

Adds the necesarry event handlers to
and the clear storage
Source:

update_filter(ul, filter_num)

Makes a specific filter bubble purple and makes all others white.
Source:
Parameters:
Name Type Description
ul Object The filter bar
filter_num number The current filter (bubble) we have clicked