<script type='text/javascript'> var jeremyLikness = { age: '~40', yearsWritingSoftware: '2 (many)', yearsWritingEnterpriseJavaScript: 20, hobbies: 'Hiking and Rock Climbing', favoriteSport: 'Pool, if you can call 9-ball a sport', wife: true, children: 2 }; </script>
Enterprise software is simply code that is made extremely complex for no apparent reason other than to require you to hire a large team of overpaid consultants just to make small changes.
if (navigator.appName.indexOf('Netscape') != -1) { document.write('To upgrade your browser go to ' + '<A HREF="http://home.netscape.com/download/">' + 'http://home.netscape.com/download/<\/A><\/P>'); if (navigator.appVersion.substr(0, 1) > 3) { document.write('You can use Netscape Dynamic HTML'); } } if (navigator.appName.indexOf('Microsoft') != -1) { document.write('To upgrade your browser go to ' + '<A HREF="http://www.microsoft.com/ie/">' + 'http://www.microsoft.com/ie/<\/A><\/P>'); if (navigator.appVersion.substr(0, 1) > 3) { document.write('You can use Microsoft Dynamic HTML'); } }
$("#id").hide();
<input ng-if="ctrl.show"/>
Versus
function hidediv(divId) { if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(divId).style.visibility = 'hidden'; } else { if (document.layers) { // Netscape 4 document.divId.visibility = 'hidden'; } else { // IE 4 document.all.divId.style.visibility = 'hidden'; } } }
<old><school way="to do it"/></old>
var x = { "the": { "new": "style" } };
https://github.com/JeremyLikness/Top10EnterpriseJS