Sha256: fcb5225ebff61aa6e39afae5a799c44580b47944a17eb03d6d94a8bdeb7adf7a

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

// resize.js: Shining plugin for resizing the stage's base font size depending on available screen dimensions
Shining.pluginProcesses['resize'] = setInterval(function() {
  var width = $(window).width();
  if (width >= 640 && width < 800) {
    $('body').css({fontSize: '100%'});
  } else if (width >= 800 && width < 1024) {
    $('body').css({fontSize: '110%'});
  } else if (width >= 1024 && width < 1280) {
    $('body').css({fontSize: '120%'});
  } else if (width >= 1280 && width < 1440) {
    $('body').css({fontSize: '130%'});
  } else if (width > 1440) {
    $('body').css({fontSize: '140%'});
  }  
}, 500);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shining-2.0.1 lib/plugins/resize.js