We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Pulling the html class and id - who can do it?

Development and Programming

Paradise's avatar
Paradise
84 posts
15 years ago
Paradise's avatar Paradise

Hi,

i have a big problem. I need to check for the html class without javascript. So that brought up the idea of a plugin that can do that. I think for the plugin writers out there such a plugin/extension is done in a view minutes 😊

So the big thing i think - the thing that would let as do cool stuff with suche an extension is in interaction with Modernizer… Actions based on if the browser supports it or not.

{if htmlclass=="js canvas"}
 yehaa
{if else}
 looser
{/if}

My big problem is i need to embed something if JavaScript is off

{if htmlclass=="no-js"}
{embed="something"}
{/if}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.