Sha256: 6800a2fd8bc59a6fb5b5680713524a3ad1cbc8ef53f9589a2f9d433ac81dbcff

Contents?: true

Size: 1.78 KB

Versions: 9

Compression:

Stored size: 1.78 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1338918697.124813:@value"·{I"
class:EFI"ProcessedAsset;FI"logical_path;F"assessment_flipper.jsI"
pathname;F"P/Users/paul/Sites/woople-theme/app/assets/javascripts/assessment_flipper.jsI"content_type;FI"application/javascript;FI"
mtime;FI"2012-06-05T13:43:42-04:00;FI"length;Fi¼I"digest;F"%4f4695b0418c787dbe10eeb2fffb7410I"source;FI"¼$(document).ready(function() {
  function setFrontHeight(element) {
    var height = element.height();
    element.css({ height: height + 'px' }).attr('data-original-height', height);
  }

  function removeFrontHeight(element) {
    element.css({ height: 'inherit' });
  }

  $('.assessment .flip-action a').on('click', function() {
    $(this).closest('.assessment').addClass('flip');

    var front = $(this).closest('.front');
    setFrontHeight(front);

    var frontHeight = front.height();

    var back = $(this).closest('.front').next('.back');
    var backHeight = back.height();

    if (frontHeight > backHeight) {
      back.css({ height: '100%' });
    } else {
      front.css({ height: backHeight + 'px' });
    }
  });

  $('.assessment .flip-action-back a').on('click', function() {
    var assessment = $(this).closest('.assessment').removeClass('flip');
    var front = assessment.find('.front');
    removeFrontHeight(front);
  });
});
;FI"dependency_digest;F"%bd4edc7690f4a89cebcef91b6b4e4b2aI"required_paths;F["P/Users/paul/Sites/woople-theme/app/assets/javascripts/assessment_flipper.jsI"dependency_paths;F[{I"	path;F"P/Users/paul/Sites/woople-theme/app/assets/javascripts/assessment_flipper.jsI"
mtime;FI"2012-06-05T13:43:42-04:00;FI"digest;F"%4f4695b0418c787dbe10eeb2fffb7410I"
_version;F"%9f3b95dd7ea3030dc35985c0a8020862

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
woople-theme-0.8.13 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.8.7 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.27 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.26 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.25 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.23 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.21 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.20 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd
woople-theme-0.6.14 spec/dummy/tmp/cache/assets/EBC/BC0/sprockets%2Ff88a13bfdb32a0bc5dd8fd3ef2d9eafd