@farberg/reveal-template 1.1.6 → 1.1.7
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/package.json
CHANGED
|
@@ -4,7 +4,7 @@ function initSlide(slide) {
|
|
|
4
4
|
let asciinemaElements = slide.getElementsByTagName("asciinema")
|
|
5
5
|
|
|
6
6
|
for (let el of asciinemaElements) {
|
|
7
|
-
console.log("Found asciinema element: ", el)
|
|
7
|
+
//console.log("Found asciinema element: ", el)
|
|
8
8
|
|
|
9
9
|
//Make element invisible
|
|
10
10
|
el.style.display = "none"
|
|
@@ -16,7 +16,7 @@ function initSlide(slide) {
|
|
|
16
16
|
|
|
17
17
|
div.setAttribute('data-farberg-asciinema', 'true')
|
|
18
18
|
|
|
19
|
-
console.log("Playing", source, "with options", conf)
|
|
19
|
+
//console.log("Playing", source, "with options", conf)
|
|
20
20
|
players.push(AsciinemaPlayer.create(source, div, JSON.parse(conf)))
|
|
21
21
|
|
|
22
22
|
el.parentNode.insertBefore(div, el.nextSibling)
|
|
@@ -28,13 +28,13 @@ function initSlide(slide) {
|
|
|
28
28
|
function destroyPlayer(slide, players) {
|
|
29
29
|
//remove elements from dom with attribute data-farberg-asciinema
|
|
30
30
|
let elementsToRemove = slide.querySelectorAll('[data-farberg-asciinema]')
|
|
31
|
-
console.log("Removing", elementsToRemove.length, "elements with attribute data-farberg-asciinema")
|
|
31
|
+
//console.log("Removing", elementsToRemove.length, "elements with attribute data-farberg-asciinema")
|
|
32
32
|
|
|
33
33
|
for (let el of elementsToRemove)
|
|
34
34
|
el.parentNode.removeChild(el)
|
|
35
35
|
|
|
36
36
|
//destroy players
|
|
37
|
-
console.log("Destroying", players.length, "players")
|
|
37
|
+
//console.log("Destroying", players.length, "players")
|
|
38
38
|
players.forEach(player => player.dispose())
|
|
39
39
|
}
|
|
40
40
|
|