bloom-player 2.10.2 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bloomplayer.htm
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<!-- At build time, we replace the target of this script tag to point at the
|
|
20
20
|
the bloom player bundle with the cache-busting hash in its name. -->
|
|
21
|
-
<script src="bloomPlayer.
|
|
21
|
+
<script src="bloomPlayer.zkS_Zk6G.js"></script>
|
|
22
22
|
</body>
|
|
23
23
|
|
|
24
24
|
|
package/lib/shared.es.js
CHANGED
|
@@ -565,7 +565,7 @@ function On(l) {
|
|
|
565
565
|
}
|
|
566
566
|
function Ks(l, f) {
|
|
567
567
|
vt = l, Cs(l), Hr = f, to(
|
|
568
|
-
l.getAttribute("data-show-answers-in-targets") === "true",
|
|
568
|
+
l.getAttribute("data-show-answers-in-targets") === "true" || l.getAttribute("data-show-target-as-shadow") === "true",
|
|
569
569
|
l
|
|
570
570
|
), Es(l), Array.from(
|
|
571
571
|
l.getElementsByClassName("bloom-change-page-button")
|
|
@@ -999,7 +999,7 @@ function Ps(l) {
|
|
|
999
999
|
return !0;
|
|
1000
1000
|
}
|
|
1001
1001
|
const to = (l, f) => {
|
|
1002
|
-
const y =
|
|
1002
|
+
const y = f.querySelectorAll(":scope [data-draggable-id]");
|
|
1003
1003
|
l ? y.forEach((b) => {
|
|
1004
1004
|
zs(b);
|
|
1005
1005
|
}) : y.forEach((b) => {
|
|
@@ -1036,15 +1036,15 @@ function zs(l) {
|
|
|
1036
1036
|
)[0]), b) {
|
|
1037
1037
|
const N = y;
|
|
1038
1038
|
y = f.ownerDocument.createElement("div"), y.appendChild(N), N.classList.add("bloom-targetWrapper"), b.style.width = l.style.width, b.style.height = l.style.height;
|
|
1039
|
+
const j = b.getAttribute("data-background");
|
|
1040
|
+
j && !b.style.backgroundImage && (b.style.backgroundImage = j, b.removeAttribute("data-background"));
|
|
1039
1041
|
}
|
|
1040
1042
|
f.innerHTML !== y.innerHTML && (f.innerHTML = y.innerHTML);
|
|
1041
1043
|
}
|
|
1042
1044
|
const Mi = (l) => {
|
|
1043
1045
|
const f = l.getAttribute("data-draggable-id");
|
|
1044
1046
|
if (f)
|
|
1045
|
-
return l.
|
|
1046
|
-
`[data-target-of="${f}"]`
|
|
1047
|
-
);
|
|
1047
|
+
return l.closest(".bloom-page").querySelector(`[data-target-of="${f}"]`);
|
|
1048
1048
|
};
|
|
1049
1049
|
function Ms(l) {
|
|
1050
1050
|
const f = Mi(l);
|