https://github.com/heimrichhannot/contao-mediaquery
Contao library that sets an cookie via javascript containing browser dimension to check browser viewport dimension in php.
https://github.com/heimrichhannot/contao-mediaquery
Last synced: 30 days ago
JSON representation
Contao library that sets an cookie via javascript containing browser dimension to check browser viewport dimension in php.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-mediaquery
- Owner: heimrichhannot
- License: lgpl-3.0
- Created: 2015-09-18T14:06:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T16:07:04.000Z (over 5 years ago)
- Last Synced: 2025-01-20T00:52:47.360Z (6 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Contao MediaQuery
Contao library that sets an cookie via javascript containing browser dimension to check browser viewport dimension in php.
## Currently supported
- width/max-width/max-device-width check
- height/max-height/max-device-height checkFor detailed usage check 'HeimrichHannot\MediaQuery\ViewportTest.php'.
## Usage
```
\HeimrichHannot\MediaQuery\Viewport::matchQuery('(min-width: 800px and max-width: 1300px)');
```Will return true if current browser dimension is between 800px and 1300px, otherwise false.