diff options
Diffstat (limited to 'content/js/learner_lesson.js')
-rwxr-xr-x | content/js/learner_lesson.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/js/learner_lesson.js b/content/js/learner_lesson.js index e9ca38a..fe874d3 100755 --- a/content/js/learner_lesson.js +++ b/content/js/learner_lesson.js @@ -48,7 +48,10 @@ $(document).ready( xy = this; // directory structure: content/subject/milestone/activity // for learners, we want the 'red' activity - if(xy[5]=='red'){ + url = window.location+""; + alert(url.indexOf('?F')); + if ((x > xy[1])&&(x < xy[1]+cellsize)&&(y < xy[2])&&(y > xy[2] - cellsize) ){ + if ((xy[5]=='red') || (url.indexOf('?F') > -1)){ //set path if (xy[3] == "EPaath"){ pth = "../../../src/FrameWork.html#" + xy[4]; @@ -70,6 +73,7 @@ $(document).ready( function(){ window.location = pth; }); + }; }; }); }); |