An open API service indexing awesome lists of open source software.

https://github.com/lionel-m/classjs

Add the class "no-js" or "js" if JavaScript is enabled or not (Contao CMS)
https://github.com/lionel-m/classjs

contao symfony-bundle

Last synced: about 1 month ago
JSON representation

Add the class "no-js" or "js" if JavaScript is enabled or not (Contao CMS)

Awesome Lists containing this project

README

        

## Add the class "no-js" or "js" if JavaScript is enabled or not ([Contao CMS](https://contao.org/en))

[![Latest Stable Version](https://poser.pugx.org/lionel/classjs/v/stable)](https://packagist.org/packages/lionel/classjs)
[![License](https://poser.pugx.org/lionel/classjs/license)](https://packagist.org/packages/lionel/classjs)

This extension adds the default `no-js` class. It replaces the class `no-js` with `js` if JavaScript is enabled.

```html

...

```

### Installation

Add `"lionel/classjs": "~3.0"` in the `composer.json` file.

Add `new LionelM\ClassJsBundle\LionelMClassJsBundle(),` in the `app/AppKernel.php` file.

Run the command `php composer.phar update classjs`.