Sha256: e85d53cab82a6c2f60b3e0d7ba7034341796e272eb5d21f38809d898b3c11db4

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

//= require jquery
//= require jquery_ujs
//= require modernizr
//= require twitter/bootstrap/dropdown
//= require twitter/bootstrap/modal
//= require twitter/bootstrap/button
//= require fastclick.min_
//= require_tree .

function resizeFix() {
  if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
    var viewportmeta = document.querySelector('meta[name="viewport"]');
    if (viewportmeta) {
      viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
      document.body.addEventListener('gesturestart', function () {
        viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
      }, false);
    }
  }
}


$(document).ready(function() {
  resizeFix();

  if (Modernizr.touch) {
    new FastClick(document.body);
  }

  $('.touch .content-item').on('click', function() {
    window.location = $(this).find('a').attr('href');
  });

  $('.touch .outline tr').on('click', function(e) {
    window.location = $(this).find('a').attr('href');
  });

});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
woople-theme-0.2.2 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.1 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.0 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.1.0 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.0.6 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.0.5 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.0.4 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.0.3 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.0.2 app/assets/javascripts/woople-theme/theme.js