Skip to content

Commit

Permalink
Make the opacity JavaScript way easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhoorn committed Nov 8, 2012
1 parent 65b2fb0 commit e2f2a0b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/assets/javascripts/imports/opacity.js
Original file line number Original file line Diff line number Diff line change
@@ -1,13 +1,5 @@
function setOpacity() { document.observe('dom:loaded', function () {
$$('.carousel-wrapper .carousel-control').each(function (elem) { $$('.carousel-wrapper .carousel-control').each(function (elem) {
$(elem).setStyle({ $(elem).setOpacity(0.5);
'-ms-filter': "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)",
'filter': 'alpha(opacity=50)',
'opacity': '0.5'
});
}); });
}

document.observe('dom:loaded', function () {
setOpacity();
}); });

0 comments on commit e2f2a0b

Please sign in to comment.