Advertisement
Guest User

Untitled

a guest
May 29th, 2015
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. // A javascript-enhanced crossword puzzle [c] Jesse Weisbeck, MIT/GPL
  2. (function($) {
  3. $(function() {
  4. // provide crossword entries in an array of objects like the following example
  5. // Position refers to the numerical order of an entry. Each position can have
  6. // two entries: an across entry and a down entry
  7. var puzzleData = [
  8. {
  9. clue: "First letter of greek alphabet",
  10. answer: "alpha",
  11. position: 1,
  12. orientation: "across",
  13. startx: 1,
  14. starty: 1
  15. },
  16. {
  17. clue: "Not a one ___ motor, but a three ___ motor",
  18. answer: "phase",
  19. position: 3,
  20. orientation: "across",
  21. startx: 7,
  22. starty: 1
  23. },
  24. {
  25. clue: "Created from a separation of charge",
  26. answer: "capacitance",
  27. position: 5,
  28. orientation: "across",
  29. startx: 1,
  30. starty: 3
  31. },
  32. {
  33. clue: "The speeds of engines without and accelaration",
  34. answer: "idlespeeds",
  35. position: 8,
  36. orientation: "across",
  37. startx: 1,
  38. starty: 5
  39. },
  40. {
  41. clue: "Complex resistances",
  42. answer: "impedances",
  43. position: 10,
  44. orientation: "across",
  45. startx: 2,
  46. starty: 7
  47. },
  48. {
  49. clue: "This device is used to step-up, step-down, and/or isolate",
  50. answer: "transformer",
  51. position: 13,
  52. orientation: "across",
  53. startx: 1,
  54. starty: 9
  55. },
  56. {
  57. clue: "Type of ray emitted frm the sun",
  58. answer: "gamma",
  59. position: 16,
  60. orientation: "across",
  61. startx: 1,
  62. starty: 11
  63. },
  64. {
  65. clue: "C programming language operator",
  66. answer: "cysan",
  67. position: 17,
  68. orientation: "across",
  69. startx: 7,
  70. starty: 11
  71. },
  72. {
  73. clue: "Defines the alpha-numeric characters that are typically associated with text used in programming",
  74. answer: "ascii",
  75. position: 1,
  76. orientation: "down",
  77. startx: 1,
  78. starty: 1
  79. },
  80. {
  81. clue: "Generally, if you go over 1kV per cm this happens",
  82. answer: "arc",
  83. position: 2,
  84. orientation: "down",
  85. startx: 5,
  86. starty: 1
  87. },
  88. {
  89. clue: "Control system strategy that tries to replicate the human through process (abbr.)",
  90. answer: "ann",
  91. position: 4,
  92. orientation: "down",
  93. startx: 9,
  94. starty: 1
  95. },
  96. {
  97. clue: "Greek variable that usually describes rotor positon",
  98. answer: "theta",
  99. position: 6,
  100. orientation: "down",
  101. startx: 7,
  102. starty: 3
  103. },
  104. {
  105. clue: "Electromagnetic (abbr.)",
  106. answer: "em",
  107. position: 7,
  108. orientation: "down",
  109. startx: 11,
  110. starty: 3
  111. },
  112. {
  113. clue: "No. 13 across does this to a voltage",
  114. answer: "steps",
  115. position: 9,
  116. orientation: "down",
  117. startx: 5,
  118. starty: 5
  119. },
  120. {
  121. clue: "Emits a lout wailing sound",
  122. answer: "siren",
  123. position: 11,
  124. orientation: "down",
  125. startx: 11,
  126. starty: 7
  127. },
  128. {
  129. clue: "Information technology (abbr.)",
  130. answer: "it",
  131. position: 12,
  132. orientation: "down",
  133. startx: 1,
  134. starty: 8
  135. },
  136. {
  137. clue: "Asynchronous transfer mode (abbr.)",
  138. answer: "atm",
  139. position: 14,
  140. orientation: "down",
  141. startx: 3,
  142. starty: 9
  143. },
  144. {
  145. clue: "Offset current control (abbr.)",
  146. answer: "occ",
  147. position: 15,
  148. orientation: "down",
  149. startx: 7,
  150. starty: 9
  151. }
  152. ]
  153.  
  154. $('#puzzle-wrapper').crossword(puzzleData);
  155.  
  156. })
  157.  
  158. })(jQuery)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement