skala
iflores 16 years ago
commit 7c71c4c342
  1. 1123
      main/exercice/exercice_submit.php
  2. 5
      main/newscorm/scorm_api.php

File diff suppressed because it is too large Load Diff

@ -180,6 +180,7 @@ $(document).ready( function() {
$(document).ready( function() { $(document).ready( function() {
$("iframe").contents().find('head').append('<script src="/main/inc/lib/javascript/jquery.highlight.js" type="text/javascript" language="javascript"></script>');
$("iframe#content_id").load( function(){ $("iframe#content_id").load( function(){
//alert("Document title: " + $("iframe#content_id").attr('src')); //alert("Document title: " + $("iframe#content_id").attr('src'));
info_lms_item[0]=info_lms_item[1]; info_lms_item[0]=info_lms_item[1];
@ -1592,7 +1593,6 @@ if(lms_lp_type==1 || lms_item_type=='asset'){
*/ */
function attach_glossary_into_scorm() { function attach_glossary_into_scorm() {
var f = $('#content_id')[0]; var f = $('#content_id')[0];
var doc = f.contentWindow ? f.contentWindow.document : var doc = f.contentWindow ? f.contentWindow.document :
f.contentDocument ? f.contentDocument : f.document; f.contentDocument ? f.contentDocument : f.document;
@ -1614,11 +1614,12 @@ function attach_glossary_into_scorm() {
if (datos.length==0) { if (datos.length==0) {
return false; return false;
} }
data_terms=datos.split("[|.|_|.|-|.|]"); data_terms=datos.split("[|.|_|.|-|.|]");
for(i=0;i<data_terms.length;i++) { for(i=0;i<data_terms.length;i++) {
specific_terms=data_terms[i].split("__|__|"); specific_terms=data_terms[i].split("__|__|");
var real_term = specific_terms[1]; var real_term = specific_terms[1];
var my_specific_terms = new RegExp('([^A-Za-z0-9/_\<>])'+specific_terms[1]+'[\ .,]{0,1}',"gi"); var my_specific_terms = new RegExp(specific_terms[1],"gi");
new_html=my_text.replace(my_specific_terms,function(m){return replace_complete_char(m)}); new_html=my_text.replace(my_specific_terms,function(m){return replace_complete_char(m)});
$frame_content.html(new_html); $frame_content.html(new_html);
my_text=$frame_content.html(); my_text=$frame_content.html();

Loading…
Cancel
Save