Missing Quotes for Some Minutes #3
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Description
There are missing quotes for certain minutes throughout the day. This results in some time slots not displaying any quotes directly related to the current time, which detracts from the user experience.
Current Workaround: Nearest Neighbor Algorithm
To address this issue temporarily, there's a nearest neighbor algorithm implemented. When the application cannot find a quote for the exact current minute, it searches for the closest available quote. This approach ensures that a quote is always displayed, but it might not always match the specific minute, affecting the relevance and impact of the quote displayed.
Adding New Quotes
To enhance the application and minimize the reliance on the nearest neighbor algorithm, we're inviting contributions of new quotes. By expanding the quote database, we can ensure a more relevant and engaging user experience, with quotes that more accurately match each minute of the day.
Quote Formatting
Each quote should be formatted as follows:
time|timestring|quote|title|author
14:45
).quarter to three
).For example:
00:00|midnight|It starts at midnight.|Catching Fire|Suzanne Collins
Where to Add The Quotes
Navigate to the
script.js
file in the project, and you'll find an string namedcsvData
. Add your formatted quote to this array, following the existing structure.The text was updated successfully, but these errors were encountered: