API Documentation

Load Events
//onload
petrojs.onload(function(){
	//your code goes here
},window.petrojs);
$petrojs('elem').onload(function(){
	//your code goes here
},window.petrojs);
$petrojs('elem').onerror(function(){
	//your code goes here
},window.petrojs);
$petrojs('elem').onunload(function(){
	//your code goes here
},window.petrojs);
$petrojs('elem').onresize(function(){
	//your code goes here
},window.petrojs);