Sha256: 8f96355b7cbfd9d732504949cfe28152012bd5b84447d0ee0e053f82bb7839ad

Contents?: true

Size: 1.39 KB

Versions: 5

Compression:

Stored size: 1.39 KB

Contents

let Site = {

  mobile : {
    active : true
  },

  tablet : {
    active : false,
    width  : 768
  },

  desktop : {
    active : false,
    width  : 1200
  },

  focus : false,

  topbar : {
    lnk : ".link.navigation"
  },

  scroll  : {
    lnk : ".lnk.scroller"
  },

  chapter : {
    target : ".wrap.type-chapter"
  },

  page : {
    artwork : ".area.page-artwork",
    share   : ".util-share",
    url     : ".util-url",
    height  : 560
  },

  code : {
    page   : ".wrap.type-page.style-docs",
    expand : ".block.expand-block",
    wrap   : ".code-wrap",
    scss   : ".code-scss",
    html   : ".code-html"
  }

};

Site.mobile.query = "screen and (max-width:" + (Site.tablet.width - 1) + "px)";
Site.tablet.query = "screen and (min-width:" +  Site.tablet.width + "px) and (max-width:" + (Site.desktop.width - 1) + "px)";
Site.desktop.query = "screen and (min-width:" +  Site.desktop.width + "px)";

enquire.register(Site.mobile.query,{

  match : function() {
    Site.mobile.active = true;
    Site.tablet.active = false;
    Site.desktop.active = false;
  }

});

enquire.register(Site.tablet.query,{

  match : function() {
    Site.mobile.active = false;
    Site.tablet.active = true;
    Site.desktop.active = false;
  }

});

enquire.register(Site.desktop.query,{

  match : function() {
    Site.mobile.active = false;
    Site.tablet.active = false;
    Site.desktop.active = true;
  }

});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
futuro-0.7.4 assets/js/header/custom/Site.js
futuro-0.7.3 assets/js/header/custom/Site.js
futuro-0.7.2 assets/js/header/custom/Site.js
futuro-0.7.1 assets/js/header/custom/Site.js
futuro-0.7.0 assets/js/header/custom/Site.js