Permalink
Browse files

Make the opacity JavaScript way easier.

  • Loading branch information...
1 parent 65b2fb0 commit e2f2a0bdd6a7367952760c28566d4b1ca3945156 @vanderhoorn vanderhoorn committed Nov 8, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 app/assets/javascripts/imports/opacity.js
@@ -1,13 +1,5 @@
-function setOpacity() {
+document.observe('dom:loaded', function () {
$$('.carousel-wrapper .carousel-control').each(function (elem) {
- $(elem).setStyle({
- '-ms-filter': "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)",
- 'filter': 'alpha(opacity=50)',
- 'opacity': '0.5'
- });
+ $(elem).setOpacity(0.5);
});
-}
-
-document.observe('dom:loaded', function () {
- setOpacity();
});

0 comments on commit e2f2a0b

Please sign in to comment.