Created
August 8, 2012 20:43
-
-
Save lroggendorff/3298602 to your computer and use it in GitHub Desktop.
The thing with the other thing
This file contains 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
<script> | |
Modernizr.load([ | |
{ | |
load: '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', | |
complete: function () { | |
if ( !window.jQuery ) { | |
Modernizr.load('/scripts/jquery-1.7.2.min.js'); | |
} | |
} | |
}, | |
{ | |
// This will wait for the fallback to load and | |
// execute if it needs to. | |
load: [ '/scripts/minified/global-function.js', '/scripts/minified/plugins/jquery.flexslider.js', '/scripts/minified/plugins/jquery-carousel.js', | |
'/scripts/minified/hover-intent.js', '/scripts/nav.js', '/scripts/minified/qtip.js', '/scripts/date.js', '/scripts/disclaimer.js' ] | |
}, | |
{ | |
load: '/scripts/underscore-min.js' | |
}, | |
{ | |
load: [ '/scripts/plugins/jquery.tubeplayer.min.js', '/scripts/minified/plugins/jquery.utubefeed.js', | |
'/scripts/minified/plugins/jquery.flickrfeed.js' ] | |
}, | |
{ | |
load: '/scripts/minified/fitness.js' | |
}, | |
{ | |
load: [ '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js', '//platform.twitter.com/widgets.js', | |
'https://apis.google.com/js/plusone.js' ] | |
}, | |
{ | |
load: 'http://widgets.twimg.com/j/2/widget.js', | |
complete: function() { | |
#if($pagetitle.contains("Meet Our Team")) | |
var bioTwitterBox = $('.bio-twitter-feed'); | |
if (bioTwitterBox.length > 0) { | |
new TWTR.Widget({ | |
id: 'twitter-box', | |
version: 2, | |
type: 'search', | |
search: $('.bio-twitter-feed').filter(':first').attr('data-twitter-kwds'), | |
rpp: 3, | |
interval: 30000, | |
title: '', | |
subject: '', | |
width: 430, | |
height: 300, | |
theme: { | |
shell: { | |
background: '', | |
color: '' | |
}, | |
tweets: { | |
background: '#00609e', | |
color: '#ffffff', | |
links: '#ffffff' | |
} | |
}, | |
features: { | |
scrollbar: false, | |
loop: false, | |
live: false, | |
behavior: 'all' | |
} | |
}).render().start(); | |
} | |
#else | |
new TWTR.Widget({ | |
version: 2, | |
type: 'profile', | |
id: 'twitter-box', | |
rpp: 3, | |
interval: 30000, | |
width: 60, | |
height: 300, | |
theme: { | |
shell: { | |
display: 'none' | |
}, | |
tweets: { | |
color: '#000000', | |
links: '#4aed05' | |
} | |
}, | |
features: { | |
scrollbar: false, | |
loop: false, | |
live: true, | |
behavior: 'all' | |
} | |
}).render().setUser('FitnessGov').start(); | |
#endorwhatever | |
} | |
} | |
]); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment