Sha256: e63a60bfa82d99d7e848c152fc0a0ce595c0a03ba580c71ff66ca22ea1d790e2

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 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 video.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

6 entries across 6 versions & 1 rubygems

Version Path
woople-theme-0.2.8 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.7 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.6 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.5 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.4 app/assets/javascripts/woople-theme/theme.js
woople-theme-0.2.3 app/assets/javascripts/woople-theme/theme.js