Sha256: 66f0b83fcdf9c12fa3e356abe1858c9b41533e9d1522bd8fd5233f64f6eab778

Contents?: true

Size: 972 Bytes

Versions: 63

Compression:

Stored size: 972 Bytes

Contents

// APPLICATION.JS
// In jQuery if you dont mind.


// Cufon
Cufon.replace( "", {hover: 'true',fontFamily: 'Helvetica Neue LT Std'});


$(document).ready(function () {
  
  // Gallery
   if($("ul.gallery li").length > 3) { 
      $("#gallery").prepend("<a class='carousel-back'>Backward</a>");
      $("#gallery").append("<a class='carousel-forward'>Forward</a>");
      
      $(".image-gallery").jCarouselLite({
         visible: 3,
         btnNext: ".carousel-forward",
         btnPrev: ".carousel-back"
      });
    };
  
  // Use fancy box on all images that link to an image
  $("a[href$=jpg], a[href$=png], a[href$=gif]").fancybox({
      'zoomOpacity'     : true,
      'overlayShow'     : true,
      'zoomSpeedIn'     : 500,
      'zoomSpeedOut'      : 500,
      'overlayOpacity'    : 0.8,
      'overlayColor'      : '#000'
  });
  
  // External links open in a new tab/window
  $("a[href^=http]").attr('target', '_blank');
  

}); // close document.ready  

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
noodall-ui-0.3.20 public/javascripts/application.js
noodall-ui-0.3.19 public/javascripts/application.js
noodall-ui-0.4.4 public/javascripts/application.js
noodall-ui-0.4.1 public/javascripts/application.js
noodall-ui-0.4.0 public/javascripts/application.js
noodall-ui-0.3.17 public/javascripts/application.js
noodall-ui-0.3.16 public/javascripts/application.js
noodall-ui-0.3.15 public/javascripts/application.js
noodall-ui-0.3.14 public/javascripts/application.js
noodall-ui-0.3.13 public/javascripts/application.js
noodall-ui-0.3.12 public/javascripts/application.js
noodall-ui-0.3.11 public/javascripts/application.js
noodall-ui-0.3.8 public/javascripts/application.js
noodall-ui-0.3.7 public/javascripts/application.js
noodall-ui-0.3.6 public/javascripts/application.js
noodall-ui-0.3.5 public/javascripts/application.js
noodall-ui-0.3.4 public/javascripts/application.js
noodall-ui-0.3.3 public/javascripts/application.js
noodall-ui-0.3.2 public/javascripts/application.js
noodall-ui-0.3.1 public/javascripts/application.js