This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.placeholder(@color) { | |
// WebKit, Blink, Edge | |
::-webkit-input-placeholder { | |
color: @color; | |
} | |
// Mozilla Firefox 4 to 18 | |
:-moz-placeholder { | |
opacity: 1; | |
color: @color; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script> | |
function balance(assets, portfolioWorth) { | |
try { | |
var portfolio = {}; | |
var numberOfAssets = Object.keys(assets).length; | |
var moneyPerAsset = portfolioWorth / numberOfAssets; |