Index: branches/MwEmbedStandAlone/mwEmbed.js |
— | — | @@ -2123,39 +2123,40 @@ |
2124 | 2124 | */ |
2125 | 2125 | $.fn.loadingSpinner = function( ) { |
2126 | 2126 | if ( this ) { |
2127 | | - //var csstransforms = false; |
2128 | | - if ( Modernizr.csstransforms ) { |
2129 | | - var barNumber = 7; |
2130 | | - var barContent = ''; |
2131 | | - var barSpacingDegrees = 360 / barNumber; |
2132 | | - var barOpacityDelta = 1 / (barNumber); |
2133 | | - for (i = 1; i < barNumber+1; i++) { |
2134 | | - barContent += '<div class="bar' + i + '" style="-moz-transform:rotate(' + (i-1) * barSpacingDegrees + 'deg) translate(0, -40px);-webkit-transform:rotate(' + (i-1) * barSpacingDegrees + 'deg) translate(0, -40px);opacity:' + (i) * barOpacityDelta + '; background:#000"/>'; |
2135 | | - } |
2136 | | - $j( this ).html( |
2137 | | - $j( '<div />' ) |
2138 | | - .addClass( "cssLoadingSpinner" ) |
2139 | | - .html( barContent ) |
2140 | | - ); |
2141 | | - var rotations = 0; |
2142 | | - setInterval( function ( ) { |
2143 | | - $j('.cssLoadingSpinner') |
2144 | | - .css('-moz-transform','rotate('+rotations+'deg)') |
2145 | | - .css('-webkit-transform','rotate('+rotations+'deg)'); |
2146 | | - if( rotations == 360 ) { |
2147 | | - rotations = 0; |
2148 | | - } |
2149 | | - rotations += 5; |
2150 | | - }, 25); |
2151 | | - } |
2152 | | - else { |
2153 | | - $j( this ).html( |
2154 | | - $j( '<div />' ) |
2155 | | - .addClass( "loadingSpinner" ) |
2156 | | - ); |
2157 | | - } |
| 2127 | + $j( this ).html( |
| 2128 | + $j( '<div />' ) |
| 2129 | + .addClass( "loadingSpinner" ) |
| 2130 | + ); |
| 2131 | + } |
| 2132 | + /* |
| 2133 | + //var csstransforms = false; |
| 2134 | + if ( Modernizr.csstransforms ) { |
| 2135 | + var barNumber = 7; |
| 2136 | + var barContent = ''; |
| 2137 | + var barSpacingDegrees = 360 / barNumber; |
| 2138 | + var barOpacityDelta = 1 / (barNumber); |
| 2139 | + for (i = 1; i < barNumber+1; i++) { |
| 2140 | + barContent += '<div class="bar' + i + '" style="-moz-transform:rotate(' + (i-1) * barSpacingDegrees + 'deg) translate(0, -40px);-webkit-transform:rotate(' + (i-1) * barSpacingDegrees + 'deg) translate(0, -40px);opacity:' + (i) * barOpacityDelta + '; background:#000"/>'; |
| 2141 | + } |
| 2142 | + $j( this ).html( |
| 2143 | + $j( '<div />' ) |
| 2144 | + .addClass( "cssLoadingSpinner" ) |
| 2145 | + .html( barContent ) |
| 2146 | + ); |
| 2147 | + var rotations = 0; |
| 2148 | + setInterval( function ( ) { |
| 2149 | + $j('.cssLoadingSpinner') |
| 2150 | + .css('-moz-transform','rotate('+rotations+'deg)') |
| 2151 | + .css('-webkit-transform','rotate('+rotations+'deg)'); |
| 2152 | + if( rotations == 360 ) { |
| 2153 | + rotations = 0; |
| 2154 | + } |
| 2155 | + rotations += 5; |
| 2156 | + }, 25); |
| 2157 | + } |
| 2158 | + */ |
2158 | 2159 | return this; |
2159 | | - }} |
| 2160 | + } |
2160 | 2161 | |
2161 | 2162 | /** |
2162 | 2163 | * dragDrop file loader |