aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/javascripts/octopress.js
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2013-03-09 17:14:33 -0600
committerBrandon Mathis <brandon@imathis.com>2013-03-09 17:14:33 -0600
commit98013543d9bb0c51e05236498bf4fbc92af678e1 (patch)
tree37e97b118fe9d12ea2469416adab469234501055 /.themes/classic/source/javascripts/octopress.js
parentcf5e90962627c4ce2ea5b08d452496621eb969e3 (diff)
downloadmy_new_personal_website-98013543d9bb0c51e05236498bf4fbc92af678e1.tar.xz
my_new_personal_website-98013543d9bb0c51e05236498bf4fbc92af678e1.zip
Removed Twitter and Ender.js. Added jQuery and updated Modernizr
Diffstat (limited to '.themes/classic/source/javascripts/octopress.js')
-rw-r--r--.themes/classic/source/javascripts/octopress.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index 775fd335..ebadb8e9 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -41,7 +41,7 @@ function addSidebarToggler() {
function testFeatures() {
var features = ['maskImage'];
- $(features).map(function(feature) {
+ $(features).map(function(i, feature) {
if (Modernizr.testAllProps(feature)) {
$('html').addClass(feature);
} else {
@@ -77,7 +77,7 @@ function flashVideoFallback(){
$('video').each(function(video){
video = $(video);
if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") !== -1){
- video.children('source[src$=mp4]').first().map(function(source){
+ video.children('source[src$=mp4]').first().map(function(i, source){
var src = $(source).attr('src'),
id = 'video_'+Math.round(1 + Math.random()*(100000)),
width = video.attr('width'),
@@ -117,7 +117,7 @@ function renderDeliciousLinks(items) {
$('#delicious').html(output);
}
-$.domReady(function() {
+$('document').ready(function() {
testFeatures();
wrapFlashVideos();
flashVideoFallback();
@@ -160,3 +160,4 @@ b=j.userAgent.toLowerCase(),d=j.platform.toLowerCase(),g=d?/win/.test(d):/win/.t
a&&b&&d&&i&&k){d+="";i+="";var p={};if(f&&typeof f===o)for(var m in f)p[m]=f[m];p.data=a;p.width=d;p.height=i;a={};if(c&&typeof c===o)for(var n in c)a[n]=c[n];if(e&&typeof e===o)for(var r in e)typeof a.flashvars!=l?a.flashvars+="&"+r+"="+e[r]:a.flashvars=r+"="+e[r];if(t(k))b=s(p,a,b),j.success=!0,j.ref=b}h&&h(j)},ua:g,getFlashPlayerVersion:function(){return{major:g.pv[0],minor:g.pv[1],release:g.pv[2]}},hasFlashPlayerVersion:t,createSWF:function(a,b,d){if(g.w3)return s(a,b,d)},getQueryParamValue:function(a){var b=
i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return u(b);for(var b=b.split("&"),d=0;d<b.length;d++)if(b[d].substring(0,b[d].indexOf("="))==a)return u(b[d].substring(b[d].indexOf("=")+1))}return""}}}();
+