diff --git a/Modern Bubbling (Compact)/Contents/Resources/javascripts/reflection.js b/Modern Bubbling (Compact)/Contents/Resources/javascripts/reflection.js index 89d2866..4e4a73d 100755 --- a/Modern Bubbling (Compact)/Contents/Resources/javascripts/reflection.js +++ b/Modern Bubbling (Compact)/Contents/Resources/javascripts/reflection.js @@ -1,170 +1,171 @@ -/** - * reflection.js v1.6 - * - * Contributors: Cow http://cow.neondragon.net - * Gfx http://www.jroller.com/page/gfx/ - * Sitharus http://www.sitharus.com - * Andreas Linde http://www.andreaslinde.de - * Tralala, coder @ http://www.vbulletin.org - * - * Freely distributable under MIT-style license. - */ - -/* From prototype.js */ -document.getElementsByClassName = function(className) { - var children = document.getElementsByTagName('*') || document.all; - var elements = new Array(); - - for (var i = 0; i < children.length; i++) { - var child = children[i]; - var classNames = child.className.split(' '); - for (var j = 0; j < classNames.length; j++) { - if (classNames[j] == className) { - elements.push(child); - break; - } - } - } - return elements; -} - -var Reflection = { - defaultHeight : 0.45, - defaultOpacity: 0.4, - - add: function(image, options) { - Reflection.remove(image); - - doptions = { "height" : Reflection.defaultHeight, "opacity" : Reflection.defaultOpacity } - if (options) { - for (var i in doptions) { - if (!options[i]) { - options[i] = doptions[i]; - } - } - } else { - options = doptions; - } - - try { - var d = document.createElement('div'); - var p = image; - - var classes = p.className.split(' '); - var newClasses = ''; - for (j=0;j