Commit ee49f8cc authored by Dave Lane's avatar Dave Lane
Browse files

tided up extra /h5p/ in H5P embed codes

parent 72cb4707
console.log('in h5p.js!');
module.exports = {
version: "0.0.2",
version: "0.0.3",
process: function($, opt) {
console.log('in h5p.js module!');
var count = 0,
......@@ -87,9 +87,9 @@ module.exports = {
// add a space...
id += ' ';
}
id += "h5p-iframe-'+count+'";
id += "h5p-iframe-"+count;
code = '<iframe id="'+id+'" class="'+classes+'"';
code += ' data-content-id="'+h5pid+'" src="'+script_url+'/h5p/'+h5pid+'/embed"';
code += ' data-content-id="'+h5pid+'" src="'+script_url+h5pid+'/embed"';
if (width != "") {
code += ' width="'+width+'"';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment