aboutsummaryrefslogtreecommitdiffstats
path: root/doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
commit35efaf74e828b738a20324a664cf9c2e08ef47d4 (patch)
tree183b4704c87c61b690010efbd6f3b30218328bcc /doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js
parent2350d43a09495db18b22b86ffc815a84eeb35579 (diff)
parent1158d2063f00f38de19a4600566b244a942d86ba (diff)
downloadcandybox-alexichi.tar.gz
candybox-alexichi.tar.bz2
candybox-alexichi.tar.xz
candybox-alexichi.zip
Merge branch 'master' of piernov.org:candybox into alexichialexichi
Conflicts: inc/perso.inc
Diffstat (limited to 'doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js')
-rw-r--r--doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js b/doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js
new file mode 100644
index 0000000..e17e792
--- /dev/null
+++ b/doc/phpdoc/js/jqplot/plugins/jqplot.ciParser.min.js
@@ -0,0 +1,3 @@
+/* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com
+ jsDate | (c) 2010-2013 Chris Leonello
+ */(function(a){a.jqplot.ciParser=function(g,l){var m=[],o,n,h,f,e,c;if(typeof(g)=="string"){g=a.jqplot.JSON.parse(g,d)}else{if(typeof(g)=="object"){for(e in g){for(h=0;h<g[e].length;h++){for(c in g[e][h]){g[e][h][c]=d(c,g[e][h][c])}}}}else{return null}}function d(j,k){var i;if(k!=null){if(k.toString().indexOf("Date")>=0){i=/^\/Date\((-?[0-9]+)\)\/$/.exec(k);if(i){return parseInt(i[1],10)}}return k}}for(var b in g){o=[];n=g[b];switch(b){case"PriceTicks":for(h=0;h<n.length;h++){o.push([n[h]["TickDate"],n[h]["Price"]])}break;case"PriceBars":for(h=0;h<n.length;h++){o.push([n[h]["BarDate"],n[h]["Open"],n[h]["High"],n[h]["Low"],n[h]["Close"]])}break}m.push(o)}return m}})(jQuery); \ No newline at end of file