test 2

[wpgetapi_endpoint api_id=’hFPCMRnN8RekEUrvPjQc’ endpoint_id=’bvn2′ debug=’false’]

Field1
36°C

 

[otpless_button_signin]

 

// Replace sports with the topic of the page of your choice
var pathArray = window.location.pathname.split(‘/’);
var topic = pathArray[2]; //or use any string you want like: “sports”
// On 3rd visit to this topic tag user set
// Change to any number you want. 0 or 1 will tag user on 1st visit
var numVisitsTrigger = 1;

if (typeof localStorage !== “undefined”) {
var topicVisits = parseInt(localStorage.getItem(topic), 10);
if (!isNaN(topicVisits)) {
topicVisits += 1;
} else {
topicVisits = 0;
}
localStorage.setItem(topic, topicVisits)

if (topicVisits >= numVisitsTrigger) {
OneSignal.User.addTag(topic, topicVisits);
}
}