Skip to content

Commit

Permalink
cleaned up console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
colarusso committed Aug 22, 2023
1 parent f78548d commit 4ef0d8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ <h4>History</h4>

const lastLoad = localStorage.getItem("lastLoad") || 0;
var time_padding = Date.parse(new Date())-300000
console.log(lastLoad, time_padding)
//console.log(lastLoad, time_padding)
if (lastLoad>time_padding) {
loadFeeds = false;
}
Expand Down Expand Up @@ -646,7 +646,7 @@ <h5 class="card-title">${title}</h5>
score = 0
}

console.log(score)
//console.log(score)

return score;
}
Expand Down Expand Up @@ -855,8 +855,7 @@ <h5 class="modal-title" id="errorModalLabel">Error Fetching Feed</h5>
document.getElementById('upwords').innerHTML = topWords(upTFIDF);
document.getElementById('downwords').innerHTML = topWords(downTFIDF);

console.log("TF-IDF: "+readArticleData.length+" 'read' documents","\nUp: "+upvotedArticleData.length+" documents, "+Object.keys(upTFIDF).length+" words"
,"\nDown: "+downvotedArticleData.length+" documents, "+Object.keys(downTFIDF).length+" words\n");
//console.log("TF-IDF: "+readArticleData.length+" 'read' documents","\nUp: "+upvotedArticleData.length+" documents, "+Object.keys(upTFIDF).length+" words","\nDown: "+downvotedArticleData.length+" documents, "+Object.keys(downTFIDF).length+" words\n");

localStorage.setItem("articles", JSON.stringify(articles.slice(-1000)));
}
Expand Down Expand Up @@ -915,7 +914,6 @@ <h5 class="modal-title" id="errorModalLabel">Error Fetching Feed</h5>
addFeedButton.addEventListener("click", function() {
const newFeedUrl = prompt("Enter a new RSS feed URL:");
if (newFeedUrl) {
console.log("New Feed")
let lastLoad = 0;
localStorage.setItem("lastLoad", 0);
rssFeeds.push(newFeedUrl);
Expand Down

0 comments on commit 4ef0d8f

Please sign in to comment.