@electronic-minds/adventure-js

0.0.21 • Public • Published

Adventure JavaScript Utilities

This package serves as the foundation for all other Adventure components but it can be the base of your project, too.

Install

npm i @electronic-minds/adventure-js

Usage

import * as adventure from '@electronic-minds/adventure-js';

Examples

this.breakpointProvider = new adventure.BreakpointProvider();

window.matchMedia(`(min-width: ${this.breakpointProvider.breakpoints.large})`).addListener(() => {
    // init logic that is needed on larger viewports
});

if (window.matchMedia(`(max-width: ${this.breakpointProvider.breakpoints.medium})`).matches) {
    // code that only needs to run on small viewports
}

Package Sidebar

Install

npm i @electronic-minds/adventure-js

Weekly Downloads

1

Version

0.0.21

License

UNLICENSED

Unpacked Size

16.6 kB

Total Files

21

Last publish

Collaborators

  • alexanderjakob
  • tomm1996
  • baedda
  • dominiklaube