@farberg/reveal-template 1.0.50 → 1.0.51
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farberg/reveal-template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"homepage": "https://github.com/pfisterer/reveal-template",
|
|
5
5
|
"description": "Reveal.js template for Dennis' lectures",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"connect": "^3.7.0",
|
|
19
19
|
"file-saver": "^2.0.5",
|
|
20
|
-
"jszip": "^3.
|
|
21
|
-
"qrcode": "^1.5.
|
|
22
|
-
"reveal.js": "^4.
|
|
20
|
+
"jszip": "^3.10.1",
|
|
21
|
+
"qrcode": "^1.5.1",
|
|
22
|
+
"reveal.js": "^4.4.0",
|
|
23
23
|
"reveal.js-plugins": "^4.1.5",
|
|
24
|
-
"serve-static": "^1.15.0"
|
|
24
|
+
"serve-static": "^1.15.0",
|
|
25
|
+
"asciinema-player": "^3.0.1"
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
export default () => {
|
|
3
|
+
|
|
4
|
+
return {
|
|
5
|
+
id: 'asciinema',
|
|
6
|
+
init: (deck) => {
|
|
7
|
+
|
|
8
|
+
deck.on('ready', () => {
|
|
9
|
+
for (let el of deck.getRevealElement().getElementsByTagName("asciinema")) {
|
|
10
|
+
const source = el.getAttribute('src')
|
|
11
|
+
const conf = el.getAttribute('data-conf')
|
|
12
|
+
const div = document.createElement('div')
|
|
13
|
+
|
|
14
|
+
el.parentElement.replaceChild(div, el)
|
|
15
|
+
|
|
16
|
+
AsciinemaPlayer.create(source, div, JSON.parse(conf));
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|