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)
- Host: GitHub
- URL: https://github.com/lionel-m/classjs
- Owner: lionel-m
- Created: 2012-04-17T10:29:01.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-02-04T19:33:43.000Z (about 8 years ago)
- Last Synced: 2025-01-28T03:18:21.154Z (3 months ago)
- Topics: contao, symfony-bundle
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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))
[](https://packagist.org/packages/lionel/classjs)
[](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`.