Guest User

Untitled

a guest
Feb 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. /* =========== */
  3. /* = Dimension properties = */
  4. /* =========== */
  5. var itemSizes =
  6. {
  7. "score":
  8. {
  9. 'left': 143,
  10. 'top': 0,
  11. 'width': 381,
  12. 'height': 365
  13. },
  14. "intro":
  15. {
  16. 'left': 143,
  17. 'top': 0,
  18. 'width': 392,
  19. 'height': 410
  20. },
  21. "instructions":
  22. {
  23. 'left': 143,
  24. 'top': 0,
  25. 'width': 392,
  26. 'height': 400
  27. },
  28. "instructions2":
  29. {
  30. 'left': 143,
  31. 'top': 0,
  32. 'width': 392,
  33. 'height': 415
  34. },
  35. "begin_quiz":
  36. {
  37. 'left': 143,
  38. 'top': 0,
  39. 'width': 370,
  40. 'height': 410
  41. },
  42. "*":
  43. {
  44. 'left': 73,
  45. 'top': 10,
  46. 'width': 512,
  47. 'height': 404
  48. }
  49. }
  50. // if there is not item_type, use the default;
  51. var itemOpts = (opts.itemArray[opts.itemNum].item_type != "quiz_item") ?
  52. itemSizes[opts.itemArray[opts.itemNum].item_type] :
  53. itemSizes["*"];
  54.  
  55. if (opts.active)
  56. {
  57. $('#quiz_content').show("normal", function()
  58. {
  59. $("#quiz_content").empty();
  60.  
  61. $("#quiz_outer").animate(itemOpts, "normal", function()
  62. {
  63. $("#quiz_content").append($(val)).show();
  64. $.fn.quizbox.updateDetails();
  65. });
  66. });
  67. }
Add Comment
Please, Sign In to add comment