Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make the opacity JavaScript way easier.

  • Loading branch information...
commit e2f2a0bdd6a7367952760c28566d4b1ca3945156 1 parent 65b2fb0
@vanderhoorn vanderhoorn authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 app/assets/javascripts/imports/opacity.js
View
12 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();
});
Please sign in to comment.
Something went wrong with that request. Please try again.