From 6979fb8765801eac25873656c6c37bef21186b07 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 19 Mar 2018 12:10:00 +0530 Subject: [PATCH] fill in the blanks drop position was not correct in last 2 moules --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 6 +++--- 400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index 6d81b4a..4b3c644 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -176,7 +176,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $scope.Imagepath = keywords.labexercise + "/" + result.LabExercise[index].Questions[index1].ImagePath; } - if ($scope.Title == "Complete the statements below.") { + if ($("#textblock").css("display") == "block") { $("#imgdiv").css("position", "static"); $("#imgdiv").find("div").each(function () { var answerDiv = $(this).attr("id").split("-"); @@ -616,7 +616,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, //alert(JSON.stringify($scope.UserAttempt)); $timeout(function () { - if ($scope.Title == "Complete the statements below.") { + if ($("#textblock").css("display") == "block") { $("#imgdiv").css("position", "static"); $("#imgdiv").find("div").each(function () { var answerDiv = $(this).attr("id").split("-"); @@ -1120,7 +1120,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $timeout(function () { - if ($scope.Title == "Complete the statements below.") { + if ($("#textblock").css("display") == "block") { $("#imgdiv").css("position", "static"); $("#imgdiv").find("div").each(function () { var answerDiv = $(this).attr("id").split("-"); diff --git a/400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json b/400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json index 593f5b7..671c877 100644 --- a/400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json +++ b/400-SOURCECODE/AIAHTML5.Web/content/data/json/le/qz_dat_ss.json @@ -147,10 +147,10 @@ "Title": "Drag the labels to the correct location on the image.", "activityTitle": "Ear I", "ImagePath":"", - "OptionBox": [{"BoxName": "T1","topcoord":"-223","leftcoord":"382","Answervalue":"","QuizText":"The external, visible portion of the ear is known as the -----------------------------------  ."}, - {"BoxName": "T2","topcoord":"-183","leftcoord":"356","Answervalue":"","QuizText":"The region of the ear containing the ossicles is the -----------------------------------  ."}, - {"BoxName": "T3","topcoord":"-146","leftcoord":"550","Answervalue":"","QuizText":"The region of the ear containing the sense organs for hearing and balance is the -----------------------------------  ."}, - {"BoxName": "T4","topcoord":"-104","leftcoord":"452","Answervalue":"","QuizText":"The portion of the ear containing the receptors for hearing is the -----------------------------------  ."}], + "OptionBox": [{"BoxName": "T1","topcoord":"-223","leftcoord":"410","Answervalue":"","QuizText":"The external, visible portion of the ear is known as the -----------------------------------  ."}, + {"BoxName": "T2","topcoord":"-183","leftcoord":"388","Answervalue":"","QuizText":"The region of the ear containing the ossicles is the -----------------------------------  ."}, + {"BoxName": "T3","topcoord":"-146","leftcoord":"577","Answervalue":"","QuizText":"The region of the ear containing the sense organs for hearing and balance is the -----------------------------------  ."}, + {"BoxName": "T4","topcoord":"-104","leftcoord":"479","Answervalue":"","QuizText":"The portion of the ear containing the receptors for hearing is the -----------------------------------  ."}], "Options": [{"OptionNumber": "A","OptionTitle": "auricle","textalign":"bottom"},{"OptionNumber": "B","OptionTitle": "middle","textalign":"bottom"}, {"OptionNumber": "C","OptionTitle": "internal","textalign":"bottom"},{"OptionNumber": "D","OptionTitle": "cochlea","textalign":"bottom"}], "correctResponse": [{"OptionBox": "T1","Answer": "A"},{"OptionBox": "T2","Answer": "B"},{"OptionBox": "T3","Answer": "C"},{"OptionBox": "T4","Answer": "D"}] @@ -159,11 +159,11 @@ "Title": "Drag the labels to the correct location on the image.", "activityTitle": "Ear II", "ImagePath":"", - "OptionBox": [{"BoxName": "T1","topcoord":"-265","leftcoord":"473","Answervalue":"","QuizText":"The portion of the ear commonly referred to as the 'ear drum' is the ----------------------------------  ."}, - {"BoxName": "T2","topcoord":"-227","leftcoord":"500","Answervalue":"","QuizText":"The portion of the ear containing the receptors for dynamic balance is the ----------------------------------  ."}, - {"BoxName": "T3","topcoord":"-183","leftcoord":"40","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the malleus."}, - {"BoxName": "T4","topcoord":"-143","leftcoord":"40","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the incus."}, - {"BoxName": "T5","topcoord":"-103","leftcoord":"40","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the stapes."}], + "OptionBox": [{"BoxName": "T1","topcoord":"-262","leftcoord":"500","Answervalue":"","QuizText":"The portion of the ear commonly referred to as the 'ear drum' is the ----------------------------------  ."}, + {"BoxName": "T2","topcoord":"-224","leftcoord":"540","Answervalue":"","QuizText":"The portion of the ear containing the receptors for dynamic balance is the ----------------------------------  ."}, + {"BoxName": "T3","topcoord":"-183","leftcoord":"80","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the malleus."}, + {"BoxName": "T4","topcoord":"-143","leftcoord":"80","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the incus."}, + {"BoxName": "T5","topcoord":"-103","leftcoord":"80","Answervalue":"","QuizText":"The ----------------------------------   is the common name for the stapes."}], "Options": [{"OptionNumber": "A","OptionTitle": "tympanic membrane","textalign":"bottom"},{"OptionNumber": "B","OptionTitle": "semicircular canal","textalign":"bottom"}, {"OptionNumber": "C","OptionTitle": "hammer","textalign":"bottom"},{"OptionNumber": "D","OptionTitle": "anvil","textalign":"bottom"}, {"OptionNumber": "E","OptionTitle": "stirrup","textalign":"bottom"}], -- libgit2 0.21.4