FREQUENCY JS

GET


frequency.get('assets/php/link1.php',function(z){
  console.log(z);
  _('h3').innerText = z;
});

GET JSON


frequency.getJSON('assets/php/linkjson.php',function(z){
  console.log(z);
});

BUILD JSON


frequency.getJSON('assets/php/linkjson2.php',function(z){
  frequency.buildJSON(z.messages,"#build1",function(x){
return ''+x+'*';
  });
});

POST


frequency.post('assets/php/post.php','x=5&y=12',function(z){
  console.log(z);

});

RELOAD PAGE


frequency.reload();

REDIRECTION


frequency.href('http://google.com');
frequency.href('http://google.com','800.500');
});

LOCAL IP


frequency.localIP(function(e){
alert('locatl IP '+e)
});

FM


frequency.fm(15200);

MF


frequency.mf("15 200,00");

EAN13 BARCODE


// generate
frequency.ean13();
frequency.ean13('200');
// last digit add
frequency.ean13('123456789123');
// check if valide EAN13
let barcode = '1234567891231';
frequency.ean13(barcode) == barcode;

WORKER


frequency.worker("worker.js",function(data){
  console.log(data);
});