jqplot_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. data/CHANGELOG.rdoc +2 -0
  2. data/LICENSE +0 -0
  3. data/README.rdoc +1 -0
  4. data/files/dist/MIT-LICENSE.txt +21 -0
  5. data/files/dist/README.txt +77 -0
  6. data/files/dist/changes.txt +395 -0
  7. data/files/dist/copyright.txt +56 -0
  8. data/files/dist/docs/files/MIT-LICENSE-txt.html +39 -0
  9. data/files/dist/docs/files/changes-txt.html +39 -0
  10. data/files/dist/docs/files/gpl-2-0-txt.html +39 -0
  11. data/files/dist/docs/files/images/background.jpg +0 -0
  12. data/files/dist/docs/files/images/basicline.png +0 -0
  13. data/files/dist/docs/files/images/basiclogaxis.png +0 -0
  14. data/files/dist/docs/files/images/basiclogoptions.png +0 -0
  15. data/files/dist/docs/files/images/basicoptions.png +0 -0
  16. data/files/dist/docs/files/images/dualaxis.png +0 -0
  17. data/files/dist/docs/files/images/logo.jpg +0 -0
  18. data/files/dist/docs/files/images/navdocs.png +0 -0
  19. data/files/dist/docs/files/images/navdocsover.png +0 -0
  20. data/files/dist/docs/files/images/navdownload.png +0 -0
  21. data/files/dist/docs/files/images/navdownloadover.png +0 -0
  22. data/files/dist/docs/files/images/navexamples.png +0 -0
  23. data/files/dist/docs/files/images/navexamplesover.png +0 -0
  24. data/files/dist/docs/files/images/navhome.png +0 -0
  25. data/files/dist/docs/files/images/navhomeover.png +0 -0
  26. data/files/dist/docs/files/images/new.png +0 -0
  27. data/files/dist/docs/files/images/sample3.png +0 -0
  28. data/files/dist/docs/files/images/samplesm.png +0 -0
  29. data/files/dist/docs/files/jqPlotCssStyling-txt.html +39 -0
  30. data/files/dist/docs/files/jqPlotOptions-txt.html +292 -0
  31. data/files/dist/docs/files/jqplot-axisLabelRenderer-js.html +47 -0
  32. data/files/dist/docs/files/jqplot-axisTickRenderer-js.html +71 -0
  33. data/files/dist/docs/files/jqplot-canvasGridRenderer-js.html +39 -0
  34. data/files/dist/docs/files/jqplot-core-js.html +385 -0
  35. data/files/dist/docs/files/jqplot-divTitleRenderer-js.html +39 -0
  36. data/files/dist/docs/files/jqplot-lineRenderer-js.html +69 -0
  37. data/files/dist/docs/files/jqplot-linearAxisRenderer-js.html +61 -0
  38. data/files/dist/docs/files/jqplot-markerRenderer-js.html +65 -0
  39. data/files/dist/docs/files/jqplot-shadowRenderer-js.html +61 -0
  40. data/files/dist/docs/files/jqplot-shapeRenderer-js.html +65 -0
  41. data/files/dist/docs/files/jqplot-themeEngine-js.html +191 -0
  42. data/files/dist/docs/files/jqplot-toImage-js.html +39 -0
  43. data/files/dist/docs/files/optionsTutorial-txt.html +120 -0
  44. data/files/dist/docs/files/plugins/jqplot-BezierCurveRenderer-js.html +45 -0
  45. data/files/dist/docs/files/plugins/jqplot-barRenderer-js.html +69 -0
  46. data/files/dist/docs/files/plugins/jqplot-blockRenderer-js.html +53 -0
  47. data/files/dist/docs/files/plugins/jqplot-bubbleRenderer-js.html +71 -0
  48. data/files/dist/docs/files/plugins/jqplot-canvasAxisLabelRenderer-js.html +63 -0
  49. data/files/dist/docs/files/plugins/jqplot-canvasAxisTickRenderer-js.html +79 -0
  50. data/files/dist/docs/files/plugins/jqplot-canvasOverlay-js.html +113 -0
  51. data/files/dist/docs/files/plugins/jqplot-categoryAxisRenderer-js.html +46 -0
  52. data/files/dist/docs/files/plugins/jqplot-ciParser-js.html +39 -0
  53. data/files/dist/docs/files/plugins/jqplot-cursor-js.html +93 -0
  54. data/files/dist/docs/files/plugins/jqplot-dateAxisRenderer-js.html +101 -0
  55. data/files/dist/docs/files/plugins/jqplot-donutRenderer-js.html +98 -0
  56. data/files/dist/docs/files/plugins/jqplot-dragable-js.html +45 -0
  57. data/files/dist/docs/files/plugins/jqplot-enhancedLegendRenderer-js.html +49 -0
  58. data/files/dist/docs/files/plugins/jqplot-funnelRenderer-js.html +87 -0
  59. data/files/dist/docs/files/plugins/jqplot-highlighter-js.html +80 -0
  60. data/files/dist/docs/files/plugins/jqplot-logAxisRenderer-js.html +47 -0
  61. data/files/dist/docs/files/plugins/jqplot-mekkoAxisRenderer-js.html +49 -0
  62. data/files/dist/docs/files/plugins/jqplot-mekkoRenderer-js.html +62 -0
  63. data/files/dist/docs/files/plugins/jqplot-meterGaugeRenderer-js.html +103 -0
  64. data/files/dist/docs/files/plugins/jqplot-ohlcRenderer-js.html +65 -0
  65. data/files/dist/docs/files/plugins/jqplot-pieRenderer-js.html +93 -0
  66. data/files/dist/docs/files/plugins/jqplot-pointLabels-js.html +72 -0
  67. data/files/dist/docs/files/plugins/jqplot-pyramidAxisRenderer-js.html +49 -0
  68. data/files/dist/docs/files/plugins/jqplot-pyramidGridRenderer-js.html +39 -0
  69. data/files/dist/docs/files/plugins/jqplot-pyramidRenderer-js.html +53 -0
  70. data/files/dist/docs/files/plugins/jqplot-trendline-js.html +67 -0
  71. data/files/dist/docs/files/usage-txt.html +58 -0
  72. data/files/dist/docs/index/Classes.html +70 -0
  73. data/files/dist/docs/index/Files.html +34 -0
  74. data/files/dist/docs/index/Functions.html +66 -0
  75. data/files/dist/docs/index/General.html +42 -0
  76. data/files/dist/docs/index/General2.html +42 -0
  77. data/files/dist/docs/index/General3.html +42 -0
  78. data/files/dist/docs/index/General4.html +46 -0
  79. data/files/dist/docs/index/General5.html +46 -0
  80. data/files/dist/docs/index/General6.html +34 -0
  81. data/files/dist/docs/index/General7.html +58 -0
  82. data/files/dist/docs/index/Hooks.html +46 -0
  83. data/files/dist/docs/index/Properties.html +42 -0
  84. data/files/dist/docs/index/Properties2.html +42 -0
  85. data/files/dist/docs/index/Properties3.html +46 -0
  86. data/files/dist/docs/index/Properties4.html +50 -0
  87. data/files/dist/docs/index/Properties5.html +34 -0
  88. data/files/dist/docs/index/Properties6.html +58 -0
  89. data/files/dist/docs/index.html +1 -0
  90. data/files/dist/docs/javascript/main.js +836 -0
  91. data/files/dist/docs/javascript/searchdata.js +182 -0
  92. data/files/dist/docs/search/ClassesA.html +20 -0
  93. data/files/dist/docs/search/ClassesD.html +20 -0
  94. data/files/dist/docs/search/ClassesG.html +20 -0
  95. data/files/dist/docs/search/ClassesH.html +20 -0
  96. data/files/dist/docs/search/ClassesJ.html +20 -0
  97. data/files/dist/docs/search/ClassesL.html +20 -0
  98. data/files/dist/docs/search/ClassesS.html +20 -0
  99. data/files/dist/docs/search/ClassesSymbols.html +20 -0
  100. data/files/dist/docs/search/ClassesT.html +20 -0
  101. data/files/dist/docs/search/ClassesV.html +20 -0
  102. data/files/dist/docs/search/FilesJ.html +20 -0
  103. data/files/dist/docs/search/FunctionsC.html +20 -0
  104. data/files/dist/docs/search/FunctionsD.html +20 -0
  105. data/files/dist/docs/search/FunctionsG.html +20 -0
  106. data/files/dist/docs/search/FunctionsI.html +20 -0
  107. data/files/dist/docs/search/FunctionsM.html +20 -0
  108. data/files/dist/docs/search/FunctionsN.html +20 -0
  109. data/files/dist/docs/search/FunctionsR.html +20 -0
  110. data/files/dist/docs/search/FunctionsS.html +20 -0
  111. data/files/dist/docs/search/FunctionsZ.html +20 -0
  112. data/files/dist/docs/search/GeneralA.html +20 -0
  113. data/files/dist/docs/search/GeneralB.html +20 -0
  114. data/files/dist/docs/search/GeneralC.html +20 -0
  115. data/files/dist/docs/search/GeneralD.html +20 -0
  116. data/files/dist/docs/search/GeneralE.html +20 -0
  117. data/files/dist/docs/search/GeneralF.html +20 -0
  118. data/files/dist/docs/search/GeneralG.html +20 -0
  119. data/files/dist/docs/search/GeneralH.html +20 -0
  120. data/files/dist/docs/search/GeneralI.html +20 -0
  121. data/files/dist/docs/search/GeneralJ.html +20 -0
  122. data/files/dist/docs/search/GeneralL.html +20 -0
  123. data/files/dist/docs/search/GeneralM.html +20 -0
  124. data/files/dist/docs/search/GeneralN.html +20 -0
  125. data/files/dist/docs/search/GeneralO.html +20 -0
  126. data/files/dist/docs/search/GeneralP.html +20 -0
  127. data/files/dist/docs/search/GeneralR.html +20 -0
  128. data/files/dist/docs/search/GeneralS.html +20 -0
  129. data/files/dist/docs/search/GeneralSymbols.html +20 -0
  130. data/files/dist/docs/search/GeneralT.html +20 -0
  131. data/files/dist/docs/search/GeneralU.html +20 -0
  132. data/files/dist/docs/search/GeneralV.html +20 -0
  133. data/files/dist/docs/search/GeneralW.html +20 -0
  134. data/files/dist/docs/search/GeneralX.html +20 -0
  135. data/files/dist/docs/search/GeneralY.html +20 -0
  136. data/files/dist/docs/search/GeneralZ.html +20 -0
  137. data/files/dist/docs/search/HooksA.html +20 -0
  138. data/files/dist/docs/search/HooksE.html +20 -0
  139. data/files/dist/docs/search/HooksJ.html +20 -0
  140. data/files/dist/docs/search/HooksP.html +20 -0
  141. data/files/dist/docs/search/NoResults.html +15 -0
  142. data/files/dist/docs/search/PropertiesA.html +20 -0
  143. data/files/dist/docs/search/PropertiesB.html +20 -0
  144. data/files/dist/docs/search/PropertiesC.html +20 -0
  145. data/files/dist/docs/search/PropertiesD.html +20 -0
  146. data/files/dist/docs/search/PropertiesE.html +20 -0
  147. data/files/dist/docs/search/PropertiesF.html +20 -0
  148. data/files/dist/docs/search/PropertiesG.html +20 -0
  149. data/files/dist/docs/search/PropertiesH.html +20 -0
  150. data/files/dist/docs/search/PropertiesI.html +20 -0
  151. data/files/dist/docs/search/PropertiesL.html +20 -0
  152. data/files/dist/docs/search/PropertiesM.html +20 -0
  153. data/files/dist/docs/search/PropertiesN.html +20 -0
  154. data/files/dist/docs/search/PropertiesO.html +20 -0
  155. data/files/dist/docs/search/PropertiesP.html +20 -0
  156. data/files/dist/docs/search/PropertiesR.html +20 -0
  157. data/files/dist/docs/search/PropertiesS.html +20 -0
  158. data/files/dist/docs/search/PropertiesT.html +20 -0
  159. data/files/dist/docs/search/PropertiesU.html +20 -0
  160. data/files/dist/docs/search/PropertiesV.html +20 -0
  161. data/files/dist/docs/search/PropertiesW.html +20 -0
  162. data/files/dist/docs/search/PropertiesX.html +20 -0
  163. data/files/dist/docs/search/PropertiesY.html +20 -0
  164. data/files/dist/docs/search/PropertiesZ.html +20 -0
  165. data/files/dist/docs/styles/1.css +767 -0
  166. data/files/dist/docs/styles/2.css +174 -0
  167. data/files/dist/docs/styles/main.css +2 -0
  168. data/files/dist/examples/KCPsample4.csv +25 -0
  169. data/files/dist/examples/ajax-loader.gif +0 -0
  170. data/files/dist/examples/area.html +139 -0
  171. data/files/dist/examples/axisLabelTests.html +157 -0
  172. data/files/dist/examples/axisLabelsRotatedText.html +229 -0
  173. data/files/dist/examples/axisScalingForceTickAt.html +242 -0
  174. data/files/dist/examples/bandedLine.html +310 -0
  175. data/files/dist/examples/bar-charts.html +219 -0
  176. data/files/dist/examples/barLineAnimated.html +165 -0
  177. data/files/dist/examples/barTest.html +299 -0
  178. data/files/dist/examples/bezierCurve.html +125 -0
  179. data/files/dist/examples/blockPlot.html +197 -0
  180. data/files/dist/examples/bubble-plots.html +213 -0
  181. data/files/dist/examples/bubbleChart.html +264 -0
  182. data/files/dist/examples/candlestick-charts.html +209 -0
  183. data/files/dist/examples/candlestick.html +322 -0
  184. data/files/dist/examples/cursor-highlighter.html +137 -0
  185. data/files/dist/examples/customHighlighterCursorTrendline.html +104 -0
  186. data/files/dist/examples/dashboardWidget.html +212 -0
  187. data/files/dist/examples/dashedLines.html +227 -0
  188. data/files/dist/examples/data-renderers.html +144 -0
  189. data/files/dist/examples/date-axes.html +107 -0
  190. data/files/dist/examples/dateAxisLogAxisZooming.html +105 -0
  191. data/files/dist/examples/dateAxisRenderer.html +292 -0
  192. data/files/dist/examples/example.js +114 -0
  193. data/files/dist/examples/example.min.js +1 -0
  194. data/files/dist/examples/examples.css +135 -0
  195. data/files/dist/examples/examples.min.css +1 -0
  196. data/files/dist/examples/fillBetweenLines.html +134 -0
  197. data/files/dist/examples/hiddenPlotsInTabs.html +225 -0
  198. data/files/dist/examples/images/logo.jpg +0 -0
  199. data/files/dist/examples/index.html +100 -0
  200. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  201. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  202. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  203. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  204. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  205. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  206. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  207. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  208. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  209. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_2e83ff_256x240.png +0 -0
  210. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_454545_256x240.png +0 -0
  211. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_888888_256x240.png +0 -0
  212. data/files/dist/examples/jquery-ui/css/ui-lightness/images/ui-icons_cd0a0a_256x240.png +0 -0
  213. data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.css +612 -0
  214. data/files/dist/examples/jquery-ui/css/ui-lightness/jquery-ui.min.css +10 -0
  215. data/files/dist/examples/jquery-ui/js/jquery-ui.min.js +473 -0
  216. data/files/dist/examples/jquery-ui/js/jquery.effects.blind.js +80 -0
  217. data/files/dist/examples/jquery-ui/js/jquery.effects.blind.min.js +14 -0
  218. data/files/dist/examples/jquery-ui/js/jquery.effects.core.js +890 -0
  219. data/files/dist/examples/jquery-ui/js/jquery.effects.core.min.js +32 -0
  220. data/files/dist/examples/jsondata.txt +1 -0
  221. data/files/dist/examples/kcp_area.html +250 -0
  222. data/files/dist/examples/kcp_cdf.html +351 -0
  223. data/files/dist/examples/kcp_engel.html +244 -0
  224. data/files/dist/examples/kcp_lorenz.html +510 -0
  225. data/files/dist/examples/kcp_pdf.html +387 -0
  226. data/files/dist/examples/kcp_pyramid.html +580 -0
  227. data/files/dist/examples/kcp_pyramid2.html +568 -0
  228. data/files/dist/examples/line-charts.html +193 -0
  229. data/files/dist/examples/mekkoCharts.html +269 -0
  230. data/files/dist/examples/meterGauge.html +179 -0
  231. data/files/dist/examples/nav.inc +40 -0
  232. data/files/dist/examples/pie-donut-charts.html +160 -0
  233. data/files/dist/examples/pieTest.html +187 -0
  234. data/files/dist/examples/pieTest2.js +80 -0
  235. data/files/dist/examples/pieTest4.html +258 -0
  236. data/files/dist/examples/point-labels.html +193 -0
  237. data/files/dist/examples/resizablePlot.html +196 -0
  238. data/files/dist/examples/rotated-tick-labels.html +216 -0
  239. data/files/dist/examples/rotatedTickLabelsZoom.html +118 -0
  240. data/files/dist/examples/smoothedLine.html +137 -0
  241. data/files/dist/examples/syntaxhighlighter/LGPL-LICENSE +165 -0
  242. data/files/dist/examples/syntaxhighlighter/MIT-LICENSE +20 -0
  243. data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.js +17 -0
  244. data/files/dist/examples/syntaxhighlighter/scripts/shAutoloader.min.js +1 -0
  245. data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.js +52 -0
  246. data/files/dist/examples/syntaxhighlighter/scripts/shBrushJScript.min.js +1 -0
  247. data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.js +69 -0
  248. data/files/dist/examples/syntaxhighlighter/scripts/shBrushXml.min.js +1 -0
  249. data/files/dist/examples/syntaxhighlighter/scripts/shCore.js +17 -0
  250. data/files/dist/examples/syntaxhighlighter/scripts/shCore.min.js +1 -0
  251. data/files/dist/examples/syntaxhighlighter/styles/shCore.css +226 -0
  252. data/files/dist/examples/syntaxhighlighter/styles/shCore.min.css +1 -0
  253. data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.css +328 -0
  254. data/files/dist/examples/syntaxhighlighter/styles/shCoreDefault.min.css +1 -0
  255. data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.css +117 -0
  256. data/files/dist/examples/syntaxhighlighter/styles/shThemeDefault.min.css +1 -0
  257. data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.css +138 -0
  258. data/files/dist/examples/syntaxhighlighter/styles/shThemejqPlot.min.css +1 -0
  259. data/files/dist/examples/theming.html +519 -0
  260. data/files/dist/examples/topbanner.inc +9 -0
  261. data/files/dist/examples/waterfall.html +162 -0
  262. data/files/dist/examples/waterfall2.html +231 -0
  263. data/files/dist/examples/yahooData.js +1807 -0
  264. data/files/dist/examples/yahooData.min.js +1 -0
  265. data/files/dist/examples/zoom1.html +149 -0
  266. data/files/dist/examples/zoomOptions.html +176 -0
  267. data/files/dist/examples/zoomProxy.html +110 -0
  268. data/files/dist/examples/zooming.html +209 -0
  269. data/files/dist/excanvas.js +1438 -0
  270. data/files/dist/excanvas.min.js +57 -0
  271. data/files/dist/gpl-2.0.txt +280 -0
  272. data/files/dist/jqPlotCssStyling.txt +53 -0
  273. data/files/dist/jqPlotOptions.txt +276 -0
  274. data/files/dist/jquery.jqplot.css +259 -0
  275. data/files/dist/jquery.jqplot.js +10901 -0
  276. data/files/dist/jquery.jqplot.min.css +1 -0
  277. data/files/dist/jquery.js +9046 -0
  278. data/files/dist/jquery.min.js +4 -0
  279. data/files/dist/optionsTutorial.txt +240 -0
  280. data/files/dist/plugins/jqplot.BezierCurveRenderer.js +312 -0
  281. data/files/dist/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
  282. data/files/dist/plugins/jqplot.barRenderer.js +747 -0
  283. data/files/dist/plugins/jqplot.barRenderer.min.js +57 -0
  284. data/files/dist/plugins/jqplot.blockRenderer.js +234 -0
  285. data/files/dist/plugins/jqplot.blockRenderer.min.js +57 -0
  286. data/files/dist/plugins/jqplot.bubbleRenderer.js +754 -0
  287. data/files/dist/plugins/jqplot.bubbleRenderer.min.js +57 -0
  288. data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.js +202 -0
  289. data/files/dist/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
  290. data/files/dist/plugins/jqplot.canvasAxisTickRenderer.js +242 -0
  291. data/files/dist/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
  292. data/files/dist/plugins/jqplot.canvasOverlay.js +864 -0
  293. data/files/dist/plugins/jqplot.canvasOverlay.min.js +57 -0
  294. data/files/dist/plugins/jqplot.canvasTextRenderer.js +448 -0
  295. data/files/dist/plugins/jqplot.canvasTextRenderer.min.js +57 -0
  296. data/files/dist/plugins/jqplot.categoryAxisRenderer.js +636 -0
  297. data/files/dist/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
  298. data/files/dist/plugins/jqplot.ciParser.js +115 -0
  299. data/files/dist/plugins/jqplot.ciParser.min.js +57 -0
  300. data/files/dist/plugins/jqplot.cursor.js +1093 -0
  301. data/files/dist/plugins/jqplot.cursor.min.js +57 -0
  302. data/files/dist/plugins/jqplot.dateAxisRenderer.js +702 -0
  303. data/files/dist/plugins/jqplot.dateAxisRenderer.min.js +57 -0
  304. data/files/dist/plugins/jqplot.donutRenderer.js +800 -0
  305. data/files/dist/plugins/jqplot.donutRenderer.min.js +57 -0
  306. data/files/dist/plugins/jqplot.dragable.js +224 -0
  307. data/files/dist/plugins/jqplot.dragable.min.js +57 -0
  308. data/files/dist/plugins/jqplot.enhancedLegendRenderer.js +241 -0
  309. data/files/dist/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
  310. data/files/dist/plugins/jqplot.funnelRenderer.js +938 -0
  311. data/files/dist/plugins/jqplot.funnelRenderer.min.js +57 -0
  312. data/files/dist/plugins/jqplot.highlighter.js +454 -0
  313. data/files/dist/plugins/jqplot.highlighter.min.js +57 -0
  314. data/files/dist/plugins/jqplot.json2.js +475 -0
  315. data/files/dist/plugins/jqplot.json2.min.js +57 -0
  316. data/files/dist/plugins/jqplot.logAxisRenderer.js +528 -0
  317. data/files/dist/plugins/jqplot.logAxisRenderer.min.js +57 -0
  318. data/files/dist/plugins/jqplot.mekkoAxisRenderer.js +610 -0
  319. data/files/dist/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
  320. data/files/dist/plugins/jqplot.mekkoRenderer.js +436 -0
  321. data/files/dist/plugins/jqplot.mekkoRenderer.min.js +57 -0
  322. data/files/dist/plugins/jqplot.meterGaugeRenderer.js +1029 -0
  323. data/files/dist/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
  324. data/files/dist/plugins/jqplot.ohlcRenderer.js +372 -0
  325. data/files/dist/plugins/jqplot.ohlcRenderer.min.js +57 -0
  326. data/files/dist/plugins/jqplot.pieRenderer.js +899 -0
  327. data/files/dist/plugins/jqplot.pieRenderer.min.js +57 -0
  328. data/files/dist/plugins/jqplot.pointLabels.js +362 -0
  329. data/files/dist/plugins/jqplot.pointLabels.min.js +57 -0
  330. data/files/dist/plugins/jqplot.pyramidAxisRenderer.js +730 -0
  331. data/files/dist/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
  332. data/files/dist/plugins/jqplot.pyramidGridRenderer.js +423 -0
  333. data/files/dist/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
  334. data/files/dist/plugins/jqplot.pyramidRenderer.js +490 -0
  335. data/files/dist/plugins/jqplot.pyramidRenderer.min.js +57 -0
  336. data/files/dist/plugins/jqplot.trendline.js +222 -0
  337. data/files/dist/plugins/jqplot.trendline.min.js +57 -0
  338. data/files/dist/usage.txt +126 -0
  339. data/files/javascripts/excanvas.min.js +57 -0
  340. data/files/javascripts/jquery.jqplot.min.js +57 -0
  341. data/files/javascripts/plugins/jqplot.BezierCurveRenderer.min.js +57 -0
  342. data/files/javascripts/plugins/jqplot.barRenderer.min.js +57 -0
  343. data/files/javascripts/plugins/jqplot.blockRenderer.min.js +57 -0
  344. data/files/javascripts/plugins/jqplot.bubbleRenderer.min.js +57 -0
  345. data/files/javascripts/plugins/jqplot.canvasAxisLabelRenderer.min.js +57 -0
  346. data/files/javascripts/plugins/jqplot.canvasAxisTickRenderer.min.js +57 -0
  347. data/files/javascripts/plugins/jqplot.canvasOverlay.min.js +57 -0
  348. data/files/javascripts/plugins/jqplot.canvasTextRenderer.min.js +57 -0
  349. data/files/javascripts/plugins/jqplot.categoryAxisRenderer.min.js +57 -0
  350. data/files/javascripts/plugins/jqplot.ciParser.min.js +57 -0
  351. data/files/javascripts/plugins/jqplot.cursor.min.js +57 -0
  352. data/files/javascripts/plugins/jqplot.dateAxisRenderer.min.js +57 -0
  353. data/files/javascripts/plugins/jqplot.donutRenderer.min.js +57 -0
  354. data/files/javascripts/plugins/jqplot.dragable.min.js +57 -0
  355. data/files/javascripts/plugins/jqplot.enhancedLegendRenderer.min.js +57 -0
  356. data/files/javascripts/plugins/jqplot.funnelRenderer.min.js +57 -0
  357. data/files/javascripts/plugins/jqplot.highlighter.min.js +57 -0
  358. data/files/javascripts/plugins/jqplot.json2.min.js +57 -0
  359. data/files/javascripts/plugins/jqplot.logAxisRenderer.min.js +57 -0
  360. data/files/javascripts/plugins/jqplot.mekkoAxisRenderer.min.js +57 -0
  361. data/files/javascripts/plugins/jqplot.mekkoRenderer.min.js +57 -0
  362. data/files/javascripts/plugins/jqplot.meterGaugeRenderer.min.js +57 -0
  363. data/files/javascripts/plugins/jqplot.ohlcRenderer.min.js +57 -0
  364. data/files/javascripts/plugins/jqplot.pieRenderer.min.js +57 -0
  365. data/files/javascripts/plugins/jqplot.pointLabels.min.js +57 -0
  366. data/files/javascripts/plugins/jqplot.pyramidAxisRenderer.min.js +57 -0
  367. data/files/javascripts/plugins/jqplot.pyramidGridRenderer.min.js +57 -0
  368. data/files/javascripts/plugins/jqplot.pyramidRenderer.min.js +57 -0
  369. data/files/javascripts/plugins/jqplot.trendline.min.js +57 -0
  370. data/files/stylesheets/jqplot_rails_overrides.css +3 -0
  371. data/files/stylesheets/jquery.jqplot.min.css +1 -0
  372. data/lib/jqplot_rails/jqplot_action_view.rb +106 -0
  373. data/lib/jqplot_rails/railtie.rb +29 -0
  374. data/lib/jqplot_rails/tasks.rb +58 -0
  375. data/lib/jqplot_rails/version.rb +17 -0
  376. data/lib/jqplot_rails.rb +5 -0
  377. metadata +473 -0
@@ -0,0 +1,836 @@
1
+ // This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
2
+ // Natural Docs is licensed under the GPL
3
+
4
+
5
+ //
6
+ // Browser Styles
7
+ // ____________________________________________________________________________
8
+
9
+ var agt=navigator.userAgent.toLowerCase();
10
+ var browserType;
11
+ var browserVer;
12
+
13
+ if (agt.indexOf("opera") != -1)
14
+ {
15
+ browserType = "Opera";
16
+
17
+ if (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1)
18
+ { browserVer = "Opera7"; }
19
+ else if (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1)
20
+ { browserVer = "Opera8"; }
21
+ else if (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1)
22
+ { browserVer = "Opera9"; }
23
+ }
24
+
25
+ else if (agt.indexOf("applewebkit") != -1)
26
+ {
27
+ browserType = "Safari";
28
+
29
+ if (agt.indexOf("version/3") != -1)
30
+ { browserVer = "Safari3"; }
31
+ else if (agt.indexOf("safari/4") != -1)
32
+ { browserVer = "Safari2"; }
33
+ }
34
+
35
+ else if (agt.indexOf("khtml") != -1)
36
+ {
37
+ browserType = "Konqueror";
38
+ }
39
+
40
+ else if (agt.indexOf("msie") != -1)
41
+ {
42
+ browserType = "IE";
43
+
44
+ if (agt.indexOf("msie 6") != -1)
45
+ { browserVer = "IE6"; }
46
+ else if (agt.indexOf("msie 7") != -1)
47
+ { browserVer = "IE7"; }
48
+ }
49
+
50
+ else if (agt.indexOf("gecko") != -1)
51
+ {
52
+ browserType = "Firefox";
53
+
54
+ if (agt.indexOf("rv:1.7") != -1)
55
+ { browserVer = "Firefox1"; }
56
+ else if (agt.indexOf("rv:1.8)") != -1 || agt.indexOf("rv:1.8.0") != -1)
57
+ { browserVer = "Firefox15"; }
58
+ else if (agt.indexOf("rv:1.8.1") != -1)
59
+ { browserVer = "Firefox2"; }
60
+ }
61
+
62
+
63
+ //
64
+ // Support Functions
65
+ // ____________________________________________________________________________
66
+
67
+
68
+ function GetXPosition(item)
69
+ {
70
+ var position = 0;
71
+
72
+ if (item.offsetWidth != null)
73
+ {
74
+ while (item != document.body && item != null)
75
+ {
76
+ position += item.offsetLeft;
77
+ item = item.offsetParent;
78
+ };
79
+ };
80
+
81
+ return position;
82
+ };
83
+
84
+
85
+ function GetYPosition(item)
86
+ {
87
+ var position = 0;
88
+
89
+ if (item.offsetWidth != null)
90
+ {
91
+ while (item != document.body && item != null)
92
+ {
93
+ position += item.offsetTop;
94
+ item = item.offsetParent;
95
+ };
96
+ };
97
+
98
+ return position;
99
+ };
100
+
101
+
102
+ function MoveToPosition(item, x, y)
103
+ {
104
+ // Opera 5 chokes on the px extension, so it can use the Microsoft one instead.
105
+
106
+ if (item.style.left != null)
107
+ {
108
+ item.style.left = x + "px";
109
+ item.style.top = y + "px";
110
+ }
111
+ else if (item.style.pixelLeft != null)
112
+ {
113
+ item.style.pixelLeft = x;
114
+ item.style.pixelTop = y;
115
+ };
116
+ };
117
+
118
+
119
+ //
120
+ // Menu
121
+ // ____________________________________________________________________________
122
+
123
+
124
+ function ToggleMenu(id)
125
+ {
126
+ if (!window.document.getElementById)
127
+ { return; };
128
+
129
+ var display = window.document.getElementById(id).style.display;
130
+
131
+ if (display == "none")
132
+ { display = "block"; }
133
+ else
134
+ { display = "none"; }
135
+
136
+ window.document.getElementById(id).style.display = display;
137
+ }
138
+
139
+ function HideAllBut(ids, max)
140
+ {
141
+ if (document.getElementById)
142
+ {
143
+ ids.sort( function(a,b) { return a - b; } );
144
+ var number = 1;
145
+
146
+ while (number < max)
147
+ {
148
+ if (ids.length > 0 && number == ids[0])
149
+ { ids.shift(); }
150
+ else
151
+ {
152
+ document.getElementById("MGroupContent" + number).style.display = "none";
153
+ };
154
+
155
+ number++;
156
+ };
157
+ };
158
+ }
159
+
160
+
161
+ //
162
+ // Tooltips
163
+ // ____________________________________________________________________________
164
+
165
+
166
+ var tooltipTimer = 0;
167
+
168
+ function ShowTip(event, tooltipID, linkID)
169
+ {
170
+ if (tooltipTimer)
171
+ { clearTimeout(tooltipTimer); };
172
+
173
+ var docX = event.clientX + window.pageXOffset;
174
+ var docY = event.clientY + window.pageYOffset;
175
+
176
+ var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")";
177
+
178
+ tooltipTimer = setTimeout(showCommand, 1000);
179
+ }
180
+
181
+ function ReallyShowTip(tooltipID, linkID, docX, docY)
182
+ {
183
+ tooltipTimer = 0;
184
+
185
+ var tooltip;
186
+ var link;
187
+
188
+ if (document.getElementById)
189
+ {
190
+ tooltip = document.getElementById(tooltipID);
191
+ link = document.getElementById(linkID);
192
+ }
193
+ /* else if (document.all)
194
+ {
195
+ tooltip = eval("document.all['" + tooltipID + "']");
196
+ link = eval("document.all['" + linkID + "']");
197
+ }
198
+ */
199
+ if (tooltip)
200
+ {
201
+ var left = GetXPosition(link);
202
+ var top = GetYPosition(link);
203
+ top += link.offsetHeight;
204
+
205
+
206
+ // The fallback method is to use the mouse X and Y relative to the document. We use a separate if and test if its a number
207
+ // in case some browser snuck through the above if statement but didn't support everything.
208
+
209
+ if (!isFinite(top) || top == 0)
210
+ {
211
+ left = docX;
212
+ top = docY;
213
+ }
214
+
215
+ // Some spacing to get it out from under the cursor.
216
+
217
+ top += 10;
218
+
219
+ // Make sure the tooltip doesnt get smushed by being too close to the edge, or in some browsers, go off the edge of the
220
+ // page. We do it here because Konqueror does get offsetWidth right even if it doesnt get the positioning right.
221
+
222
+ if (tooltip.offsetWidth != null)
223
+ {
224
+ var width = tooltip.offsetWidth;
225
+ var docWidth = document.body.clientWidth;
226
+
227
+ if (left + width > docWidth)
228
+ { left = docWidth - width - 1; }
229
+
230
+ // If there's a horizontal scroll bar we could go past zero because it's using the page width, not the window width.
231
+ if (left < 0)
232
+ { left = 0; };
233
+ }
234
+
235
+ MoveToPosition(tooltip, left, top);
236
+ tooltip.style.visibility = "visible";
237
+ }
238
+ }
239
+
240
+ function HideTip(tooltipID)
241
+ {
242
+ if (tooltipTimer)
243
+ {
244
+ clearTimeout(tooltipTimer);
245
+ tooltipTimer = 0;
246
+ }
247
+
248
+ var tooltip;
249
+
250
+ if (document.getElementById)
251
+ { tooltip = document.getElementById(tooltipID); }
252
+ else if (document.all)
253
+ { tooltip = eval("document.all['" + tooltipID + "']"); }
254
+
255
+ if (tooltip)
256
+ { tooltip.style.visibility = "hidden"; }
257
+ }
258
+
259
+
260
+ //
261
+ // Blockquote fix for IE
262
+ // ____________________________________________________________________________
263
+
264
+
265
+ function NDOnLoad()
266
+ {
267
+ if (browserVer == "IE6")
268
+ {
269
+ var scrollboxes = document.getElementsByTagName('blockquote');
270
+
271
+ if (scrollboxes.item(0))
272
+ {
273
+ NDDoResize();
274
+ window.onresize=NDOnResize;
275
+ };
276
+ };
277
+ };
278
+
279
+
280
+ var resizeTimer = 0;
281
+
282
+ function NDOnResize()
283
+ {
284
+ if (resizeTimer != 0)
285
+ { clearTimeout(resizeTimer); };
286
+
287
+ resizeTimer = setTimeout(NDDoResize, 250);
288
+ };
289
+
290
+
291
+ function NDDoResize()
292
+ {
293
+ var scrollboxes = document.getElementsByTagName('blockquote');
294
+
295
+ var i;
296
+ var item;
297
+
298
+ i = 0;
299
+ while (item = scrollboxes.item(i))
300
+ {
301
+ item.style.width = 100;
302
+ i++;
303
+ };
304
+
305
+ i = 0;
306
+ while (item = scrollboxes.item(i))
307
+ {
308
+ item.style.width = item.parentNode.offsetWidth;
309
+ i++;
310
+ };
311
+
312
+ clearTimeout(resizeTimer);
313
+ resizeTimer = 0;
314
+ }
315
+
316
+
317
+
318
+ /* ________________________________________________________________________________________________________
319
+
320
+ Class: SearchPanel
321
+ ________________________________________________________________________________________________________
322
+
323
+ A class handling everything associated with the search panel.
324
+
325
+ Parameters:
326
+
327
+ name - The name of the global variable that will be storing this instance. Is needed to be able to set timeouts.
328
+ mode - The mode the search is going to work in. Pass <NaturalDocs::Builder::Base->CommandLineOption()>, so the
329
+ value will be something like "HTML" or "FramedHTML".
330
+
331
+ ________________________________________________________________________________________________________
332
+ */
333
+
334
+
335
+ function SearchPanel(name, mode, resultsPath)
336
+ {
337
+ if (!name || !mode || !resultsPath)
338
+ { alert("Incorrect parameters to SearchPanel."); };
339
+
340
+
341
+ // Group: Variables
342
+ // ________________________________________________________________________
343
+
344
+ /*
345
+ var: name
346
+ The name of the global variable that will be storing this instance of the class.
347
+ */
348
+ this.name = name;
349
+
350
+ /*
351
+ var: mode
352
+ The mode the search is going to work in, such as "HTML" or "FramedHTML".
353
+ */
354
+ this.mode = mode;
355
+
356
+ /*
357
+ var: resultsPath
358
+ The relative path from the current HTML page to the results page directory.
359
+ */
360
+ this.resultsPath = resultsPath;
361
+
362
+ /*
363
+ var: keyTimeout
364
+ The timeout used between a keystroke and when a search is performed.
365
+ */
366
+ this.keyTimeout = 0;
367
+
368
+ /*
369
+ var: keyTimeoutLength
370
+ The length of <keyTimeout> in thousandths of a second.
371
+ */
372
+ this.keyTimeoutLength = 500;
373
+
374
+ /*
375
+ var: lastSearchValue
376
+ The last search string executed, or an empty string if none.
377
+ */
378
+ this.lastSearchValue = "";
379
+
380
+ /*
381
+ var: lastResultsPage
382
+ The last results page. The value is only relevant if <lastSearchValue> is set.
383
+ */
384
+ this.lastResultsPage = "";
385
+
386
+ /*
387
+ var: deactivateTimeout
388
+
389
+ The timeout used between when a control is deactivated and when the entire panel is deactivated. Is necessary
390
+ because a control may be deactivated in favor of another control in the same panel, in which case it should stay
391
+ active.
392
+ */
393
+ this.deactivateTimout = 0;
394
+
395
+ /*
396
+ var: deactivateTimeoutLength
397
+ The length of <deactivateTimeout> in thousandths of a second.
398
+ */
399
+ this.deactivateTimeoutLength = 200;
400
+
401
+
402
+
403
+
404
+ // Group: DOM Elements
405
+ // ________________________________________________________________________
406
+
407
+
408
+ // Function: DOMSearchField
409
+ this.DOMSearchField = function()
410
+ { return document.getElementById("MSearchField"); };
411
+
412
+ // Function: DOMSearchType
413
+ this.DOMSearchType = function()
414
+ { return document.getElementById("MSearchType"); };
415
+
416
+ // Function: DOMPopupSearchResults
417
+ this.DOMPopupSearchResults = function()
418
+ { return document.getElementById("MSearchResults"); };
419
+
420
+ // Function: DOMPopupSearchResultsWindow
421
+ this.DOMPopupSearchResultsWindow = function()
422
+ { return document.getElementById("MSearchResultsWindow"); };
423
+
424
+ // Function: DOMSearchPanel
425
+ this.DOMSearchPanel = function()
426
+ { return document.getElementById("MSearchPanel"); };
427
+
428
+
429
+
430
+
431
+ // Group: Event Handlers
432
+ // ________________________________________________________________________
433
+
434
+
435
+ /*
436
+ Function: OnSearchFieldFocus
437
+ Called when focus is added or removed from the search field.
438
+ */
439
+ this.OnSearchFieldFocus = function(isActive)
440
+ {
441
+ this.Activate(isActive);
442
+ };
443
+
444
+
445
+ /*
446
+ Function: OnSearchFieldChange
447
+ Called when the content of the search field is changed.
448
+ */
449
+ this.OnSearchFieldChange = function()
450
+ {
451
+ if (this.keyTimeout)
452
+ {
453
+ clearTimeout(this.keyTimeout);
454
+ this.keyTimeout = 0;
455
+ };
456
+
457
+ var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
458
+
459
+ if (searchValue != this.lastSearchValue)
460
+ {
461
+ if (searchValue != "")
462
+ {
463
+ this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength);
464
+ }
465
+ else
466
+ {
467
+ if (this.mode == "HTML")
468
+ { this.DOMPopupSearchResultsWindow().style.display = "none"; };
469
+ this.lastSearchValue = "";
470
+ };
471
+ };
472
+ };
473
+
474
+
475
+ /*
476
+ Function: OnSearchTypeFocus
477
+ Called when focus is added or removed from the search type.
478
+ */
479
+ this.OnSearchTypeFocus = function(isActive)
480
+ {
481
+ this.Activate(isActive);
482
+ };
483
+
484
+
485
+ /*
486
+ Function: OnSearchTypeChange
487
+ Called when the search type is changed.
488
+ */
489
+ this.OnSearchTypeChange = function()
490
+ {
491
+ var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
492
+
493
+ if (searchValue != "")
494
+ {
495
+ this.Search();
496
+ };
497
+ };
498
+
499
+
500
+
501
+ // Group: Action Functions
502
+ // ________________________________________________________________________
503
+
504
+
505
+ /*
506
+ Function: CloseResultsWindow
507
+ Closes the results window.
508
+ */
509
+ this.CloseResultsWindow = function()
510
+ {
511
+ this.DOMPopupSearchResultsWindow().style.display = "none";
512
+ this.Activate(false, true);
513
+ };
514
+
515
+
516
+ /*
517
+ Function: Search
518
+ Performs a search.
519
+ */
520
+ this.Search = function()
521
+ {
522
+ this.keyTimeout = 0;
523
+
524
+ var searchValue = this.DOMSearchField().value.replace(/^ +/, "");
525
+ var searchTopic = this.DOMSearchType().value;
526
+
527
+ var pageExtension = searchValue.substr(0,1);
528
+
529
+ if (pageExtension.match(/^[a-z]/i))
530
+ { pageExtension = pageExtension.toUpperCase(); }
531
+ else if (pageExtension.match(/^[0-9]/))
532
+ { pageExtension = 'Numbers'; }
533
+ else
534
+ { pageExtension = "Symbols"; };
535
+
536
+ var resultsPage;
537
+ var resultsPageWithSearch;
538
+ var hasResultsPage;
539
+
540
+ // indexSectionsWithContent is defined in searchdata.js
541
+ if (indexSectionsWithContent[searchTopic][pageExtension] == true)
542
+ {
543
+ resultsPage = this.resultsPath + '/' + searchTopic + pageExtension + '.html';
544
+ resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
545
+ hasResultsPage = true;
546
+ }
547
+ else
548
+ {
549
+ resultsPage = this.resultsPath + '/NoResults.html';
550
+ resultsPageWithSearch = resultsPage;
551
+ hasResultsPage = false;
552
+ };
553
+
554
+ var resultsFrame;
555
+ if (this.mode == "HTML")
556
+ { resultsFrame = window.frames.MSearchResults; }
557
+ else if (this.mode == "FramedHTML")
558
+ { resultsFrame = window.top.frames['Content']; };
559
+
560
+
561
+ if (resultsPage != this.lastResultsPage ||
562
+
563
+ // Bug in IE. If everything becomes hidden in a run, none of them will be able to be reshown in the next for some
564
+ // reason. It counts the right number of results, and you can even read the display as "block" after setting it, but it
565
+ // just doesn't work in IE 6 or IE 7. So if we're on the right page but the previous search had no results, reload the
566
+ // page anyway to get around the bug.
567
+ (browserType == "IE" && hasResultsPage &&
568
+ (!resultsFrame.searchResults || resultsFrame.searchResults.lastMatchCount == 0)) )
569
+
570
+ {
571
+ resultsFrame.location.href = resultsPageWithSearch;
572
+ }
573
+
574
+ // So if the results page is right and there's no IE bug, reperform the search on the existing page. We have to check if there
575
+ // are results because NoResults.html doesn't have any JavaScript, and it would be useless to do anything on that page even
576
+ // if it did.
577
+ else if (hasResultsPage)
578
+ {
579
+ // We need to check if this exists in case the frame is present but didn't finish loading.
580
+ if (resultsFrame.searchResults)
581
+ { resultsFrame.searchResults.Search(searchValue); }
582
+
583
+ // Otherwise just reload instead of waiting.
584
+ else
585
+ { resultsFrame.location.href = resultsPageWithSearch; };
586
+ };
587
+
588
+
589
+ var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();
590
+
591
+ if (this.mode == "HTML" && domPopupSearchResultsWindow.style.display != "block")
592
+ {
593
+ var domSearchType = this.DOMSearchType();
594
+
595
+ var left = GetXPosition(domSearchType);
596
+ var top = GetYPosition(domSearchType) + domSearchType.offsetHeight;
597
+
598
+ MoveToPosition(domPopupSearchResultsWindow, left, top);
599
+ domPopupSearchResultsWindow.style.display = 'block';
600
+ };
601
+
602
+
603
+ this.lastSearchValue = searchValue;
604
+ this.lastResultsPage = resultsPage;
605
+ };
606
+
607
+
608
+
609
+ // Group: Activation Functions
610
+ // Functions that handle whether the entire panel is active or not.
611
+ // ________________________________________________________________________
612
+
613
+
614
+ /*
615
+ Function: Activate
616
+
617
+ Activates or deactivates the search panel, resetting things to their default values if necessary. You can call this on every
618
+ control's OnBlur() and it will handle not deactivating the entire panel when focus is just switching between them transparently.
619
+
620
+ Parameters:
621
+
622
+ isActive - Whether you're activating or deactivating the panel.
623
+ ignoreDeactivateDelay - Set if you're positive the action will deactivate the panel and thus want to skip the delay.
624
+ */
625
+ this.Activate = function(isActive, ignoreDeactivateDelay)
626
+ {
627
+ // We want to ignore isActive being false while the results window is open.
628
+ if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
629
+ {
630
+ if (this.inactivateTimeout)
631
+ {
632
+ clearTimeout(this.inactivateTimeout);
633
+ this.inactivateTimeout = 0;
634
+ };
635
+
636
+ this.DOMSearchPanel().className = 'MSearchPanelActive';
637
+
638
+ var searchField = this.DOMSearchField();
639
+
640
+ if (searchField.value == 'Search')
641
+ { searchField.value = ""; }
642
+ }
643
+ else if (!ignoreDeactivateDelay)
644
+ {
645
+ this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength);
646
+ }
647
+ else
648
+ {
649
+ this.InactivateAfterTimeout();
650
+ };
651
+ };
652
+
653
+
654
+ /*
655
+ Function: InactivateAfterTimeout
656
+
657
+ Called by <inactivateTimeout>, which is set by <Activate()>. Inactivation occurs on a timeout because a control may
658
+ receive OnBlur() when focus is really transferring to another control in the search panel. In this case we don't want to
659
+ actually deactivate the panel because not only would that cause a visible flicker but it could also reset the search value.
660
+ So by doing it on a timeout instead, there's a short period where the second control's OnFocus() can cancel the deactivation.
661
+ */
662
+ this.InactivateAfterTimeout = function()
663
+ {
664
+ this.inactivateTimeout = 0;
665
+
666
+ this.DOMSearchPanel().className = 'MSearchPanelInactive';
667
+ this.DOMSearchField().value = "Search";
668
+
669
+ this.lastSearchValue = "";
670
+ this.lastResultsPage = "";
671
+ };
672
+ };
673
+
674
+
675
+
676
+
677
+ /* ________________________________________________________________________________________________________
678
+
679
+ Class: SearchResults
680
+ _________________________________________________________________________________________________________
681
+
682
+ The class that handles everything on the search results page.
683
+ _________________________________________________________________________________________________________
684
+ */
685
+
686
+
687
+ function SearchResults(name, mode)
688
+ {
689
+ /*
690
+ var: mode
691
+ The mode the search is going to work in, such as "HTML" or "FramedHTML".
692
+ */
693
+ this.mode = mode;
694
+
695
+ /*
696
+ var: lastMatchCount
697
+ The number of matches from the last run of <Search()>.
698
+ */
699
+ this.lastMatchCount = 0;
700
+
701
+
702
+ /*
703
+ Function: Toggle
704
+ Toggles the visibility of the passed element ID.
705
+ */
706
+ this.Toggle = function(id)
707
+ {
708
+ if (this.mode == "FramedHTML")
709
+ { return; };
710
+
711
+ var parentElement = document.getElementById(id);
712
+
713
+ var element = parentElement.firstChild;
714
+
715
+ while (element && element != parentElement)
716
+ {
717
+ if (element.nodeName == 'DIV' && element.className == 'ISubIndex')
718
+ {
719
+ if (element.style.display == 'block')
720
+ { element.style.display = "none"; }
721
+ else
722
+ { element.style.display = 'block'; }
723
+ };
724
+
725
+ if (element.nodeName == 'DIV' && element.hasChildNodes())
726
+ { element = element.firstChild; }
727
+ else if (element.nextSibling)
728
+ { element = element.nextSibling; }
729
+ else
730
+ {
731
+ do
732
+ {
733
+ element = element.parentNode;
734
+ }
735
+ while (element && element != parentElement && !element.nextSibling);
736
+
737
+ if (element && element != parentElement)
738
+ { element = element.nextSibling; };
739
+ };
740
+ };
741
+ };
742
+
743
+
744
+ /*
745
+ Function: Search
746
+
747
+ Searches for the passed string. If there is no parameter, it takes it from the URL query.
748
+
749
+ Always returns true, since other documents may try to call it and that may or may not be possible.
750
+ */
751
+ this.Search = function(search)
752
+ {
753
+ if (!search)
754
+ {
755
+ search = window.location.search;
756
+ search = search.substring(1); // Remove the leading ?
757
+ search = unescape(search);
758
+ };
759
+
760
+ search = search.replace(/^ +/, "");
761
+ search = search.replace(/ +$/, "");
762
+ search = search.toLowerCase();
763
+
764
+ if (search.match(/[^a-z0-9]/)) // Just a little speedup so it doesn't have to go through the below unnecessarily.
765
+ {
766
+ search = search.replace(/\_/g, "_und");
767
+ search = search.replace(/\ +/gi, "_spc");
768
+ search = search.replace(/\~/g, "_til");
769
+ search = search.replace(/\!/g, "_exc");
770
+ search = search.replace(/\@/g, "_att");
771
+ search = search.replace(/\#/g, "_num");
772
+ search = search.replace(/\$/g, "_dol");
773
+ search = search.replace(/\%/g, "_pct");
774
+ search = search.replace(/\^/g, "_car");
775
+ search = search.replace(/\&/g, "_amp");
776
+ search = search.replace(/\*/g, "_ast");
777
+ search = search.replace(/\(/g, "_lpa");
778
+ search = search.replace(/\)/g, "_rpa");
779
+ search = search.replace(/\-/g, "_min");
780
+ search = search.replace(/\+/g, "_plu");
781
+ search = search.replace(/\=/g, "_equ");
782
+ search = search.replace(/\{/g, "_lbc");
783
+ search = search.replace(/\}/g, "_rbc");
784
+ search = search.replace(/\[/g, "_lbk");
785
+ search = search.replace(/\]/g, "_rbk");
786
+ search = search.replace(/\:/g, "_col");
787
+ search = search.replace(/\;/g, "_sco");
788
+ search = search.replace(/\"/g, "_quo");
789
+ search = search.replace(/\'/g, "_apo");
790
+ search = search.replace(/\</g, "_lan");
791
+ search = search.replace(/\>/g, "_ran");
792
+ search = search.replace(/\,/g, "_com");
793
+ search = search.replace(/\./g, "_per");
794
+ search = search.replace(/\?/g, "_que");
795
+ search = search.replace(/\//g, "_sla");
796
+ search = search.replace(/[^a-z0-9\_]i/gi, "_zzz");
797
+ };
798
+
799
+ var resultRows = document.getElementsByTagName("div");
800
+ var matches = 0;
801
+
802
+ var i = 0;
803
+ while (i < resultRows.length)
804
+ {
805
+ var row = resultRows.item(i);
806
+
807
+ if (row.className == "SRResult")
808
+ {
809
+ var rowMatchName = row.id.toLowerCase();
810
+ rowMatchName = rowMatchName.replace(/^sr\d*_/, '');
811
+
812
+ if (search.length <= rowMatchName.length && rowMatchName.substr(0, search.length) == search)
813
+ {
814
+ row.style.display = "block";
815
+ matches++;
816
+ }
817
+ else
818
+ { row.style.display = "none"; };
819
+ };
820
+
821
+ i++;
822
+ };
823
+
824
+ document.getElementById("Searching").style.display="none";
825
+
826
+ if (matches == 0)
827
+ { document.getElementById("NoMatches").style.display="block"; }
828
+ else
829
+ { document.getElementById("NoMatches").style.display="none"; }
830
+
831
+ this.lastMatchCount = matches;
832
+
833
+ return true;
834
+ };
835
+ };
836
+