Skip to content

Make popup functional

I have made dummy functions that are called on clicking the 'Fake News' and 'News Origin' buttons. Result when the buttons are clicked:

  1. Fake News Button - The function calculates the probability of an article being clickbait or fake and then displays a progress bar. The progress bar has different colors that depend on the probability which is calculated.
  2. News Origin Button - The function returns the origin of the news

I also made some minor changes to the style of the buttons, specifically its background color and the scale value on hover

fakenewsbtn_screenshot newsoriginbtn_screenshot

Merge request reports