,

Welcome to the New Office: The Furniture Tracks Your Every Move

Welcome to the New Office: The Furniture Tracks Your Every Move | Inc.com

‘;

$(‘section#search-results’).empty().append(top);

if ($(‘#search-input’).text() != ”) {
for (i = 0; i

‘ + searchedData[i].rank + ‘

‘ + growth + ‘

‘ + revenue + ‘

‘ + searchedData[i].industry + ‘

‘ + searchedData[i].country + ‘

‘;

$(‘section#search-results’).append(row);
}
} else {
$(‘section#search-results’).html(‘

Please search above.

‘);
}
}

function searchData() {
searchedData = _.filter(returnedData, function(item) {
// return searchTerm.test(item.company) || searchTerm.test(item.city) || searchTerm.test(item.state_l) || searchTerm.test(item.industry);
return searchTerm.test(item.company);
});

showData();
}

function numberWithCommas(x) {
var parts = x.toString().split(“.”);
parts[0] = parts[0].replace(/B(?=(d{3})+(?!d))/g, “,”);
return parts.join(“.”);
}

function roundRevenue(rev) {
var revenue = Math.round(rev);
var rLength = revenue.toString().length;

var rW = [];

revenue = revenue.toString();

switch(rLength) {
case 12:
rW[1] = revenue.substring(0,3);
rW[2] = revenue.substring(3,4);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘b’;

return revenue;

break;

case 11:
rW[1] = revenue.substring(0,2);
rW[2] = revenue.substring(2,3);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘b’;

return revenue;

break;

case 10:
rW[1] = revenue.substring(0,1);
rW[2] = revenue.substring(1,2);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘b’;

return revenue;

break;

case 9:
rW[1] = revenue.substring(0,3);
rW[2] = revenue.substring(3,4);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘m’;

return revenue;

break;

case 8:
rW[1] = revenue.substring(0,2);
rW[2] = revenue.substring(2,3);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘m’;

return revenue;

break;

case 7:
rW[1] = revenue.substring(0,1);
rW[2] = revenue.substring(1,2);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘m’;

return revenue;

break;

case 6:
rW[1] = revenue.substring(0,3);
rW[2] = revenue.substring(3,4);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘k’;

return revenue;

break;

case 5:
rW[1] = revenue.substring(0,2);
rW[2] = revenue.substring(2,3);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘k’;

return revenue;

break;

case 4:
rW[1] = revenue.substring(0,1);
rW[2] = revenue.substring(1,2);

if (rW[2] > 0) {rW[0] = ‘.’;} else {rW[0] = ”; rW[2] = ”;}

revenue = ‘$’ + rW[1] + rW[0] + rW[2] + ‘k’;

return revenue;

break;
}
}
}
});





Welcome to the New Office: The Furniture Tracks Your Every Move inclogo white 20px

These High-Tech Offices Track Their Employees With Sensors







Source Link

Create a shortened URL

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz
What happens next after President Trump says 'I am being investigated' d6cf8abc3598d3f3d15402d3819d8671 150x150

What happens next after President Trump says 'I am being investigated'

How do Navy ships operate?