Commit 8eae9542 by Manzar Hussain

update js

parent c5f3d3b3
...@@ -254,6 +254,14 @@ ...@@ -254,6 +254,14 @@
$.ajax(settings).done(function (response) { $.ajax(settings).done(function (response) {
$('#bse').text("BSE:"+response.price.regularMarketPrice.raw); $('#bse').text("BSE:"+response.price.regularMarketPrice.raw);
if(regularMarketChangePercent.substring(0,1)=='-')
{
$('#bse').parent('li').addClass('down');
}
else
{
$('#bse').parent('li').removeClass('down');
}
console.log(response.price.regularMarketPrice); 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