From 4e9d9542b4a8dc8314f73cd4fc62de3b989ce182 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 21 Nov 2009 16:52:27 +0200 Subject: [PATCH] applied Safari 4 fixes --- .../Resources/javascripts/reflection.js | 341 +++++++++--------- .../Contents/Resources/main.css | 18 +- .../styles/_bubbles/message-bubble.css | 1 + .../Resources/javascripts/reflection.js | 341 +++++++++--------- Modern Bubbling/Contents/Resources/main.css | 18 +- .../styles/_bubbles/message-bubble.css | 1 + 6 files changed, 364 insertions(+), 356 deletions(-) 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