lionel / classjs
This extension adds the class "no-js" to the html tag and replaces it with the class "js" if JavaScript is enabled.
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: >=5.4.0
- contao/core-bundle: ^4.0
Replaces
- contao-legacy/classjs: 3.0.0
This package is not auto-updated.
Last update: 2024-11-23 15:16:45 UTC
README
This extension adds the default no-js
class. It replaces the class no-js
with js
if JavaScript is enabled.
<html class="no-js"> ... </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
.