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
Object.prototype.length = function() { | |
var count = 0, key; | |
for (key in this) { | |
if (this.hasOwnProperty(key)) count++; | |
} | |
return count; | |
} | |
/** | |
* Example of use |
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
/** | |
* Navigation menu inline right-to-left | |
*/ | |
* {margin: 0;padding: 0;box-sizing: border-box} | |
body {font-family: Verdana, Arial;background: #F5F5F5;min-height: 100%;} | |
nav { | |
width: 90%; | |
margin: 100px auto 0 auto; | |
background-color: #666; | |
box-shadow: 0 15px 10px -10px rgba(0,0,0, .5) |