Commit c5f3d3b3 by Manzar Hussain

update down class

parent 6761aa89
......@@ -270,6 +270,17 @@
$.ajax(settings1).done(function (response) {
$('#nse').text("NSE:"+response.price.regularMarketPrice.raw);
var regularMarketChangePercent = response.price.regularMarketChangePercent.fmt;
if(regularMarketChangePercent.substring(0,1)=='-')
{
$('#nse').parent('li').addClass('down');
}
else
{
$('#nse').parent('li').removeClass('down');
}
console.log(response.price.regularMarketPrice);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment