Commit 6979fb8765801eac25873656c6c37bef21186b07
1 parent
5fd27848
fill in the blanks drop position was not correct in last 2 moules
Showing
2 changed files
with
12 additions
and
12 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -176,7 +176,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
176 | 176 | $scope.Imagepath = keywords.labexercise + "/" + result.LabExercise[index].Questions[index1].ImagePath; |
177 | 177 | } |
178 | 178 | |
179 | - if ($scope.Title == "Complete the statements below.") { | |
179 | + if ($("#textblock").css("display") == "block") { | |
180 | 180 | $("#imgdiv").css("position", "static"); |
181 | 181 | $("#imgdiv").find("div").each(function () { |
182 | 182 | var answerDiv = $(this).attr("id").split("-"); |
... | ... | @@ -616,7 +616,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
616 | 616 | |
617 | 617 | //alert(JSON.stringify($scope.UserAttempt)); |
618 | 618 | $timeout(function () { |
619 | - if ($scope.Title == "Complete the statements below.") { | |
619 | + if ($("#textblock").css("display") == "block") { | |
620 | 620 | $("#imgdiv").css("position", "static"); |
621 | 621 | $("#imgdiv").find("div").each(function () { |
622 | 622 | var answerDiv = $(this).attr("id").split("-"); |
... | ... | @@ -1120,7 +1120,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
1120 | 1120 | |
1121 | 1121 | |
1122 | 1122 | $timeout(function () { |
1123 | - if ($scope.Title == "Complete the statements below.") { | |
1123 | + if ($("#textblock").css("display") == "block") { | |
1124 | 1124 | $("#imgdiv").css("position", "static"); |
1125 | 1125 | $("#imgdiv").find("div").each(function () { |
1126 | 1126 | var answerDiv = $(this).attr("id").split("-"); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json
... | ... | @@ -147,10 +147,10 @@ |
147 | 147 | "Title": "Drag the labels to the correct location on the image.", |
148 | 148 | "activityTitle": "Ear I", |
149 | 149 | "ImagePath":"", |
150 | - "OptionBox": [{"BoxName": "T1","topcoord":"-223","leftcoord":"382","Answervalue":"","QuizText":"The external, visible portion of the ear is known as the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T1' droppable='true'></span> ----------------------------------- <span> .</span>"}, | |
151 | - {"BoxName": "T2","topcoord":"-183","leftcoord":"356","Answervalue":"","QuizText":"The region of the ear containing the ossicles is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T2' droppable='true'></span>----------------------------------- <span> .</span>"}, | |
152 | - {"BoxName": "T3","topcoord":"-146","leftcoord":"550","Answervalue":"","QuizText":"The region of the ear containing the sense organs for hearing and balance is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T3' droppable='true'></span>----------------------------------- <span> .</span>"}, | |
153 | - {"BoxName": "T4","topcoord":"-104","leftcoord":"452","Answervalue":"","QuizText":"The portion of the ear containing the receptors for hearing is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T4' droppable='true'></span>----------------------------------- <span> .</span>"}], | |
150 | + "OptionBox": [{"BoxName": "T1","topcoord":"-223","leftcoord":"410","Answervalue":"","QuizText":"The external, visible portion of the ear is known as the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T1' droppable='true'></span> ----------------------------------- <span> .</span>"}, | |
151 | + {"BoxName": "T2","topcoord":"-183","leftcoord":"388","Answervalue":"","QuizText":"The region of the ear containing the ossicles is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T2' droppable='true'></span>----------------------------------- <span> .</span>"}, | |
152 | + {"BoxName": "T3","topcoord":"-146","leftcoord":"577","Answervalue":"","QuizText":"The region of the ear containing the sense organs for hearing and balance is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T3' droppable='true'></span>----------------------------------- <span> .</span>"}, | |
153 | + {"BoxName": "T4","topcoord":"-104","leftcoord":"479","Answervalue":"","QuizText":"The portion of the ear containing the receptors for hearing is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T4' droppable='true'></span>----------------------------------- <span> .</span>"}], | |
154 | 154 | "Options": [{"OptionNumber": "A","OptionTitle": "auricle","textalign":"bottom"},{"OptionNumber": "B","OptionTitle": "middle","textalign":"bottom"}, |
155 | 155 | {"OptionNumber": "C","OptionTitle": "internal","textalign":"bottom"},{"OptionNumber": "D","OptionTitle": "cochlea","textalign":"bottom"}], |
156 | 156 | "correctResponse": [{"OptionBox": "T1","Answer": "A"},{"OptionBox": "T2","Answer": "B"},{"OptionBox": "T3","Answer": "C"},{"OptionBox": "T4","Answer": "D"}] |
... | ... | @@ -159,11 +159,11 @@ |
159 | 159 | "Title": "Drag the labels to the correct location on the image.", |
160 | 160 | "activityTitle": "Ear II", |
161 | 161 | "ImagePath":"", |
162 | - "OptionBox": [{"BoxName": "T1","topcoord":"-265","leftcoord":"473","Answervalue":"","QuizText":"The portion of the ear commonly referred to as the 'ear drum' is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T1' droppable='true' ></span>---------------------------------- <span> .</span>"}, | |
163 | - {"BoxName": "T2","topcoord":"-227","leftcoord":"500","Answervalue":"","QuizText":"The portion of the ear containing the receptors for dynamic balance is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T2' droppable='true'></span>---------------------------------- <span> .</span>"}, | |
164 | - {"BoxName": "T3","topcoord":"-183","leftcoord":"40","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T3' droppable='true'></span>---------------------------------- is the common name for the malleus."}, | |
165 | - {"BoxName": "T4","topcoord":"-143","leftcoord":"40","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T4' droppable='true'></span>---------------------------------- is the common name for the incus."}, | |
166 | - {"BoxName": "T5","topcoord":"-103","leftcoord":"40","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T5' droppable='true'></span>---------------------------------- is the common name for the stapes."}], | |
162 | + "OptionBox": [{"BoxName": "T1","topcoord":"-262","leftcoord":"500","Answervalue":"","QuizText":"The portion of the ear commonly referred to as the 'ear drum' is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T1' droppable='true' ></span>---------------------------------- <span> .</span>"}, | |
163 | + {"BoxName": "T2","topcoord":"-224","leftcoord":"540","Answervalue":"","QuizText":"The portion of the ear containing the receptors for dynamic balance is the <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T2' droppable='true'></span>---------------------------------- <span> .</span>"}, | |
164 | + {"BoxName": "T3","topcoord":"-183","leftcoord":"80","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T3' droppable='true'></span>---------------------------------- is the common name for the malleus."}, | |
165 | + {"BoxName": "T4","topcoord":"-143","leftcoord":"80","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T4' droppable='true'></span>---------------------------------- is the common name for the incus."}, | |
166 | + {"BoxName": "T5","topcoord":"-103","leftcoord":"80","Answervalue":"","QuizText":"The <span style='position: absolute;border: 0px solid rgb(51, 51, 51); background: rgb(232, 232, 232);height:30px;width:160px;top:-6px;' id='blockbox-T5' droppable='true'></span>---------------------------------- is the common name for the stapes."}], | |
167 | 167 | "Options": [{"OptionNumber": "A","OptionTitle": "tympanic membrane","textalign":"bottom"},{"OptionNumber": "B","OptionTitle": "semicircular canal","textalign":"bottom"}, |
168 | 168 | {"OptionNumber": "C","OptionTitle": "hammer","textalign":"bottom"},{"OptionNumber": "D","OptionTitle": "anvil","textalign":"bottom"}, |
169 | 169 | {"OptionNumber": "E","OptionTitle": "stirrup","textalign":"bottom"}], | ... | ... |