Skip to content

Conversation

@schneedotdev
Copy link
Member

This merge includes -

file additions:

  • index.ejs

server-side:

  • serve index.ejs at base endpoint
  • respond with json only through other endpoints
  • move resources to resources.js

client-side:

  • added search bar functionality
  • on base endpoint request, render resources array
  • render matches on button click

main.js:

  • added functions getMatches(); which returns resource objects based on a keyword given by a user
  • added renderMatches(); which renders the getMatches() result to DOM

index.ejs:

  • on load loop through resources array and render each object to the DOM in the
      with a class of "result-list"

    css changes:

    • result div styling
    • scroll bar for api matches

    TODO:

    • add "Enter" keypress event listener for search
    • add endpoint instructions in section with a class of documentation

@20jasper 20jasper merged commit 1ea0265 into test Jun 12, 2022
@20jasper 20jasper deleted the search-keywords branch June 12, 2022 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants