Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@advertol/context-media-query
Advanced tools
Control zone visibility with CSS media query listeners.
Control zone visibility with CSS media query listeners.
npm install @advertol/context-media-query --save
import advertol from '@advertol/core';
import MediaQueryContext from '@advertol/context-media-query';
const instance = advertol({
// …
context: [
new MediaQueryContext({
'screen and (min-width:1000px) and (max-width:1199px)': [ 'becky', 'lucy', 'maggie' ],
'screen and (min-width:1500px)': [ 'becky', 'lucy', 'maggie', 'madison', 'ziggy', 'ruby' ],
'screen and (min-width:915px) and (max-width:999px)': [ 'becky', 'lucy', 'maggie', 'maggie' ],
'screen and (min-width:1200px) and (max-width:1499px)': [ 'becky', 'lucy', 'maggie', 'madison', 'ziggy' ],
'screen and (min-width:728px) and (max-width:914px)': [ 'becky', 'maggie' ],
'screen and (max-width:599px)': ['bruno']
})
]
});
instance.resolve();
Type: Object
List of media query contexts and zones for context.
Each object property has:
Tested in IE9+ and all modern browsers, assuimg window.matchMedia
and window.matchMedia
listeners support is available.
For automated tests, run npm run test:automated
(append :watch
for watcher support).
MIT © Ivan Nikolić
[1.0.0][] - 2019-04-01
FAQs
Control zone visibility with CSS media query listeners.
We found that @advertol/context-media-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.