Skip to content

Refactor the wins page code to be cleaner #1066

@jbubar

Description

@jbubar

Overview

I learned from akib about the html template element which can be used to significantly reduce the amount of code needed for the wins page

Action Items

  • rewrite the makeCards function to populate a template rather than all the creating elements and appending children that is going on
  • make sure that it continues to work with the see more functionality, including the measuring of the div's height.

Resources/Instructions

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions