function fnNational(){ //alert('line 3 of code shalu2.js'); fne('shalu',2,3,4,5); } function fnNational2(){ //alert('line 3 of code shalu2.js'); fne(1,'shalu',3,4,5); } function fnNational3(){ //alert('line 3 of code shalu2.js'); fne(1,2,'shalu',4,5); } function fnNational4(){ //alert('line 3 of code shalu2.js'); fne(1,2,3,'shalu',5); } function pinNews(){ //alert('line 3 of code shalu2.js'); fne($($(this).parents('.nlaj')).attr('id'),'pin',$($(this).parents('.nlaj')).attr('id')); } function newsTag(){ //alert('line 3 of code shalu2.js'); fne($($(this).parents('.news--tags-full')).attr('id'),'tagnews',$($(this).parents('.news--tags-full')).attr('id')); } function sbbttn(){ //alert('line 3 of code shalu2.js'); fne($($(this).parents('.bt ')).attr('id'),'tagnews',$($(this).parents('.bt')).attr('id')); } function postCmt(){ //alert('line 3 of code shalu2.js'); fne($($(this).parents('."btn')).attr('id'),'tagnews',$($(this).parents('."btn')).attr('id')); } $.fn.extend({ bv: function(){ if($(this).attr('msdv')){ return $(this).attr('msdv'); }else{return 0; } }, bx: function(){ if($(this).attr('msbc')){ return $(this).attr('msbc'); }else{ return 0;} }, by: function(){ if($(this).attr('msfc')){ return $(this).attr('msfc'); }else{return 0; } }, bz: function(){ if($(this).attr('udc')){ return $(this).attr('udc'); }else{return 0;} }, ba: function(){ if($(this).attr('udv')){ return $(this).attr('udv'); }else{return 0;} }, gj: function(){ var asd=$(this).class(); //var d="rrr"; //alert(asd); } }); jQuery(function ($) { (function() { $('.pnig').on('click', function(ev) { //alert("it is working"); fne($($(this).parents('.nlaj')).attr('id'),'shalu',3); }); }); });