• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

"Enterprise" HTML/CSS/JS

Brogan

XenForo moderator
Staff member
#2
This one made me chuckle :D

EXTREMELY DESCRIPTIVE SELF-DOCUMENTING VARIABLE NAMES
PHP:
function CatObjectThatInheritsAnimal() {
 this.yellowFurColorString = "yellow";
 this.animalsAgeInYears = 10;
}

CatObjectThatInheritsAnimal.prototype = new AnimalObjectThatInheritsNothing;
http://enterprise-js.com/2
 

Dismounted

Well-known member
#3
This one too:

Make sure your CSS file names do everything but end in .css.
Code:
/en/shared/core/2/css/css.ashx?sc=/en/us/site.config&pt=cspMscomHomePage&c=c
spMscomSiteBrand;cspSearchComponent;cspMscomFeaturePanel;cspMscomMasterNavigation;cs
pMscomNewsBand;cspVerticalRolloverTab;cspAdControl;cspMscomVerticalTab;cspSilverGate
http://enterprise-css.com/8 :D
 

Lucas

Well-known member
#6
CODING WITH IE8 IN MIND... AND IE7... AND IE6...

Code:
<head>
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <!--[if IE]><link rel="stylesheet" type="text/css" href="/css/ie-all.css" /><![endif]-->
    <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="/css/ie7.css" /><![endif]-->
    <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="/css/ie6.css" /><![endif]-->
</head>
lol
 

Trip

Active member
#8
"Use HTML5 to link links to functions that link to links." What? haha
I had to do the same thing with IE7,IE6. I didn't think anything of it at the time, now I see it again wrapped in code tags, it looks absolutely silly :confused: