Js Widget
Enable your website to show news from our Global Fast-Check Database
Prerequisites
To use our widget you will need to have the API Key, if you don't have one please request to our team at https://turnbackhoax.id/tentang-kami/kontak-kami/
Installation and Setup
Put these line of code inside your header tag
The widget is based on jQuery javascript library, so you will need to include jQuery as well.
Options Parameter
Type
Value
Value
type
Description
list
string
Show list of news
single
string
Show only single news
Example
Please check all files on the sample code below
Method
Value
Value
Type
Description
latest
string
Get latest news
random
string
Get random news
property
string
Get news with specified property
Example
Please check all files on the sample code below
Prop Parameter
When you use method 'property' at your plugin there will be selection of 'prop' value.
Property Type Value
Description
id
Show news which id is as defined in the value
kesimpulan
Show news which conclusion contains defined text in the value
sumber
Show news which source is same with defined text in the value
isi
Show news which content contains defined text in the value
tags
Show news which tagged with defined text in the value
Value Parameter
This parameter function differently on the three method stated above
Method name
Value parameter usage
Latest
Number of news to show/displayed in the widget
Random
Number of news to show/displayed in the widget
Property
Value of property params, see example for clearer use case
Last updated