Skip to content
Snippets Groups Projects
Select Git revision
  • 3730ab7c22776b93e4ce990a530504eb93358f81
  • master default protected
  • 2.0.0-alpha-11
  • 2.0.0-alpha-10
  • 2.0.0-alpha-9
  • 2.0.0-alpha-8
  • 2.0.0-alpha-7
  • 2.0.0-alpha-6
  • 2.0.0-alpha-5
  • 2.0.0-alpha-4
  • 2.0.0-alpha-3
  • 2.0.0-alpha-2
  • 2.0.0-alpha-1
  • 1.8.0
  • 1.7.0
  • 1.6.4
  • 1.6.3
  • 1.6.2
  • 1.6.1
  • 1.6.0
  • 1.5.5
  • 1.5.4
22 results

postinstall.js

Blame
  • Forked from TO / Weby / ui-styleguide
    Source project has a limited visibility.
    utils.js 447 B
    export const forEachNode = function (array, callback, scope) {
      for (var i = 0; i < array.length; i++) {
        callback.call(scope, array[i]); // passes back stuff we need
      }
    };
    
    export function getWindowWidth() {
      return Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
    }
    
    export function isMdScreenSize() {
      return getWindowWidth() >= 768;
    }
    
    export function isLgScreenSize() {
      return getWindowWidth() >= 1200;
    }