Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Latest commit

 

History

History

fonoapi-js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

GitHub stars GitHub issues GitHub license [Twitter](https://twitter.com/intent/tweet?text=fonoApi - Mobile Device Description Api (https://github.com/shakee93/fonoapi/) so cool check it out)

#fonoApi - jQuery Library

jQuery Makes life easier, i thought it would be nice to have a jQuery library.. so here it is

Play in Codepen Demo - here

####How to use


// set token globally if you wish
// $.fn.fonoApi.options.token = "XXX";

$('.api').fonoApi({
		token : "xxx",
		device : "i9305",
		template : function() {
			// your custom template or default template works
			// data object available here as argument
		}
});

easy as that..

Available options and method documentaion goes below..

available options

  token
  device
  brand
  position

overridable default options and methods

	$.fn.fonoApi.options = {
		url : "https://fonoapi.freshpixl.com/v1/getdevice",
		token : null,
		limit : 5,
		onComplete : null,
		onFailed : null,
		onDisplay : null,
		template : null
	};

available callbacks

  onComplete : triggers on process Completes
  onFailed : triggers on process failes or default works
  onDisplay : triggers on displays data

Hope it suffice !! if you have any bugs open new issue please read closed bugs before. give a star or send a pull anything..