# HG changeset patch # User Brian Neal # Date 1285558618 0 # Node ID 2b14840cb88247d3efbc3353c56fcce664af2312 # Parent 2a3285e32062340e318637016cfc905dfd9d2680 Fixing #127; using jquery cycle plugin to power the home page slideshow. diff -r 2a3285e32062 -r 2b14840cb882 gpp/templates/home.html --- a/gpp/templates/home.html Sun Sep 26 19:18:55 2010 +0000 +++ b/gpp/templates/home.html Mon Sep 27 03:36:58 2010 +0000 @@ -14,13 +14,27 @@ {% endblock %} {% block custom_js %} - + + {% endblock %} {% block content %}

Welcome to SurfGuitar101!

-
- Slideshow Image 1 +
+ Slideshow Image 1 Slideshow Image 2 Slideshow Image 3 Slideshow Image 4 diff -r 2a3285e32062 -r 2b14840cb882 media/js/slideshow.js --- a/media/js/slideshow.js Sun Sep 26 19:18:55 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/*** - Simple jQuery Slideshow Script - Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc. Please link out to me if you like it :) -***/ -// Modified by Brian Neal. - -function slideSwitch() { - var $active = $('#slideshow img.active'); - - if ( $active.length == 0 ) $active = $('#slideshow img:last'); - - // use this to pull the images in the order they appear in the markup - var $next = $active.next().length ? $active.next() - : $('#slideshow img:first'); - - $active.addClass('last-active'); - - $next.css({opacity: 0.0}) - .addClass('active') - .animate({opacity: 1.0}, 1000, function() { - $active.removeClass('active last-active'); - }); -} - -$(function() { - setInterval( "slideSwitch()", 5000 ); -});