Skip to content
Snippets Groups Projects
Select Git revision
  • 645d052273eda13a4970d4251313657d1ca137eb
  • master default protected
  • dependabot/pip/py-1.10.0
  • dependabot/pip/django-2.2.13
  • dependabot/pip/bleach-3.1.4
5 results

conftest.py

Blame
  • 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;
    }