From 2389d66da849798f8d4ec5f10e3b07c11da49185 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sat, 28 May 2011 13:28:16 -0400 Subject: Initial Commit --- webroot/js/functions.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 webroot/js/functions.js (limited to 'webroot/js/functions.js') diff --git a/webroot/js/functions.js b/webroot/js/functions.js new file mode 100755 index 0000000..02319d8 --- /dev/null +++ b/webroot/js/functions.js @@ -0,0 +1,46 @@ +// Kameleon Template +//Author: Chris Mooney (http://themeforest.net/user/ChrisMooney) + +// Cufon Setup +jQuery(document).ready(function($) { +Cufon.replace('h3,h4,h5,.process,#tagline '); + + +//Portfolio Hover Effect + $('.portfolio-small li img, .portfolio-list li img').hover(function() { + + $(this).children('a').show(); + $('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: .5 }, 300); + $(this).stop().css('opacity', 1); + + }, function() { + $('.portfolio-small li img, .portfolio-list li img').stop().animate({ opacity: 1 }, 300); + + }); + +//Homepage Screenshot Scroll +$(".scrollable").scrollable(); + + +//LightBox Setup + $('.portfolio-small a, .portfolio-list a').lightBox({ + fixedNavigation:true, + overlayOpacity: 0.8, + imageLoading: 'img/lightbox/lightbox-ico-loading.gif', + imageBtnClose: 'img/lightbox/lightbox-btn-close.gif', + imageBtnPrev: 'img/lightbox/lightbox-btn-prev.gif', + imageBtnNext: 'img/lightbox/lightbox-btn-next.gif', + imageBlank: 'img/lightbox/lightbox-blank.gif' + + }); + +// Tipsy Tooltips +$('.tooltip').tipsy({fade: true}); +$('.tooltip.north').tipsy({fade: true, gravity: 's'}); +$('.tooltip.east').tipsy({fade: true, gravity: 'w'}); +$('.tooltip.west').tipsy({fade: true, gravity: 'e'}); +// Form Tooltips +$('form [title]').tipsy({fade: true, trigger: 'focus', gravity: 'w'}); + + +}); -- cgit v1.2.3