1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,16 @@ |
1 |
+document.addEventListener("DOMContentLoaded", function (event) { |
|
2 |
+ if ($(".ce_rsce_switchingcards").length) { |
|
3 |
+ $(".flipping-card--wrapper").each(function (index) { |
|
4 |
+ var front = $(this).find(".flipping-card--front"); |
|
5 |
+ var back = $(this).find(".flipping-card--back"); |
|
6 |
+ var frontHeight = front.height(); |
|
7 |
+ var backHeight = back.height(); |
|
8 |
+ |
|
9 |
+ if (backHeight > frontHeight) { |
|
10 |
+ front.css("height", backHeight); |
|
11 |
+ } else { |
|
12 |
+ back.css("height", frontHeight); |
|
13 |
+ } |
|
14 |
+ }); |
|
15 |
+ } |
|
16 |
+}); |
|
0 | 17 |
\ No newline at end of file |