Page History
...
$(document).ready(function ()
{
var StokDurum = 0.0;
$(".item-row").each(function( index ) {
var newval = parseFloat($( $( this ).find("td")[5]).text().replace('.','').replace(',','.'));
if(newval < 0.0){ $( $( this ).find("td")[5]).html("<div style='color:red;'><b>"+$($( this ).find("td")[5]).text()+"</b></div>"); }
if(newval == 0.0){ $( $( this ).find("td")[5]).html("<div style='color:#E07F2C;'><b>"+$($( this ).find("td")[5]).text()+"</b></div>"); }
if(newval > 0.0){ $( $( this ).find("td")[5]).html("<div style='color:green;'><b>"+$($( this ).find("td")[5]).text()+"</b></div>"); }
});
});
Ornek 5
Viewtracker |
---|