1
2
3
4
5
(function($){$.fn.Thaana=function(r){this.each(function(){var $tObj=$(this);var oText=$tObj.text();var rText=oText;if(r==1){$tObj.css("font-family","Faruma, \"MV Elaaf Normal\"");$tObj.css("text-align","right");}
else if(r==2){rText=oText.split("").reverse().join("");$tObj.css("font-family","A_Ilham, A_Randhoo, A_Faruma, A_Waheed");$tObj.css("unicode-bidi","bidi-override");}
else if(r==3){rText=oText.split("").reverse().join("");$tObj.css("font-family","Faruma, \"MV Elaaf Normal\"");$tObj.css("text-align","right");}
else{rText=oText;$tObj.css("font-family","A_Ilham, A_Randhoo, A_Faruma, A_Waheed");$tObj.css("unicode-bidi","bidi-override");}
$tObj.css("direction","rtl");$tObj.text(rText);});return this;};})(jQuery);