Created
April 12, 2012 20:57
-
-
Save dgs700/2370952 to your computer and use it in GitHub Desktop.
singleton / module obj that builds the scrolling logos element at the bottom of www.midpenbgc.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//dependent on jQuery and jquery.scrollable | |
var midPenBGC = (function ($) { | |
return{ | |
appendPartners: function(o){ | |
var params = o || {}, | |
ir = params.image_root || this.image_root || "/c/images/logos/", | |
elem = params.elem || "#partners", | |
partners = params.partners || this.partners || [], | |
imgElem = '<img src="' + ir + 'partner.jpg"/>', | |
length = partners.length, | |
tmp = [], | |
out = ''; | |
for( var i = length; i--; ){ | |
tmp.unshift( imgElem.replace('partner', partners[i])); | |
} | |
out = tmp.join(""); | |
$(elem).append(out); | |
} | |
}; | |
}(jQuery)); | |
midPenBGC.partners = [ | |
'aAmgen', | |
'aAtkinson', | |
'aBASHF', | |
'aCharlesSchwabFoundation', | |
'aCisco', | |
'aFredGellert', | |
'aGilmore', | |
'aGoogle', | |
'aGuardsmen', | |
'aKaiserPermanente', | |
'aKoret', | |
'aMills', | |
'aNFLAlumni', | |
'aPackard', | |
'aSFF', | |
'aUWBA', | |
'aUWSV', | |
'aWellsFargoFoundation', | |
'aYahooEmployee', | |
'AhSam', | |
'AlliedWaste', | |
'AmicisPizza', | |
'Astound', | |
'BohannonDevelopment', | |
'California', | |
'CarrMcClellan', | |
'Citibank', | |
'Comcast', | |
'CotchettPitreMcCarthy', | |
'CrownePlaza', | |
'DalyCity', | |
'DalyCityPolice', | |
'EA', | |
'FiduciaryTrust', | |
'FirstNational', | |
'FoxSecurity', | |
'Franklin', | |
'Genentech', | |
'Hitachi', | |
'JambaJuice', | |
'JJA', | |
'Juniper', | |
'Macys', | |
'MinutemanPress', | |
'OJJDP', | |
'Oracle', | |
'PacificGateway', | |
'PeninsulaHealth', | |
'PGE', | |
'RadioDisney', | |
'Recology', | |
'Salesforce', | |
'SanDisk', | |
'SanMateo', | |
'SanMateoCosmeticDentist', | |
'SanMateoPolice', | |
'SCProperties', | |
'Swinerton', | |
'UnionBank', | |
'WellsFargo' | |
]; | |
midPenBGC.appendPartners({image_root:window.image_root, elem:"#partners"}); | |
$("#scrollable").scrollable({size:5,speed:2E3,circular:!0}).autoscroll({steps:5,interval:2E3}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment