File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 6
6
* Text Domain: H5PXAPIKATCHU
7
7
* Domain Path: /languages
8
8
* Description: Catch and store xAPI statements sent by H5P
9
- * Version: 0.2.4
9
+ * Version: 0.2.5
10
10
* Author: Oliver Tacke
11
11
* Author URI: https://www.olivertacke.de
12
12
* License: MIT
18
18
defined ( 'ABSPATH ' ) or die ( 'No script kiddies please! ' );
19
19
20
20
if ( !defined ( 'H5PXAPIKATCHU_VERSION ' ) ) {
21
- define ( 'H5PXAPIKATCHU_VERSION ' , '0.2.4 ' );
21
+ define ( 'H5PXAPIKATCHU_VERSION ' , '0.2.5 ' );
22
22
}
23
23
24
24
// settings.php contains all functions for the settings
Original file line number Diff line number Diff line change @@ -56,6 +56,19 @@ var H5P = H5P || {};
56
56
console . log ( error ) ;
57
57
}
58
58
}
59
+
60
+ // Add listener if DIVs are used.
61
+ const h5pDiv = document . getElementsByClassName ( 'h5p-frame' ) ;
62
+ if ( h5pDiv . length !== 0 ) {
63
+ try {
64
+ if ( H5P && H5P . externalDispatcher ) {
65
+ H5P . externalDispatcher . on ( 'xAPI' , handleXAPI ) ;
66
+ }
67
+ }
68
+ catch ( error ) {
69
+ console . log ( error ) ;
70
+ }
71
+ }
59
72
}
60
73
} ;
61
74
} ) ( ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Contributors: otacke
3
3
Tags: h5p, xapi
4
4
Donate link: https://www.patreon.com/otacke
5
5
Requires at least: 4.0
6
- Tested up to: 4.9.6
7
- Stable tag: 0.2.4
6
+ Tested up to: 5.0.2
7
+ Stable tag: 0.2.5
8
8
License: MIT
9
9
License URI: https://github.com/otacke/h5pxapikatchu/blob/master/LICENSE
10
10
@@ -52,6 +52,9 @@ None yet.
52
52
53
53
== Changelog ==
54
54
55
+ = 0.2.5 =
56
+ - Add support for H5P content types that use divs instead of iframes, e.g Memory Game.
57
+
55
58
= 0.2.4 =
56
59
- Fix bug introduced in 0.2.0 that could prevent plugin from initializing the
57
60
database properly. Thanks to "thedeviousdev" finding it!
@@ -89,6 +92,9 @@ Initial release.
89
92
90
93
== Upgrade Notice ==
91
94
95
+ = 0.2.5 =
96
+ Update if you use content types that use divs instead of iframes, e.g. Memory Game.
97
+
92
98
= 0.2.4 =
93
99
Update if you want to be future proof.
94
100
You can’t perform that action at this time.
0 commit comments